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!)
A105512 Number of times 2 is the leading digit of the first n+1 Fibonacci numbers in decimal representation. 10

%I #26 Mar 18 2023 11:22:01

%S 0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,

%T 6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,10,11,11,11,11,11,12,

%U 12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16

%N Number of times 2 is the leading digit of the first n+1 Fibonacci numbers in decimal representation.

%H Winston de Greef, <a href="/A105512/b105512.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = #{k: A008963(k) = 2 and 0<=k<=n};

%F a(A105502(n)) = a(A105502(n) - 1) + 1;

%F n = A105511(n) + a(n) + A105513(n) + A105514(n) + A105515(n) + A105516(n) + A105517(n) + A105518(n) + A105519(n).

%F a(n) ~ log_10(3/2) * n. - _Amiram Eldar_, Jan 12 2023

%t Accumulate[Table[If[IntegerDigits[Fibonacci[n]][[1]] == 2, 1, 0], {n, 0, 100}]] (* _Amiram Eldar_, Jan 12 2023 *)

%o (PARI)

%o (leadingdigit(n, b=10) = n \ 10^logint(n, b));

%o (isok(n) = leadingdigit(fibonacci(n))==2);

%o (lista(n)=my(a=vector(1+n), r=0); for (i=1, n, r+=isok(i); a[1+i]=r); a) \\ _Winston de Greef_, Mar 17 2023

%Y Cf. A000030, A000045, A008963, A105502.

%Y Cf. A105511, A105513, A105514, A105515, A105516, A105517, A105518, A105519.

%K nonn,base

%O 0,9

%A _Reinhard Zumkeller_, Apr 11 2005

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 24 11:49 EDT 2024. Contains 371936 sequences. (Running on oeis4.)