Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A038698
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A038698 Surfeit of 4k-1 primes over 4k+1 primes, beginning with prime 2. +0
3
0, 1, 0, 1, 2, 1, 0, 1, 2, 1, 2, 1, 0, 1, 2, 1, 2, 1, 2, 3, 2, 3, 4, 3, 2, 1, 2, 3, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 4, 3, 4, 3, 2, 3, 4, 5, 6, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 3, 4, 3, 4, 5, 4, 3, 4, 3, 4, 3, 2, 3, 4, 3, 4, 5, 4, 3, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 6, 5, 6, 5, 6, 5, 6 (list; graph; listen)
OFFSET

1,5

COMMENT

a(n)<0 for infinitely many values of n - Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 24 2002

First negative value is a(p(2946)) = a(26861) = -1. - David W. Wilson, Sep 27, 2002.

REFERENCES

Stan Wagon, The Power of Visualization, Front Range Press, 1994, p. 2.

LINKS

T. D. Noe, Table of n, a(n) for n=1..10000

FORMULA

FoldList[ Plus, 0, Mod[ Prime[ Range[ 2, 80 ] ], 4 ]-2 ]

a(n) = sum(k=2, n, (-1)^((prime(n)+1)/2)) - Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 24 2002

PROGRAM

(PARI) for(n=2, 100, print1(sum(i=2, n, (-1)^((prime(i)+1)/2)), ", "))

CROSSREFS

Cf. A007350, A007351, A038691, A066520.

Cf. A112632 (race of 3k-1 and 3k+1 primes)

Sequence in context: A123517 A029376 A029359 this_sequence A087991 A076092 A080468

Adjacent sequences: A038695 A038696 A038697 this_sequence A038699 A038700 A038701

KEYWORD

nonn,easy,nice

AUTHOR

Hans Havermann (pxp(AT)rogers.com)

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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research