Search a number
gapful n.  and  partition n.

First numbers that belong to both sets: