OFFSET
1,2
COMMENTS
a(n) is the rightmost nonzero digit in the base 7 expansion of n.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A242603(n) mod 7. - Michel Marcus, Oct 20 2016
EXAMPLE
a(9) = (9/7 mod 7) = 2.
MATHEMATICA
Table[Mod[n/7^IntegerExponent[n, 7], 7], {n, 1, 160}]
PROG
(PARI) a(n) = n/7^valuation(n, 7) % 7; \\ Michel Marcus, Oct 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 19 2016
STATUS
approved