OFFSET
1,1
COMMENTS
Variant of A057062. - R. J. Mathar, Dec 13 2008
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
FORMULA
a(n) ~ sqrt(2n log n). - Charles R Greathouse IV, Oct 18 2022
MATHEMATICA
f[n_] := Round[Sqrt[2n + 2]]; Table[f[Prime[n]], {n, 90}] (* Ray Chandler, Nov 13 2006 *)
PROG
(Python)
from math import isqrt
from sympy import prime
def A123387(n): return isqrt(prime(n)+1<<3)+1>>1 # Chai Wah Wu, Oct 18 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Nov 10 2006
EXTENSIONS
Extended by Ray Chandler, Nov 13 2006
STATUS
approved