Permutations/combinations problem

  • Thread starter Thread starter JL3
  • Start date Start date
AI Thread Summary
The discussion focuses on calculating the number of n-dimensional vectors with elements that can take on three values (-1, 0, +1). The initial formula for the total number of vectors is λ^n, while the formula for vectors with exactly k non-zeros is p=(λ-1)^{k}×\binom{n}{k}. When considering vectors with at most k non-zeros and at least one non-zero, the formula involves a summation: p=∑_{k'=1}^{k}[(λ-1)^{k'}×\binom{n}{k'}]. The correctness of the equations is confirmed, but attempts to simplify the summation into a more compact form reveal that it cannot be eliminated due to the dependency on k'. The discussion concludes that while the formulas are accurate, a more concise expression for the summation is not feasible.
JL3
Messages
1
Reaction score
0
I have a problem about combinations and permutations I am trying to solve. Say we have an n-dimensional vector. Each element of the vector can contain anyone of \lambda=3 values (-1, 0 or +1). Then the number of possible vectors is simply:

\lambda^n

If we place the additional restriction that the vector must contain exactly k non-zeros, then it becomes:

p=(\lambda-1)^{k}\times\binom{n}{k}=\frac{n!(\lambda-1)^{k}}{k!(n-k)!}

If we change the restriction so that it must contain at most k non-zeros and at least 1 non-zero, then it becomes:

p=\sum_{k'=1}^{k}\left[(\lambda-1)^{k'}\times\binom{n}{k'}\right]=\sum_{k'=1}^{k}\frac{n!(\lambda-1)^{k'}}{k'!(n-k')!}

Are my equations correct? Is there a more compact way of expressing this last equation, to get rid of the summation?
 
Mathematics news on Phys.org
The formulas are correct.

If we want to get rid of the sum, we needed ##\binom n {k'} =\binom k {k'} \cdot r(n,k)## but the correction ##r## does also depend on ##k'##. So I guess there is no way to get rid of the sum.
 
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...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top