So you managed to solve the first part of this problem That problem proved to be easy enough. Now, to move to the second part:
Repeat the "Reverse - subtract - Reverse - add" steps from the first problem (see spoiler below), but this time starting with a 4 digit number. For example:
Starting with n= 1234
Reverse(n) = 4321
4321 - 1234 = 3087
Reverse(3087) = 7803
3087 + 7803 = 10890
The problem is as before. Do these steps performed on a four digit number always result in the number 10890? If so, prove it. If not, find an exception.
If the first question was easy, then I would say this one is about medium difficulty, because one can't enumerate the results on the first subtraction as easily. If you manage to solve this one, I've got a "hard" problem coming up after this...
1. Start with any 3 digit number, that isn't the same when written backwards (e.g. 123 is allowed, but 121 is not).
2. Write it backwards, and subtract the smaller from the larger (e.g. 321 - 123 = 198).
3. Take this number, reverse it again, but this time, add the reversed number (e.g. 198 + 891 = 1089).
Does this final answer always equal 1089? If so, prove it. If not, find an exception.
If you run into any 1 or 2 digit numbers along the way, treat them as having a leading zero. (e.g. think of "99" as "099", which, when reversed, would be written as 990. Similarly 100, when reversed, would be 001, or simply 1.)
Edit: As before, you can assume the initial 4 digit number not a palindrome (i.e. is different when reversed). Bonus question: if the initial number is not palindromic, can the result after the first subtraction be palindromic? If not, why not? If yes, under what conditions?
Question
Guest
So you managed to solve the first part of this problem That problem proved to be easy enough. Now, to move to the second part:
Repeat the "Reverse - subtract - Reverse - add" steps from the first problem (see spoiler below), but this time starting with a 4 digit number. For example:
The problem is as before. Do these steps performed on a four digit number always result in the number 10890? If so, prove it. If not, find an exception.
If the first question was easy, then I would say this one is about medium difficulty, because one can't enumerate the results on the first subtraction as easily. If you manage to solve this one, I've got a "hard" problem coming up after this...
Edit: As before, you can assume the initial 4 digit number not a palindrome (i.e. is different when reversed). Bonus question: if the initial number is not palindromic, can the result after the first subtraction be palindromic? If not, why not? If yes, under what conditions?
Edited by rajat_magicLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.