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

First numbers that belong to both sets: