I have an exam later today and one of the problems I'm expecting is to divide a number to multiple integers. The results must be all positive integers. But the input may not be dividable into equal parts.
If I take 660 for example, and divided it to 7 pieces, I will get
94.28 which is not an integer. Rather I want an answer something like,
94 (5x) and 95 (2x). I know I could try out a couple of numbers, but I wanted to do it way more efficiently.
Thanks in advance.