login
A131579
Period 10: repeat 0, 3, 6, 9, 2, 5, 8, 1, 4, 7.
5
0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2, 5, 8, 1, 4, 7, 0, 3, 6, 9, 2
OFFSET
0,2
COMMENTS
a(n) = last digit of 3*n, n >= 0. a(n+7) = last digit of 3*n + 1, n >= 0, and a(n+4) = last digit of 3*n + 2, n >= 0. The last digit of -3*n = A144468(n), n >= 0, the last one of -3*n + 1 = A144468(n+3), n >= 0 and the last one of -3*n + 2 = A144468(n+6), n >= 0. - Wolfdieter Lang, Aug 14 2017
FORMULA
a(n) = A008585(n) mod 10. - Bruno Berselli, Mar 08 2011
G.f.: -x*(3 + 6*x + 9*x^2 + 2*x^3 + 5*x^4 + 8*x^5 + x^6 + 4*x^7 + 7*x^8) / ( (x-1) *(1+x) *(x^4 + x^3 + x^2 + x + 1) *(x^4 - x^3 + x^2 - x + 1) ). - R. J. Mathar, Mar 10 2011
MATHEMATICA
PadRight[{}, 120, {0, 3, 6, 9, 2, 5, 8, 1, 4, 7}] (* Vincenzo Librandi, Aug 15 2017 *)
PROG
(Magma) &cat[[0, 3, 6, 9, 2, 5, 8, 1, 4, 7]^^10]; // Vincenzo Librandi, Aug 15 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 02 2007
STATUS
approved