OFFSET
1,1
COMMENTS
Question: Is every prime p a member of some pair?
a(n) = A075323(2*n).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MAPLE
# A075321p() implemented in A075321.
A075322 := proc(n)
op(2, A075321p(n)) ;
end proc:
seq(A075322(n), n=1..60) ; # R. J. Mathar, Nov 26 2014
MATHEMATICA
A075321p[n_] := A075321p[n] = Module[{prevlist, i, p, q }, If[n == 1, Return[{3, 5}], prevlist = Array[A075321p, n - 1] // Flatten]; For[i = 2, True, i++, p = Prime[i]; If[FreeQ[prevlist, p], q = p + 2*n; If[PrimeQ[q] && FreeQ[ prevlist, q], Return[{p, q}]]]]];
a[n_] := A075321p[n][[2]];
Array[a, 50] (* Jean-François Alcover, Feb 12 2018, after R. J. Mathar *)
PROG
(Haskell)
a075322 = a075323 . (* 2) -- Reinhard Zumkeller, Nov 29 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 14 2002
EXTENSIONS
Corrected by R. J. Mathar, Nov 26 2014
STATUS
approved