Search a number
centered square n.  and  heptagonal n.

First numbers that belong to both sets: