OFFSET
0,8
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..10000
Andreas Guthmann, Wieviele k-stellige Fibonaccizahlen gibt es?, Archiv der Mathematik, 59(4):334-340, October 1992.
FORMULA
a(n) = floor(n*log(phi)/log(10)) +0 or +1 where phi is the golden ratio. - Benoit Cloitre, Oct 29 2002. [Corrected by Hans J. H. Tuenter, Jul 07 2025].
a(n) = floor(n*log_10(phi) - log_10(5)/2) + 1 for n >= 2, where phi is (1+sqrt(5))/2. - Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2007
MAPLE
with(combinat): a:=n->nops(convert(fibonacci(n), base, 10)): 1, seq(a(n), n=1..100); # Emeric Deutsch, May 19 2007
MATHEMATICA
Table[IntegerLength@ Fibonacci@ n, {n, 0, 84}] /. 0 -> 1 (* or *)
Table[Floor[n Log10@ GoldenRatio - Log10@ 5/2] + 1, {n, 0, 84}] /. 0 -> 1 (* Michael De Vlieger, Jul 04 2016 *)
PROG
(PARI) print1("1, 1, "); gold=(1+sqrt(5))/2; for(n=2, 100, print1(floor((n*log(gold)-log(5)/2)/log(10))+1", ")) \\ Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2007
(PARI) a(n) = #Str(fibonacci(n)); \\ Michel Marcus, Jul 04 2016
(Haskell)
a060384 = a055642 . a000045 -- Reinhard Zumkeller, Mar 09 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Apr 03 2001
EXTENSIONS
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2007
STATUS
approved