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