How many numbers have a units digit that equals the digit sum of previous digits?
- No negative number solutions.
- No more than 3 digits
- Digit sum of all digits except the units digit must equal the units digit
Feel free to solve without these specific restrictions
Examples of a solution:
- 11, 22, 33...
- 101, 202, 303...
- 112, 224, 336...
- 123, 246
- 0
(347 is a solution because 3+4=7)
How many total numbers exist? And what are some requirements for solutions other than this rule?
I'm in high school and I thought of this problem and wasn't sure what field of math it would fall into but I think its an interesting challenge.
Edits:
- @JMoravitz came up with a number of 55 solutions with 3 digits, but I was wondering if there could be a general summation for a variable number of digits.
- @aqualubix found general expression for the number of solutions with n digits.