A067275 Number of Fibonacci numbers A000045(k), k <= 10^n, which end in 4.
0, 1, 7, 67, 667, 6667, 66667, 666667, 6666667, 66666667, 666666667, 6666666667, 66666666667, 666666666667, 6666666666667, 66666666666667, 666666666666667, 6666666666666667, 66666666666666667, 666666666666666667, 6666666666666666667, 66666666666666666667, 666666666666666666667
Offset: 0
Examples
a(2) = 7 because 7 of the first 10^2 Fibonacci numbers end in 4. From _Wolfdieter Lang_, Feb 08 2017: (Start) Curious cubic identities: 3^3 + 7^3 + 0^3 = 370, 33^3 + 67^3 + (00)^3 = 336700, 333^3 + 667^3 + (000)^3 = 333667000, ... 3^3 + 7^3 + 1^3 = 371, 33^3 + 67^3 + (01)^3 = 336701, 333^3 + 667^3 + (001)^3 = 333667001, ... 4^3 + 0^3 + 7^3 = 407, 34^3 + (00)^3 + 67^3 = 340067 , 334^3 + (000)^3 + 677^3 = 334000677, ... (End)
Links
- Seiichi Manyama, Table of n, a(n) for n = 0..1001
- Index entries for linear recurrences with constant coefficients, signature (11,-10).
Crossrefs
Programs
-
Mathematica
s = Fibonacci@ Range[10^5]; Table[Count[Take[s, 10^n], m_ /; Mod[m, 10] == 4], {n, 0, Floor@ Log10@ Length@ s}] (* or *) Table[Boole[n > 0] Ceiling[10^n/15], {n, 0, 20}] (* or *) CoefficientList[Series[x (1 - 4 x)/((1 - x) (1 - 10 x)), {x, 0, 20}], x] (* Michael De Vlieger, Feb 08 2017 *)
-
PARI
a(n)=(10^n+13)\15 \\ Charles R Greathouse IV, Jun 05 2011
Formula
a(n) = ceiling((2/30)*10^n) - Benoit Cloitre, Aug 27 2002
From Paul Barry, Mar 24 2004: (Start)
G.f.: x*(1 - 4*x)/((1 - x)*(1 - 10*x)).
a(n) = 10^n/15 + 1/3 for n>0. (End)
a(n) = 10*a(n-1) - 3 for n>1. - Vincenzo Librandi, Dec 07 2010 [Immediate consequence of the previous formula, R. J. Mathar]
From Eric M. Schmidt, Oct 28 2012: (Start)
For n>0, a(n) = A199682(n-1)/3 = (2*10^(n-1) + 1)/3.
For n>=2, a(n+1) = a(n) + 6*10^n. (End)
From Elmo R. Oliveira, Jul 22 2025: (Start)
E.g.f.: (-6 + 5*exp(x) + exp(10*x))/15.
a(n) = 11*a(n-1) - 10*a(n-2) for n >= 3.
a(n) = A073553(n)/2 for n >= 1. (End)
Extensions
A073552 merged into this sequence by Eric M. Schmidt, Oct 28 2012
Comments