login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 08:22 EDT 2024. Contains 371236 sequences. (Running on oeis4.)