|
|
A070514
|
|
Final digit of n^4: a(n) = n^4 mod 10.
|
|
4
|
|
|
0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0, 1, 6, 1, 6, 5, 6, 1, 6, 1, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
LINKS
|
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
|
|
FORMULA
|
a(n) = n^k mod 10; for k > 0 where k mod 4 = 0. - Doug Bell, Jun 15 2015
a(n) = a(n-10).
G.f.: (x +6*x^2 +x^3 +6*x^4 +5*x^5 +6*x^6 +x^7 +6*x^8 +x^9)/(1 - x^10). (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 1, 6, 1, 6, 5, 6, 1, 6, 1}, 100] (* Vincenzo Librandi, Jun 16 2015 *)
|
|
PROG
|
(Sage) [power_mod(n, 4, 10)for n in range(0, 101)] # Zerinvary Lajos, Oct 30 2009
(PARI) vector(100, n, n--; n^4%10) \\ Derek Orr, Jun 16 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|