OFFSET
1,2
COMMENTS
First occurrence of n in A122170.
EXAMPLE
a(4)=10 because it is the first followed by 14,16,... such that exactly 4 primes p respectively below 2*10,2*14,2*16,... form 4 other primes respectively of form p+10,p+14,p+16,...[For m=10, the 4 primes below 20 are 3,7,13,19 ; For m=14, the 4 primes below 28 are 3,5,17,23 ; For m=16, the 4 primes below 32 are 3,7,13,31 ; ...]
MAPLE
A122171 := proc(n) local m, p, pgood; m := 0 ; while true do p := 2 ; pgood := 0 ; while p <= 2*m do if isprime(m+p) then pgood := pgood+1 ; fi ; p := nextprime(p) ; od ; if pgood = n then RETURN(m) ; fi ; m := m+1 ; od ; end: for n from 1 to 80 do printf("%d, ", A122171(n)) ; od : # R. J. Mathar, Dec 16 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Aug 23 2006
EXTENSIONS
More terms from R. J. Mathar, Dec 16 2006
STATUS
approved