OFFSET
1,10
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..500
Eric Weisstein's World of Mathematics, Digital Root
EXAMPLE
a(18) = #{10+8x1, 18x1} = 2;
a(19) = #{19, 10+9x1, 19x1} = 3;
a(20) = #{19+1, 10+10, 10+10x1, 19x1} = 4.
PROG
(Haskell)
a116371 n = p a017173_list n where
p _ 0 = 1
p [] _ = 0
p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m
-- Reinhard Zumkeller, Feb 04 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Feb 12 2006
STATUS
approved