OFFSET
1,1
FORMULA
a(n) = floor(1/(sqrt(prime(n))-floor(sqrt(prime(n))))), where prime(n) is the n-th prime.
a(n) = floor(2*s/r) where s = floor(sqrt(p)) = A000006(n), r = p - s^2 = A056892(n), and p = prime(n). - Kevin Ryde, May 06 2022
EXAMPLE
For n=8, prime(n)=19, floor(sqrt(19))=4 and 1/(sqrt(19)-4) = 2.786..., so a(8)=2.
MATHEMATICA
a[n_] := Floor[1/(Sqrt[Prime[n]]-Floor[Sqrt[Prime[n]]])]
PROG
(PARI) a(n) = my(r); sqrtint(prime(n), &r)<<1 \ r; \\ Kevin Ryde, May 06 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Feb 01 2002
EXTENSIONS
Edited by Dean Hickerson, Feb 14 2002
STATUS
approved