How Many Permutations of Coins Meet a Specific Value Threshold?

In summary, there are a number of permutations (of size N) that have a sum of values that is greater than some integer J.
  • #1
adoado
72
0
Hey all,

I recently encountered a problem that I cannot seem to solve...

Let's say I have the following coins A, B, C, D and E, each one with an associated integer value such that:

A = 1
B = 2
C = 3
D = 4
E = 5

Let's say I can pick N of them, and order does matter (so ABC is not equal to BCA, so we are dealing with permutations I would assume). How many combinations (of size N) exist such that the total sum of their values is equal to or greater than some integer J?

For example, how many permutations (pairs of 2) exist such that their sum is equal to or greater than 9? Clearly only two pairs, DE (4+5) and ED (5+4)... I have found a formula to deal with pairs, but I cannot find anyway to generalize it based on permutations of length N..

Any help would be greatly appreciated!

Thanks,
Adrian
 
Physics news on Phys.org
  • #2
adoado said:
I recently encountered a problem that I cannot seem to solve...

What do you consider a solution? It wouldn't be hard to write a computer algorithm to get the numerical answer. Did you want a symbolic expression?

...so we are dealing with permutations I would assume). How many combinations (of size N) exist...

Is it going to be "permutations" or is it going to be "combinations"?

To get a symbolic expression, I don't know how to solve the problem for either case! My suggestion is to try generating functions.

For example, when the expression:
[tex] (yx^1 + yx^2 + yx^3 + yx^4 + yx^5)^3 [/tex]
is simplified, the coefficient of [itex] y^3 x^9 [/itex] would be the number of possible combinations of three distince integers from the set {1,2,3,4,5} whose sum is exactly 9. You can multiply that coefficient by 3! = (3)(2)(1) to get the number of permutations.

If you wanted to see the combinations such as ACE listed explicity, you use
[tex] (Ayx^1 + Byx^2 + Cyx^3 + Dyx^4 + Eyx^5)^3 [/tex]
 
  • #3
Stephen Tashi said:
...For example, when the expression:
[tex] (yx^1 + yx^2 + yx^3 + yx^4 + yx^5)^3 [/tex]
is simplified, the coefficient of [itex] y^3 x^9 [/itex] would be the number of possible combinations of three distince integers from the set {1,2,3,4,5} whose sum is exactly 9. You can multiply that coefficient by 3! = (3)(2)(1) to get the number of permutations.
...

That generating function allows repeats, it should be
[tex](1+yx^1)(1+yx^2)...(1+yx^5)[/tex]
 
  • #4
bpet said:
That generating function allows repeats, it should be
[tex](1+yx^1)(1+yx^2)...(1+yx^5)[/tex]

You're correct!
 
  • #5


I understand your problem and can provide some insight on how to approach it. Firstly, you are correct in identifying that this is a permutation problem since order matters. To find the number of combinations (of size N) that meet the given criteria, we need to consider all possible permutations of N coins and calculate their total values. Then, we can count the number of permutations that have a total value equal to or greater than J.

One approach is to use a recursive algorithm to generate all possible permutations of N coins and calculate their total values. This can be a time-consuming process, especially for larger values of N. Another approach is to use a mathematical formula to calculate the number of permutations.

In your example, for a pair of coins, the formula would be (N-1) + (N-2) + ... + 1, where N is the number of coins. For N=2, this would give us 1+2 = 3, which matches the two permutations you identified (DE and ED). For larger values of N, this formula can be generalized as N(N-1)/2, which can be used to calculate the number of permutations for any given value of N.

To incorporate the condition of the total value being equal to or greater than J, we can use a similar formula but with some modifications. For example, for N=3 and J=9, the formula would be (N-1) + (N-2) + ... + (N-(J-1)), which in this case would give us 1+2+3 = 6 permutations.

I hope this helps you in solving your problem. Remember to always check your solution and consider any potential exceptions or special cases. Good luck!
 

FAQ: How Many Permutations of Coins Meet a Specific Value Threshold?

1. What is a permutation?

A permutation is an arrangement of objects, where the order of the objects matters. In other words, it is a rearrangement of a set of objects.

2. How do I calculate the number of permutations?

The number of permutations can be calculated using the formula nPr = n! / (n-r)!, where n is the total number of objects and r is the number of objects that are being arranged in a specific order.

3. What is the difference between permutations and combinations?

Permutations and combinations are both methods used to calculate the number of possible outcomes in a given scenario. However, permutations take into account the order of the objects, while combinations do not consider the order.

4. How can permutations be used in real life?

Permutations can be used to solve problems related to probability, such as calculating the number of possible outcomes in a game or the number of ways a password can be arranged. They are also used in statistics to analyze data and in cryptography for creating secure codes.

5. What is the significance of total values in permutations?

Total values in permutations refer to the total number of possible outcomes. They are important because they provide a way to systematically determine all possible arrangements of a set of objects, which can be useful in solving various problems in mathematics, science, and other fields.

Similar threads

Replies
31
Views
2K
Replies
41
Views
5K
Replies
23
Views
1K
Replies
1
Views
872
Replies
2
Views
2K
Replies
6
Views
3K
Replies
4
Views
2K
Back
Top