Search a number
centered square n.  and  pentagonal n.

First numbers that belong to both sets: