A138468 Number of even digits in Fibonacci numbers.
1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 2, 1, 0, 2, 1, 0, 3, 2, 2, 3, 0, 3, 4, 2, 1, 3, 1, 3, 5, 4, 3, 3, 4, 4, 3, 3, 4, 5, 3, 4, 5, 4, 4, 3, 3, 3, 6, 5, 7, 6, 5, 2, 6, 6, 4, 6, 5, 8, 7, 6, 5, 6, 7, 5, 7, 7, 9, 8, 5, 7, 9, 5, 8, 7, 10, 6, 8, 11, 11, 8, 5, 5, 12, 7, 10, 9, 8, 7, 12, 11, 11, 11, 11, 9, 12
Offset: 0
Examples
The Fibonacci number 2584 has three even digits in it, so a(18) = 3.
Links
- Robert Israel, Table of n, a(n) for n = 0..10000
- Ron Knott, The Fibonacci Numbers.
Programs
-
Mathematica
Table[Total[Boole[EvenQ/@IntegerDigits[Fibonacci[n]]]],{n,0,96}] (* James C. McMahon, Jun 07 2025 *)
Formula
Extensions
a(0) corrected, and more terms from Robert Israel, May 25 2017
Comments