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!)
A296442 Initial digit of n-th Mersenne number. 1

%I #14 Dec 14 2017 03:44:35

%S 3,7,3,1,2,8,1,5,8,5,2,1,2,8,1,9,5,2,1,2,9,6,9,6,1,2,1,1,6,1,1,2,1,6,

%T 7,2,1,1,1,1,7,3,3,1,2,8,3,1,2,8,1,8,3,3,2,1,9,3,2,3,1,1,2,4,1,2,4,2,

%U 2,1,1,1,3,1,1,1,1,3,5,1,1,5,5,2,1,2,1,3,5,2,3,1,3,6,1,2,1,6,2,7

%N Initial digit of n-th Mersenne number.

%H Robert Israel, <a href="/A296442/b296442.txt">Table of n, a(n) for n = 1..10000</a>

%H Zhaodong Cai, Matthew Faust, A.J. Hildebrand, Junxian Li, Yuan Zhang, <a href="https://arxiv.org/abs/1712.04425">Leading Digits of Mersenne Numbers</a>, arXiv:1712.04425 [math.NT], 2017.

%F a(n) = A000030(A001348(n)).

%e The 4th Mersenne number is 127, so a(4) = 1.

%p initialdig:= n -> floor(n/10^ilog10(n)):

%p seq(initialdig(2^ithprime(i)-1),i=1..100); # _Robert Israel_, Dec 13 2017

%t Array[First@ IntegerDigits[2^Prime[#] - 1] &, 105] (* _Michael De Vlieger_, Dec 13 2017 *)

%o (PARI) a(n) = digits(2^prime(n)-1)[1];

%Y Cf. A000030, A001348.

%Y A135613, for Mersenne primes, is a subsequence.

%K nonn,base

%O 1,1

%A _Michel Marcus_, Dec 13 2017

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 April 16 10:24 EDT 2024. Contains 371700 sequences. (Running on oeis4.)