login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182434 Number of primes p < n such that 4*p+1 is also prime. 2
0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..10000
FORMULA
a(10^n) = A182265(n).
a(n) = sum(i=2..n, floor(phi(4*i^2+i)/(4*i^2-4*i))). - Enrique Pérez Herrero, May 02 2012.
MATHEMATICA
Accumulate[Table[Boole[PrimeQ[n]&&PrimeQ[4n+1]], {n, 1, 200}]]
Accumulate[If[AllTrue[{#, 4#+1}, PrimeQ], 1, 0]&/@Range[90]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 26 2015 *)
CROSSREFS
Sequence in context: A208246 A320857 A211664 * A185679 A366721 A080342
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)