OFFSET
1,2
COMMENTS
Also: Distance of prime(n) from the integer part of its square root. - M. F. Hasler, Oct 19 2018
FORMULA
a(n) ~ 6/Pi^2 * n log n. - Charles R Greathouse IV, May 29 2013
MATHEMATICA
f[n_]:=n-IntegerPart[Sqrt[n]]; lst={}; Do[p=Prime[n]; AppendTo[lst, f[p]], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 24 2009 *)
PROG
(PARI) apply( A112045=n->(n=prime(n))-sqrtint(n), [1..200]) \\ M. F. Hasler, Oct 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 27 2005
EXTENSIONS
Erroneous name corrected by Antti Karttunen, Jun 03 2014
STATUS
approved