a(n) = the first prime in the orbit of n under f(n) = n^2 + 1, if it exists; = 0 otherwise.

A089751

a(n) = the first prime in the orbit of n under f(n) = n^2 + 1, if it exists; = 0 otherwise.

Terms

    a(0) =2a(1) =2a(2) =3a(3) =17a(4) =5a(5) =37a(6) =7a(7) =17859077

External references