Least number of applications of f(k) = k(k+1)+1 to n to yield a prime, if this number exists; -1 otherwise.

A066745

Least number of applications of f(k) = k(k+1)+1 to n to yield a prime, if this number exists; -1 otherwise.

Terms

    a(0) =2a(1) =1a(2) =0a(3) =0a(4) =2a(5) =0a(6) =1a(7) =0a(8) =1a(9) =3a(10) =2a(11) =0a(12) =1a(13) =0a(14) =1a(15) =1

External references