OFFSET
1,2
EXAMPLE
a(3) = 91 because 91*2^3 + 1 = 729 = 9^3.
MATHEMATICA
a={}; Do[k = 2; While[ !IntegerQ[(k^n - 1)/2^n], k++ ]; AppendTo[a, (k^n-1)/2^n], {n, 1, 20}]; a
PROG
(PARI) a(n)=if(n%2, (2^n+1)^n>>n, my(N=1<<n, m=3); while(Mod(m, N)^n!=1, m+=m+1); m^n>>n) \\ Charles R Greathouse IV, Aug 03 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Aug 03 2011
EXTENSIONS
a(9) corrected by Charles R Greathouse IV, Aug 03 2011
STATUS
approved