a(n) = 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 a*k + b less than or equal to x.

A071838

a(n) = 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 a*k + b less than or equal to x.

Terms

    a(0) =0a(1) =0a(2) =1a(3) =1a(4) =2a(5) =2a(6) =1a(7) =1a(8) =1a(9) =1a(10) =2a(11) =2a(12) =3a(13) =3a(14) =3a(15) =3a(16) =2a(17) =2a(18) =3a(19) =3a(20) =3a(21) =3a(22) =2a(23) =2a(24) =2a(25) =2a(26) =2a(27) =2a(28) =3a(29) =3

External references