Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A071838
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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
1
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; listen)
OFFSET

1,5

COMMENT

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

PROGRAM

(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 this_sequence A157896 A156072 A165031

Adjacent sequences: A071835 A071836 A071837 this_sequence A071839 A071840 A071841

KEYWORD

easy,nonn

AUTHOR

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

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research