Search a number
heptagonal n.  and  square n.

First numbers that belong to both sets: