OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 6*prime(n) + 7. - Zak Seidov, May 12 2007
EXAMPLE
For n=19, (19-7)/6 = 2 which is prime so 19 is the first entry.
MATHEMATICA
Select[Range[1500], PrimeQ[(#-7)/6]&] (* Harvey P. Dale, Aug 15 2015 *)
PROG
(PARI) g(m) = forprime(p=2, m, n=6*p+7; print1(n", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 11 2007, May 17 2007
STATUS
approved