OFFSET
0,11
COMMENTS
The sum of the digits of any term of this sequence (A066568) is divisible by 9. - Alexandre Wajnberg, Sep 30 2004
LINKS
EXAMPLE
a(23) = 23 - 2 - 3 = 18, a(2345) = 2345 - 2 - 3 - 4 - 5 = 2331.
MATHEMATICA
Table[n-Total[IntegerDigits[n]], {n, 0, 80}] (* Harvey P. Dale, Sep 19 2011 *)
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) }
{ for (n=0, 1000, write("b066568.txt", n, " ", n - SumD(n)) ) } \\ Harry J. Smith, Mar 05 2010
(PARI) a(n) = n - sumdigits(n); \\ Michel Marcus, Jan 04 2016
(Magma) [n -(&+Intseq(n)): n in [1..100]]; // Vincenzo Librandi, Jan 04 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Dec 18 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Dec 21 2001
STATUS
approved