[go: up one dir, main page]

login
A227689 revision #19

A227689
a(n) is the least integer k such that 2^k - 1 has at least 10^n digits.
1
1, 30, 329, 3319, 33216, 332190, 3321925, 33219278, 332192807, 3321928092, 33219280946, 332192809486, 3321928094885, 33219280948871, 332192809488733, 3321928094887360, 33219280948873621, 332192809488736232, 3321928094887362345, 33219280948873623476
OFFSET
0,2
FORMULA
a(n) = ceiling(log_2(10^(10^n-1)+1)).
EXAMPLE
For n = 2, A000225(328) has 99 digits and A000225(329) has 100 digits, so a(2) = 329.
PROG
(PARI) a(n) = ceil(log(10^(10^n-1)+1)/log(2)); \\ Michel Marcus, Jun 28 2021
CROSSREFS
Sequence in context: A141216 A159543 A362521 * A006859 A341557 A107967
KEYWORD
nonn,base
AUTHOR
Olivier de Mouzon, Jul 19 2013
EXTENSIONS
More terms from Alois P. Heinz, Jun 28 2021
STATUS
editing