MathDB
2016 Team #13

Source:

August 17, 2022
2016team test

Problem Statement

Ash writes the positive integers from 11 to 20162016 inclusive as a single positive integer n=12345678910112016n=1234567891011\dots2016. What is the result obtained by successively adding and subtracting the digits of nn? (In other words, compute 12+34+56+78+91+01+1-2+3-4+5-6+7-8+9-1+0-1+\dots.)