login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056929 Difference between n^2 and average of smallest prime greater than n^2 and largest prime less than n^2. 7
0, 0, 1, -1, 2, -1, 0, 0, 1, 1, 0, -1, 1, 0, 2, 1, 0, -2, 1, 0, 1, -3, 2, 0, 1, -1, 4, -5, 3, 1, -2, 0, -2, -1, 2, -1, 1, 4, 1, 0, -4, -5, -5, 3, -5, -1, 1, -4, 10, 0, 1, -2, 3, -5, 7, 9, -2, 1, 0, -2, 4, -9, 0, 1, 3, 1, -5, -10, 4, -4, 0, 1, 2, -6, 12, -4, 0, 3, -9, 3, -2, -2, 6, 1, -6, 2, -3 (list; graph; refs; listen; history; internal format)
OFFSET

2,5

FORMULA

a(n) =A000290(n)-A056928(n) =(A056927(n)-A053000(n))/2

EXAMPLE

a(4)=1 because smallest prime greater than 4^2 is 17, largest prime less than 4^2 is 13, average of 17 and 13 is 15 and 16-15=1

MAPLE

with(numtheory): A056929 := n-> n^2-(prevprime(n^2)+nextprime(n^2))/2);

CROSSREFS

Cf. A007491, A053000, A053001, A056927, A056928, A056930, A056931.

Sequence in context: A170967 A035227 A049340 * A151692 A115201 A118229

Adjacent sequences:  A056926 A056927 A056928 * A056930 A056931 A056932

KEYWORD

easy,sign

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Jul 12 2000

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Jul 13 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 04:47 EST 2012. Contains 205860 sequences.