login
A160949
a(n) = n - digital sum(n+1)
0
-1, -1, -1, -1, -1, -1, -1, -1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 62, 62, 62, 62, 62
OFFSET
1,9
COMMENTS
a(8)=8-ds(9)=8-9=-1; a(15)=15-ds(16)=15-(1+6)=15-7= 8; a(26)=26-ds(27)=26-(2+7)=26-9=17
MATHEMATICA
Table[n-Total[IntegerDigits[n+1]], {n, 80}] (* Harvey P. Dale, May 19 2018 *)
CROSSREFS
Sequence in context: A010731 A048762 A201053 * A245401 A048763 A088841
KEYWORD
base,sign
AUTHOR
Claudio Meller, May 30 2009
STATUS
approved