Search a number
alternating n.  and  nonagonal n.

First numbers that belong to both sets: