Find Number of Permutations of 2D Numbers Constrained by Sum n

In summary, the conversation discusses finding the number of possible permutations of 2d numbers (Xk) that satisfy the condition x1 + x2 + ... + x2d = n. The numbers Xk belong to the set of whole numbers and n belongs to the set of natural numbers. The conversation also explores the concept of combinations with repetition and provides a solution using a number line and balls to represent the problem. Finally, the conversation concludes with a detailed explanation of the formula for finding the total number of arrangements.
  • #1
Ketsha
2
0
ok this seems like a predominantly maths problem but i need it for a little project of mine related to classical dynamics.

So i have 2d numbers Xk, which are constrained by the relation that their sum is n.

what i need to find out is the number of possible permutations of the 2d numbers (Xk) that satisfy this condition.

the numbers Xk belong to the set of whole numbers, and n belongs to the set of natural numbers.
 
Mathematics news on Phys.org
  • #2


If you have a set of numbers for which x1 + x2 + ... + x2d = n, then any permutation of the xk's will have the same sum, so that isn't much of a constraint.

If you had 4 numbers x1, x2, x3, and x4, whose sum was N, how many permutation of the four numbers are there? Any of the four numbers could go into the first position, then any of the remaining three numbers could go into the second position, then any of the remaining two numbers could go into the third position, leaving only one number to go into the fourth position.
 
  • #3


Assuming that the numbers are non-negative integers (without this restriction, the number of possibilities is infinite), the number of solutions is given by combinatations with repetition of n objects of k = 2d different types; you may think of this as "filling" each variable Xi, one unit at a time, until you a total of n.

You may find a more complete explanation for these combinations here:

http://www.csee.umbc.edu/~stephens/203/PDF/6-5.pdf"

(These slides are better than the Wiki article)
 
Last edited by a moderator:
  • #4


nice problem...

Consider a number line made of 2d line segments of variable length. each line segment representing one of your 2d numbers. These line segments will be divided by 2d-1 points.. or let's represent by sticks instead of points. so there are 2d-1 sticks.

Now consider N balls. Each representing the numeric value 1. So total number balls is the sum of 2d numbers that you need to be.

now... if you arrange these N balls and 2d-1 sticks randomly, it will be kind off a pictorial representation of your problem. the number of balls between two sticks being a particular value xk.. and there will be 2d such numbers.

Since there can be two suck sticks together... the numbers will be greater than or equal to zero. Hence belonging to the set of whole numbers.

Now the question remains... in how many different ways can we arrange these 2d-1 sticks and N balls.

that will (N+2d-1)!

Now N of them are alike (balls) and 2d-1 of them are alike (sticks). so...

To total number of ways would be... (N+2d-1)!/N!(2d-1)! or simply (N+2d-1)C(2d-1)
 
  • #5


Thanks for the awesome solution... that was really well explained :) and has solved one of my biggest troubles. :)
 

FAQ: Find Number of Permutations of 2D Numbers Constrained by Sum n

How do I find the number of permutations of 2D numbers constrained by sum n?

The number of permutations of 2D numbers constrained by sum n can be found by using the formula n!/r!(n-r)!, where n is the total number of elements and r is the number of elements in each permutation. For example, if we have a 2x2 grid and n=4, the number of permutations would be 4!/2!(4-2)!=6.

What is the purpose of finding the number of permutations of 2D numbers constrained by sum n?

The purpose of finding the number of permutations of 2D numbers constrained by sum n is to determine the number of unique ways that a set of 2D numbers can be arranged in a grid while maintaining a specific sum. This can be useful in various mathematical and scientific applications, such as analyzing data patterns or solving optimization problems.

Can the number of permutations of 2D numbers constrained by sum n be calculated for any value of n?

Yes, the formula n!/r!(n-r)! can be used to calculate the number of permutations for any value of n. However, for larger values of n, the calculation can become extremely time-consuming and may require the use of specialized software or algorithms.

Are there any restrictions on the values that can be used in the 2D numbers for this calculation?

No, there are no restrictions on the values that can be used in the 2D numbers for this calculation. As long as the numbers are real numbers and the desired sum can be achieved, any combination of values can be used.

How is this calculation related to other mathematical concepts?

The calculation of the number of permutations of 2D numbers constrained by sum n is related to various mathematical concepts such as combinatorics, probability, and algebra. It involves the use of factorial notation and combinations to determine the number of unique arrangements of a set of elements.

Similar threads

Replies
7
Views
1K
Replies
7
Views
2K
Replies
1
Views
601
Replies
2
Views
2K
Replies
1
Views
1K
Replies
2
Views
1K
Back
Top