Search a number
amicable n.  and  pernicious n.

First numbers that belong to both sets: