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!)
A085856 Number of 2's in decimal expansion of Fibonacci(n). 10

%I #15 Nov 22 2020 08:09:05

%S 0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,1,0,0,2,1,1,1,1,

%T 1,2,1,1,0,1,1,0,2,0,0,0,0,2,1,1,3,1,2,1,3,1,2,2,2,3,1,1,1,1,2,0,2,2,

%U 3,0,1,2,1,0,1,1,2,1,1,4,2,1,1,0,0,3,2,2,0,0,2,0,1,3,4,0,2,3,1,4,3,0,3,3,5

%N Number of 2's in decimal expansion of Fibonacci(n).

%H Robert Israel, <a href="/A085856/b085856.txt">Table of n, a(n) for n = 0..10000</a>

%e Fibonacci(33) = 3524578, so a(33)=1.

%e Fibonacci(87) = 679891637638612258, so a(87)=2.

%p f:= n -> numboccur(2,convert(combinat:-fibonacci(n),base,10)):

%p map(f, [$0..200]); # _Robert Israel_, Nov 22 2020

%t Table[DigitCount[Fibonacci[n]][[2]], {n, 0, 200}] (* _Vladimir Joseph Stephan Orlovsky_, Jul 01 2011 *)

%Y Cf. 0's A085854, 1's A085855, 3's A085857, 4's A085858, 5's A085859, 6's A085860, 7's A085861, 8's A085862, 9's A085863.

%K base,nonn

%O 0,30

%A _Jason Earls_, Jul 06 2003

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 03:06 EDT 2024. Contains 371696 sequences. (Running on oeis4.)