login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A082075
First differences of primes of the form 4*k+3 (A002145).
5
4, 4, 8, 4, 8, 12, 4, 12, 8, 4, 8, 4, 20, 4, 20, 4, 8, 12, 12, 4, 12, 12, 8, 12, 12, 4, 12, 12, 12, 8, 12, 24, 4, 20, 16, 12, 8, 12, 4, 36, 12, 8, 4, 20, 4, 12, 8, 4, 8, 4, 20, 24, 16, 8, 16, 12, 8, 12, 12, 12, 4, 12, 24, 8, 28, 8, 12, 4, 8, 36, 24, 12, 4, 12, 20, 4, 20, 4, 20, 4, 8, 28, 20, 4
OFFSET
1,1
LINKS
FORMULA
a(n) = A002145(n+1) - A002145(n).
EXAMPLE
The first and second primes of the form 4*k+3 are 3 and 7, so a(1) = 7-3 = 4.
MATHEMATICA
k=0; m=4; r=3; Do[s=Mod[Prime[n], m]; If[Equal[s, r], rp=ep; k=k+1; ep=Prime[n]; Print[ep-rp]; ], {n, 1, 1000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 07 2003
STATUS
approved