0

My problem originally was "Given a number of two digits, in how many ways can you obtain 12 as the sum of its digits?".

I could find the solution by counting:

  1. 93: 9 + 3
  2. 84: 8 + 4
  3. 75: 7 + 5
  4. 66: 6 + 6
  5. 57: 5 + 7
  6. 48: 4 + 8
  7. 39: 3 + 9

Then I found 7 as the answer. But I realized that if the number of digits were 3, the counting would get too big already, so I would like to know if there's a way to generalize this problem and its solution.

Jonas
  • 307

0 Answers0