Search a number
Friedman n.  and  pentagonal n.

First numbers that belong to both sets: