How Many Combinations of Digits 0-7 Sum to 7?

  • Context: Undergrad 
  • Thread starter Thread starter MartinV05
  • Start date Start date
  • Tags Tags
    Combinations Sum
Click For Summary
SUMMARY

The discussion focuses on finding the number of combinations of the digits 0 through 7 that sum to 7, using exactly three digits with repetition allowed. The procedure involves computing the expression (1 + x + x^2 + x^3 + x^4 + x^5 + x^6 + x^7)^3 and identifying the coefficient of x^7 in the resulting polynomial. This coefficient represents the total permutations of the digits that sum to 7, which can then be divided by 3! to obtain the number of unique combinations.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with polynomial expansions
  • Knowledge of generating functions
  • Basic factorial calculations
NEXT STEPS
  • Study generating functions in combinatorics
  • Learn about polynomial coefficient extraction techniques
  • Explore the concept of permutations and combinations in depth
  • Investigate applications of combinatorial counting in algorithm design
USEFUL FOR

Mathematicians, computer scientists, and students studying combinatorial theory or algorithm design will benefit from this discussion.

MartinV05
Messages
23
Reaction score
0
When you have combinations where digits are 0,1,2...,m, meaning we have n=m+1 and k, is there a way to see how much of them sum up to a given number? For the sake of simplicity I have the digits 0,1,2...,7 (so n=8), and k=3. I need to find how much of these combinations WITH repetition sum up to 7. Is there a formula for this?
 
Physics news on Phys.org
By sum up, I mean the sum of all 3 digits in each combination needs to be equal to 7.
 
MartinV05 said:
Is there a formula for this?

I don't know a formula, but there is a procedure - or at least a concise way to phrase the problem.

Compute

(1 + x + x^2 + x^3 +x^4 + x^5 + x^6 + x^7)^3 = ?

and then look at the coefficient of x^7 in the answer. The coefficient counts the number of permutations of the numbers 0,1,2...7 that add to 7. To get combinations, divide that by 3!.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
1
Views
6K
Replies
3
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K