OFFSET
1,3
COMMENTS
If Legendre's conjecture is true, then this sequence hits every positive integer.
Does the lim_{n->infinity} a(n)/n exist? If it exists, what is its value?
LINKS
MATHEMATICA
f[n_] := IntegerPart[Sqrt[Prime[n]]]; a[1] = a[2] = 1; a[n_] := a[n] = a[(f1 = f[n])] + a[n - f1]; Array[a, 100] (* Amiram Eldar, Jul 08 2020 *)
PROG
(PARI) q=vector(10^2); for(n=1, 2, q[n] = 1); for(n=3, #q, q[n] = q[sqrtint(prime(n))] + q[n- sqrtint(prime(n))]); q
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Jul 08 2020
STATUS
approved