1,1

Table of n, a(n) for n=1..70.

a(n) = A056897(n)+n = A056898(n)^2+n.

For p a prime: a(p)=p (and a(p-1)=p if p<>3).

a(8)=17 because 17=3^2+8.

Table[k = 0; While[p = n + k^2; ! PrimeQ[p], k++]; p, {n, 100}] (* T. D. Noe, Apr 01 2011 *)

Cf. A000040, A002496, A056892-A056898.

Sequence in context: A151800 A259430 A290838 * A089366 A113827 A033189

Adjacent sequences: A056893 A056894 A056895 * A056897 A056898 A056899

nonn

Henry Bottomley, Jul 05 2000

Example corrected by Harvey P. Dale, Apr 01 2011

approved