OFFSET
0,1
LINKS
FORMULA
a(n) = 45 - A217928(n).
a(n) = 0 for almost all n. Average order is n^-0.045 where the exponent is log(0.9)/log(10). - Charles R Greathouse IV, Oct 15 2012
MATHEMATICA
Total[Complement[Range[0, 9], IntegerDigits[#]]]&/@Range[0, 100] (* Harvey P. Dale, Aug 13 2013 *)
PROG
(PARI) { a(n) = local( d = vecsort( eval(Vec(Str(n))), , 8) ); 45 - sum(i=1, #d, d[i]) }
(Haskell)
a216407 = (45 -) . a217928 -- Reinhard Zumkeller, Jul 09 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Xenia Sheinerman, Oct 15 2012
STATUS
approved