OFFSET
0
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Repdigit
EXAMPLE
a(11) = #{11} = 1;
a(12) = #{11+1} = 1;
a(22) = #{22} = 1;
a(24) = #{22+2} = 1;
a(197) = #{111+77+9, 99+77+11+9+1} = 2;
a(198) = #{99+88+11} = 1.
PROG
(Haskell)
a131364 n = p [r | r <- tail a010785_list, head (show r) `elem` show n] n
where p _ 0 = 1
p (k:ks) m = if m < k then 0 else p ks (m - k) + p ks m
-- Reinhard Zumkeller, Dec 10 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jul 03 2007, Jul 20 2007
EXTENSIONS
a(0)=1 added and offset adjusted by Reinhard Zumkeller, Dec 10 2011
STATUS
approved