OFFSET
3,1
LINKS
James S. Hall, A remark on the primeness of Mersenne numbers, J. London Math. Soc. 28, (1953), 285-287.
FORMULA
a(n) = g(n) where g(3) = 7 and g(n+1) = 2*(g(n)-1)*(1+2^n*(g(n)-1)) + 1.
PROG
(PARI) N=11; g=vector(N); g[3] = 7;
for (n=3, N-1, g[n+1] = 2*(g[n]-1)*(1+2^n*(g[n]-1))+1 );
vector(N-3, j, g[j+2])
(Magma) [n le 1 select 7 else 2*(Self(n-1)-1)*(1+2^(n+1)*(Self(n-1)-1)) + 1: n in [1..6]]; // Vincenzo Librandi, Aug 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt, Aug 24 2015
STATUS
approved