OFFSET
0,2
COMMENTS
Period 10: repeat [0, 7, 4, 1, 8, 5, 2, 9, 6, 3]. The ten digits by jumps of three terms or a(3n). Also reverse of A131579(n+1), n =1..10, repeated.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,1).
FORMULA
a(n) = 7*n (mod 10) = -3*n (mod 10), n >= 0. See the name.
a(n+10) = a(n). - Wesley Ivan Hurt, Apr 16 2024
MATHEMATICA
Table[Last[IntegerDigits[7n]], {n, 0, 98}] (* Alonso del Arte, Feb 06 2014 *)
Mod[7*Range[0, 100], 10] (* or *) PadRight[{}, 100, {0, 7, 4, 1, 8, 5, 2, 9, 6, 3}] (* Harvey P. Dale, Jul 28 2017 *)
PROG
(PARI) a(n)=7*n%10 \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Paul Curtz, Oct 09 2008
STATUS
approved