login
Smallest Fibonacci number containing exactly n 2's.
1

%I #7 Feb 23 2014 21:11:29

%S 2,514229,12586269025,14472334024676221,2427893228399975082453,

%T 57602132235424755886206198685365216,

%U 1033628323428189498226463595560281832,2353412818241252672952597492098,2281217241465037496128651402858212007295

%N Smallest Fibonacci number containing exactly n 2's.

%H Vincenzo Librandi, <a href="/A072321/b072321.txt">Table of n, a(n) for n = 1..18</a>

%e a(2)=514229 so 514229 is the smallest Fibonacci number containing exactly two 2's.

%t Flatten[Table[Select[Fibonacci[Range[500]],DigitCount[#,10,2]==n&,1],{n,10}]] (* _Harvey P. Dale_, Feb 22 2014 *)

%K base,nonn

%O 1,1

%A _Shyam Sunder Gupta_, Jul 14 2002

%E a(9) from _Vincenzo Librandi_, Feb 23 2014