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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A071838 Pi(8,3)(n) + Pi(8,5)(n) - Pi(8,1)(n) - Pi(8,7)(n) where Pi(a,b)(x) denotes the number of primes in the arithmetic progression ak+b less than or equal to x. 0
0, 0, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 2, 2, 2 (list; graph; refs; listen; history; internal format)
OFFSET

1,5

COMMENTS

Although the initial terms are nonnegative, infinitely many terms should be negative. For which n does a(n)=-1 ?

PROG

(PARI) for(n=1, 200, print1(sum(i=1, n, if((i*isprime(i)-3)%8, 0, 1)+if((i*isprime(i)-5)%8, 0, 1))-if((i*isprime(i)-1)%8, 0, 1))-if((i*isprime(i)-7)%8, 0, 1)), ", "))

CROSSREFS

Cf. A066520.

Sequence in context: A101615 A140193 A073741 * A157896 A156072 A165031

Adjacent sequences:  A071835 A071836 A071837 * A071839 A071840 A071841

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 08 2002

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 15 21:56 EST 2012. Contains 205860 sequences.