OFFSET
1,1
COMMENTS
Note that 6 divides a(n) for n > 2. - T. D. Noe, Jan 07 2013
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
EXAMPLE
n=4: prime(4)=7, a(4)=6 because 6*prime(4)=42 and {41,43} are primes.
MATHEMATICA
Table[fl=1; Do[s=(Prime[j])*k; If[PrimeQ[s-1]&&PrimeQ[s+1]&&Equal[fl, 1], Print[{j, k}]; fl=0], {k, 1, 2*j^2}], {j, 0, 100}]
PROG
(Haskell)
a071407 n = head [k | k <- [2, 4..], let x = k * a000040 n,
a010051' (x - 1) == 1, a010051' (x + 1) == 1]
-- Reinhard Zumkeller, Feb 14 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 24 2002
STATUS
approved