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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056892 Square excess of n-th prime. 17
1, 2, 1, 3, 2, 4, 1, 3, 7, 4, 6, 1, 5, 7, 11, 4, 10, 12, 3, 7, 9, 15, 2, 8, 16, 1, 3, 7, 9, 13, 6, 10, 16, 18, 5, 7, 13, 19, 23, 4, 10, 12, 22, 24, 1, 3, 15, 27, 2, 4, 8, 14, 16, 26, 1, 7, 13, 15, 21, 25, 27, 4, 18, 22, 24, 28, 7, 13, 23, 25, 29, 35, 6, 12, 18, 22, 28, 36, 1, 9, 19, 21 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

FORMULA

a(n) = A053186(A000040(n))

A056892 = A000040 - A000006^2 [From M. F. Hasler (www.univ-ag.fr/~mhasler), Oct 04 2009]

EXAMPLE

a(5) = 2 since 5th prime is 11 = 3^2+2

MATHEMATICA

lst={}; Do[p=Prime[n]; s=p^(1/2); f=Floor[s]; a=f^2; d=p-a; AppendTo[lst, d], {n, 6!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Mar 11 2009]

PROG

(PARI) A056892(n)={my(p=prime(n)); p-sqrtint(p)^2)} [From M. F. Hasler (www.univ-ag.fr/~mhasler), Oct 04 2009]

CROSSREFS

Cf. A000040, A000196, A002496, A048760, A053186, A056892-A056898.

Sequence in context: A023129 A007337 A167430 * A136523 A163507 A003963

Adjacent sequences:  A056889 A056890 A056891 * A056893 A056894 A056895

KEYWORD

nonn

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Jul 05 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 21:51 EST 2012. Contains 205978 sequences.