For a positive integer , let be the sum of digits in the decimal representation of . Let be the sum of all the numbers obtained by erasing one or more numbers from the right end of .
Prove that
Click here to see all the problems posted so far. Keep checking everyday!
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
At first let N=k=0∑nak10k. We have S(N)=k=0∑nak. Now we calculate and simplify F(N). A little observation is required to find the compact form of F(N)
F(N)=i=1∑nj=i∑naj10j−i=i=1∑nj=0∑i−1ai10j=i=1∑n(aij=0∑i−110j)=i=1∑nai910i−1.
The rest is straight. Using the last form of F(N) we have
9F(N)=i=1∑nai(10i−1)=i=1∑n(ai10i−ai)=i=1∑nai10i−i=1∑nai=N−S(N)
and the result follows. □
NOTE: If you're wondering how I reformed the sum of F(N) in the third step above, say N=3265. Then clearly
F(3625)=326+32+3.
This is the form of the first sum. Now break further into
F(3625)====326+32+3(300+20+6)+(30+2)+3(300+30+3)+(20+2)+63(102+101+100)+2(101+100)+6⋅100.
Observe the number of occurrences of the powers of 10 for the nth digit and generalize to get the second sum.
Log in to reply
Great job!
Another way of doing it is inducting on the number of digits of N.
Clearly the statement is true for any one digit-number.
Assume that the statement is true for any k-digit number.
Now for any (k+1)- digit number b, let b=10a+c where a is a k-digit number and c is a one-digit number.
Notice that, S(b)=S(a)+c and F(b)=F(a)+a
So, S(b)+9F(b)=S(a)+c+9F(a)+9a.
From the induction hypothesis, S(a)+9F(a)=a. Substituting that, we get,
S(b)+9F(b)=10a+c=b.
So the result holds for all positive integers N.
Log in to reply
BTW, someone's downvoting every damn comment he's passing by. -_-
Log in to reply
Log in to reply
At first it seems rather tedious. However, if we prove by induction on the number of digits the calculations will magically disappear!
When number of digits is 1, F(N)=0,S(N)=n, done.
Suppose it was true for all k digit numbers. Consider a (k+1) digit number X with last digit m. Let Y be the k digit number without m. Then X=10Y+m. Hence S(X)+9F(X)=S(Y)+m+9F(Y)+9Y (since we missed out Y when calcualting F(Y)).
But by inductive hypothesis, S(Y)+9F(Y)=Y, hence S(X)+9F(X)=Y+m+9Y=10Y+m=X and we are done.
Log in to reply
Sorry, I did not see Mursalin's comment below. I just realized it was a repetition.
Interesting.