|
|
A167873
|
|
Period 4: repeat [10, 6, 10, 4].
|
|
2
|
|
|
10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4, 10, 6, 10, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Number of different remainders mod 10 of n-th powers (i.e., number of possible last decimal digits of n-th powers).
Continued fraction expansion of (124+sqrt(16926))/25. - Klaus Brockhaus, May 01 2010
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 8 - 4*((n+1) mod 2) + 2*ceiling(n/4) - 2*floor(n/4). - Wesley Ivan Hurt, Mar 26 2014
|
|
EXAMPLE
|
a(4) = 4 because the possible last decimal digits of 4th powers are 0, 1, 5, 6.
|
|
MAPLE
|
|
|
MATHEMATICA
|
|
|
PROG
|
(GAP) Flat(List([1..30], n->[10, 6, 10, 4])); # Muniru A Asiru, Oct 06 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|