Search a number
octagonal n.  and  triangular n.

First numbers that belong to both sets: