OFFSET
1,3
COMMENTS
The probability that Fibonacci(n) contains no 2's goes to zero as n grows to infinity. The maximum term is possibly Fibonacci(101) having 21 digits, none of them being "2".
EXAMPLE
a(5) = 8 is the 5th Fibonacci number having no digit 2's.
MAPLE
F:= combinat[fibonacci]:
q:= n-> not(2 in convert(n, base, 10)):
select(q, {F(n)$n=0..101})[]; # Alois P. Heinz, May 06 2019
MATHEMATICA
Join[{0}, Select[Fibonacci[Range[2, 50]], DigitCount[#, 10, 2]==0&]] (* Harvey P. Dale, Oct 01 2017 *)
PROG
(Magma) [0] cat [Fibonacci(n): n in [2..150] | not 2 in Intseq(Fibonacci(n))]; // Vincenzo Librandi, May 09 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Carmine Suriano, May 05 2010
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 03 2010
a(1) changed from 1 to 0 by Alois P. Heinz, May 06 2019
STATUS
approved