Search a number
alternating n.  and  straight-line n.

First numbers that belong to both sets: