OFFSET
1,1
COMMENTS
a(n) exists for each n by Dirichlet's theorem. - Charles R Greathouse IV, Oct 31 2014
Same as A036013 for n > 4. - Georg Fischer, Oct 19 2018
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..586 (terms 1..300 from Georg Fischer)
EXAMPLE
3-1 = 2, 3*2-1 = 5, 3*2*2 -1 = 11, etc. are primes.
PROG
(PARI) lista(nn) = {v = vector(nn); for (n=1, nn, v[n] = 2; while (! isprime(prod(i=1, n, v[i])-1), v[n]++); print1(v[n], ", "); ); } \\ Michel Marcus, Oct 31 2014
(PARI) first(n) = my(res=vector(n), pp=1, t); for(i = 1, n, t = 2; while(!isprime(pp * t - 1), t++); pp *= t; res[i]=t); res \\ David A. Corneth, Oct 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 31 2003
EXTENSIONS
More terms from David Wasserman, Dec 22 2004
STATUS
approved