OFFSET
10,5
COMMENTS
a(n) = 0 for 0 < n 10.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 10..10000
EXAMPLE
a(14)= 2 as 1 divides 14 and 2 is the remainder obtained when 14 is divided by 4.
MATHEMATICA
Table[Plus @@ Mod[n, Select[IntegerDigits[n], # != 0 &]], {n, 10, 100}]
PROG
(Haskell)
a067458 n = f 0 n where
f y 0 = y
f y x = if d == 0 then f y x' else f (y + mod n d) x'
where (x', d) = divMod x 10
-- Reinhard Zumkeller, Sep 24 2015
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Feb 07 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Feb 11 2002
STATUS
approved