|
|
A296420
|
|
Period of last digit of multiples of n.
|
|
0
|
|
|
1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 10, 5, 10, 5, 2, 5, 10
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
The list is periodic, with period 10.
|
|
LINKS
|
|
|
EXAMPLE
|
a(6)=5 because multiples of 6 are 6, 12, 18, 24, 30, 36, 42 and the last digits of those numbers are 6,2,8,4,0,6,2,... with a period of 5.
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) a(n) = 10/gcd(n, 10) \\ Iain Fox, Dec 11 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|