OFFSET
3,1
COMMENTS
If a(n) is not prime then a(n)=5*prime(n).
FORMULA
a(n) = (4*floor((mod(prime(n),6)+4)/6)+1)*prime(n). - Farideh Firoozbakht, Oct 09 2014
EXAMPLE
a(3)=25 because p=prime(3)=5 and 25= 5*5=1+4*6
a(5)=55 because p=prime(5)=11 and 55= 11*5=1+9*6
a(200)=6115 because p=prime(200)=1223 and 6115=1223*5=1+1019*6.
MATHEMATICA
Table[ChineseRemainder[{0, 1}, {Prime[n], 6}], {n, 3, 200}]
(*or*)Table[p = Prime[n]; If[Mod[p, 6] > 1, 5*p, p], {n, 3, 200}]
Table[p=Prime[n]; (4Floor[(Mod[p, 6]+4)/6]+1)*p, {n, 3, 63}](* Farideh Firoozbakht, Oct 09 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 09 2014
STATUS
approved