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

  • Thread starter Thread starter Ketsha
  • Start date Start date
  • Tags Tags
    2d Numbers
AI Thread Summary
The discussion focuses on finding the number of permutations of 2D numbers (Xk) constrained by their sum, n, where Xk are whole numbers and n is a natural number. It explains that any permutation of the numbers will maintain the same sum, which simplifies the problem. The solution involves using combinations with repetition to determine the number of ways to fill the variables Xi until the total equals n. A visual analogy is provided, comparing the arrangement of N balls (representing the numeric values) and 2d-1 sticks, leading to the formula for calculating permutations. The final formula for the number of arrangements is (N+2d-1)! / (N!(2d-1)!), which effectively solves the posed problem.
Ketsha
Messages
2
Reaction score
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


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.
 


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:


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)
 


Thanks for the awesome solution... that was really well explained :) and has solved one of my biggest troubles. :)
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top