A386758 Number of decimal digits in the n-th Lucas number.
1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17
Offset: 0
Examples
L(0)=2 has one digit, so that a(0)=1; L(5)=11 has two digits, so that a(5)=2.
Links
- Hans J. H. Tuenter, Table of n, a(n) for n = 0..10000
Crossrefs
Programs
-
Maple
a:= n-> 1+floor(n*log[10]((1+sqrt(5))/2)): seq(a(n), n=0..81);
-
Mathematica
a[n_] := IntegerLength[LucasL[n]]; Array[a, 100, 0] (* Amiram Eldar, Aug 16 2025 *)
Comments