Search a number
centered square n.  and  octagonal n.

First numbers that belong to both sets: