Search a number
alternating n.  and  taxicab n.

First numbers that belong to both sets: