OFFSET
1,1
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..10000
EXAMPLE
q(1)=7, 7*(7+5)-1=83 prime, 5 prime == -1 mod 6 so a(1)=5
q(2)=13, 13*(13+5)-1=233 prime, so a(2)=5
q(3)=19, 19*(19+5)-1=455 composite 19*(19+11)-1=569 prime, 11 prime == -1 mod 6 so a(3)=11
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 14 2008
STATUS
approved