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!)
A227683 Number of digits in n-th Mersenne number. 2
1, 1, 2, 3, 4, 4, 6, 6, 7, 9, 10, 12, 13, 13, 15, 16, 18, 19, 21, 22, 22, 24, 25, 27, 30, 31, 32, 33, 33, 35, 39, 40, 42, 42, 45, 46, 48, 50, 51, 53, 54, 55, 58, 59, 60, 60, 64, 68, 69, 69, 71, 72, 73, 76, 78, 80, 81, 82, 84, 85, 86, 89, 93, 94, 95, 96, 100 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = floor(log_10(A001348(n))) + 1.
EXAMPLE
For n = 5, the fifth prime number is 11, so 2^11 - 1 = 2047 is the fifth Mersenne number, which has 4 digits, so a(5) = 4.
PROG
(PARI) a227683(n) = floor(log(2^prime(n)-1)/log(10)) + 1 \\ Michael B. Porter, Jul 20 2013
CROSSREFS
Sequence in context: A063208 A343912 A262265 * A321166 A092988 A304575
KEYWORD
nonn,base
AUTHOR
Olivier de Mouzon, Jul 19 2013
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 July 14 20:49 EDT 2024. Contains 374323 sequences. (Running on oeis4.)