A137282 Final digit of A136408(n).
1, 2, 4, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9, 7, 3, 7, 5, 7, 1, 7, 9
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,1)
Programs
-
Mathematica
Mod[#,10]&/@LinearRecurrence[{3,-4,6,-4},{1,2,4,7},120] (* or *) PadRight[ {1,2,4},120,{1,7,9,7,3,7,5,7}] (* Harvey P. Dale, Aug 12 2016 *)
Formula
a(n) = a(n-8), n>=11.
-(7*x^3+3*x^4+7*x^5+5*x^6+7*x^7+5*x^9+5*x^10+1+2*x+4*x^2)/ ((x-1) *(1+x) *(x^2+1) *
(x^4+1)). - R. J. Mathar, Mar 11 2011