login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A193747
Smallest k such that k*2^n +1 is an n-th power.
0
1, 2, 91, 5, 1222981, 13867245, 4644275800711, 3331605615, 4806028313710522550281, 1185520435892914104577275, 1305063339568963727983307233802251, 320735961523340363019772627010045
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
Sequence in context: A306760 A306964 A138583 * A242176 A024240 A266653
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Aug 03 2011
EXTENSIONS
a(9) corrected by Charles R Greathouse IV, Aug 03 2011
STATUS
approved