OFFSET
1,1
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..3500
MATHEMATICA
a[n_] := For[j = 1, j < 10^7, j++, p = Prime[n]; If[PrimeQ[q = j*2*p^3 - 1] && PrimeQ[r = j*2*p*q^2 - 1] && PrimeQ[j*2*p*r^2 - 1], Return[j]]]; Table[ Print[an = a[n]]; an, {n, 1, 50}] (* Jean-François Alcover, Apr 12 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Apr 12 2013
STATUS
approved