login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A113426 Greatest prime closest to n^2. 4
2, 5, 11, 17, 23, 37, 47, 67, 83, 101, 127, 149, 167, 197, 227, 257, 293, 331, 359, 401, 443, 487, 523, 577, 631, 677, 727, 787, 839, 907, 967, 1021, 1091, 1153, 1223, 1297, 1367, 1447, 1523, 1601, 1693, 1759, 1847, 1933, 2027, 2113, 2207, 2309, 2399, 2503 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A060272(n) = abs(A000290(n) - a(n));

A113425(n) <= a(n).

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..1000

MATHEMATICA

f[n_]:=Module[{n2=n^2, np1, np2}, np1=NextPrime[n2, -1]; np2=NextPrime[n2]; If[(n2-np1)<(np2-n2), np1, np2]]

Table[f[i], {i, 50}]

CROSSREFS

Sequence in context: A020613 A135478 A019381 * A078894 A086319 A220813

Adjacent sequences:  A113423 A113424 A113425 * A113427 A113428 A113429

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Oct 31 2005

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 16 15:22 EDT 2021. Contains 348042 sequences. (Running on oeis4.)