Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A060272
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A060272 Distance from n^2 to closest prime. +0
4
1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 6, 5, 2, 1, 2, 1, 4, 7, 2, 1, 2, 3, 6, 1, 6, 1, 2, 3, 2, 7, 6, 3, 2, 3, 2, 1, 2, 3, 2, 1, 12, 5, 2, 3, 2, 3, 2, 5, 2, 3, 8, 3, 6, 1, 2, 1, 2, 3, 10, 7, 2, 3, 2, 3, 4, 1, 4, 3, 2, 3, 2, 5, 4, 1, 2, 3, 2, 5, 6, 3, 2, 5, 6, 1, 4, 3, 4, 3, 2, 1, 6, 3, 2, 1, 4, 5, 4, 3, 2, 7, 8, 5, 2 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n)=abs(A000290(n)-A113425(n))=abs(A000290(n)-A113426(n)). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 31 2005

EXAMPLE

n=1: n^2=1 is surrounded by primes {-2,2} and 2 is closer, so a(1)=1; n=11: n^2=121 is between primes {113,127} and closer to 127, thus a(11)=6.

MAPLE

[seq(min(nextprime(i^2)-i^2, i^2-prevprime(i^2)), i=2..256)]; n=1 computed separately.

CROSSREFS

Cf. A007491, A053001, A058043, A056927, A053000, A051700, A060268-A060269, A060272, A059959, A059790.

Adjacent sequences: A060269 A060270 A060271 this_sequence A060273 A060274 A060275

Sequence in context: A070966 A072504 A072499 this_sequence A129985 A085243 A092243

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Mar 23 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 12 15:26 EDT 2008. Contains 144830 sequences.


AT&T Labs Research