Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A056892
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A056892 Square excess of n-th prime. +0
12
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; listen)
OFFSET

1,2

FORMULA

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

A056892 = A000040 - A000006^2 [From M. F. Hasler (MHasler(AT)univ-ag.fr), 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]

PROGRAM

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

CROSSREFS

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

Sequence in context: A023129 A007337 A167430 this_sequence A136523 A163507 A003963

Adjacent sequences: A056889 A056890 A056891 this_sequence A056893 A056894 A056895

KEYWORD

nonn

AUTHOR

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

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 November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research