Number of solutions to summation

  • Context: Undergrad 
  • Thread starter Thread starter praharmitra
  • Start date Start date
  • Tags Tags
    Summation
Click For Summary

Discussion Overview

The discussion revolves around finding a general formula for the number of solutions to the equation a1 + a2 + a3 + ... + an = k, where all variables a_i and k are non-negative integers. The conversation includes theoretical exploration of combinatorial solutions and potential simplifications.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant initially asks for a general formula for the summation of non-negative integers equaling a constant.
  • A later post clarifies the question to specifically seek the number of solutions Tn to a1 + a2 + a3 + ... + an = k.
  • The same participant proposes a recursive argument for calculating Tn, starting from T1 = 1 and T2 = k + 1, and extending to T3 and beyond through nested summations.
  • Another participant suggests that the summation could be simplified to a polynomial expression using known formulas for sums, referencing external resources.

Areas of Agreement / Disagreement

Participants express differing views on the complexity of the solution and the existence of a simpler formula. No consensus is reached on a definitive formula or method.

Contextual Notes

The discussion includes assumptions about the nature of the variables and the summation process, but these are not fully resolved. The potential for simplification through polynomial expressions is mentioned but not elaborated upon.

praharmitra
Messages
308
Reaction score
1
What is the general formula for a1 + a2 + a3 + ... + an = A, where all the variables a_i and A are non-negative integers.
 
Mathematics news on Phys.org
There isn't an easier way to add numbers than to add them, unless the numbers are special in some way (eg, part of a arithmetic/geometric series)
 
qntty said:
There isn't an easier way to add numbers than to add them, unless the numbers are special in some way (eg, part of a arithmetic/geometric series)

ahhhh... sorry, completely scrwed up the question. I meant,

What is the general formula for the Number Of Solutions Tn to a1 + a2 + a3 + ... + an = k, where all variables are non-negative integers?

:P, sorry for the mistake.

However, I have a solution, but I am convinced that i had read an easier formula somewhere.

This is my argument

1. a = k, with only one variable, has only one solution. So T1 = 1

2. a + b = k, has k + 1 solutions, as a can take any value from 0 to k, and the corresponding b will be fixed. T2 = k + 1

[tex]T_{2} = \sum_{k ' = 0} ^k 1[/tex]

3. a + b + c = k

a + b can take any value from 0 to k, and corresponding c will be fixed. Suppose a + b = k'. Then from the above argument no. 2, no. of solutions are k' + 1. Thus to get total no. of solutions of a+b+c = k, we must sum k' over all possible k's

[tex]T_{3} = \sum_{k' = 0} ^k (k' + 1)[/tex]

[tex]= T_{3} = \sum_{k'' = 0} ^k \sum_{k' = 0} ^{k''} 1[/tex]


4. for a+b+c+d = k, we can divide it into a+b+c = k', then into a+b = k'', and solve it similarly like above.


Thus in general we'll have n-1 such summations over variables k', k'', k''' etc..., i.e

[tex]T_{n} = \sum_{k^{n-1} = 0} ^k \sum_{k^{n-2} = 0} ^{k^{n-1}}... \sum_{k'' = 0} ^{k'''} \sum_{k' = 0} ^{k^{''}} 1[/tex]


However, I am sure I have read an easier formula somewhere. Could someone list that down?
 
Last edited by a moderator:

Similar threads

  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K