MHB Not an exercise, more of a question.

  • Thread starter Thread starter IHateFactorial
  • Start date Start date
  • Tags Tags
    Exercise
Click For Summary
To determine the unique ways to sum to a number n using u addends, where order matters and all addends are positive integers, a combinatorial approach is necessary. The problem can be framed as finding the number of integer solutions to the equation x1 + x2 + ... + xu = n, with the constraint that each xi > 0. The generating functions or the stars and bars theorem can be applied to simplify the calculations. For the example of n=6 with u=4, the formula involves calculating permutations of the partitions of n into u parts. This method avoids the tediousness of manually listing permutations and ensures all unique combinations are counted.
IHateFactorial
Messages
15
Reaction score
0
If I have a number n and I want to know all the unique ways in which I can use u addends to get that number... How do I do it?

For example: If the number is 6 and I want to see how many unique ways I can add up to it (order matters: $$1 + 1 + 2 + 2\ne 2 + 2 + 1 + 1$$) by using 4 addends, what's the formula? (This is, in fact, considering that all the addends are greater than 0 and whole numbers.)

I can do it by looking for each unique way to add up to n using u addends and then factoring in the number of ways each can be permutated, including repeated numbers, but that seems too tedious.
 
Physics news on Phys.org
There is a nice little variation of the problem. The host says, after you have chosen the door, that you can change your guess, but to sweeten the deal, he says you can choose the two other doors, if you wish. This proposition is a no brainer, however before you are quick enough to accept it, the host opens one of the two doors and it is empty. In this version you really want to change your pick, but at the same time ask yourself is the host impartial and does that change anything. The host...

Similar threads

Replies
29
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K