Search a number
triangular n.  and  upside-down n.

First numbers that belong to both sets: