A146082 a(n) = A146081(n) mod 9.
2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0, 2, 4, 6, 8, 1, 3, 5, 7, 0
Offset: 0
Keywords
Links
- G. C. Greubel, Table of n, a(n) for n = 0..10000
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 1).
Programs
-
Magma
&cat[[2,4,6,8,1,3,5,7,0]^^10]; // Vincenzo Librandi, Jan 30 2016
-
Mathematica
a := LinearRecurrence[{2, -1}, {110, 184}, 100]; Mod[a, 9] (* G. C. Greubel, Jan 29 2016 *) PadRight[{},120,{2,4,6,8,1,3,5,7,0}] (* Harvey P. Dale, Sep 18 2016 *)
Formula
a(n) = A131669(n+2)-1.
Period 9: a(n+9)=a(n).
a(n) = (74*n + 110) mod 9. - G. C. Greubel, Jan 29 2016
Extensions
Edited by R. J. Mathar, Dec 08 2008
Comments