0

In this page of brilliant , an example problem is as follows

$$\sum_{i=0}^6 a_i \leq 100$$ How many positive integers $(a_1,a_2...,a_6)$ with $ i \leq a_i$ for $i=1,2,3,4,5,6$ satisfy the sum?

In the solution they start of with introducing an extra variable $c$ into the equation making it:

$$ c+ \sum_{i=0}^6 a_i \leq 100$$

With, $ 0 \leq c$

But I don't understand why? They call this addition of 'c' is some kind of bijection but I'm not sure what purpose it is serving..

RobPratt
  • 45,619
  • The notation $\sum a_i+c$ is ambiguous. Do you mean $\sum (a_i+c)$ or $(\sum a_i)+c$? – lulu Nov 03 '20 at 16:07
  • second one, Ill edit post – tryst with freedom Nov 03 '20 at 16:08
  • 1
    Actually, the inequality $$\sum_{i=0}^6 a_i \leq 100$$ is transformed into the equality $$ \sum_{i=0}^6 a_i +c = 100$$

    where $c$ is simply denoting how much of the constraint is "unused"/extra.

    – Zubin Mukerjee Nov 03 '20 at 16:08
  • 1
    For this problem, I'd set $b_i=a_i-i$ so then you want $21+\sum b_i≤100$ with $b_i≥0$. which is in standard Stars and Bars form – lulu Nov 03 '20 at 16:08
  • You need to decide whether you allow the $a_i$ and $c$ to be $0$ and whether you have $a_0$ in the sum – Henry Nov 03 '20 at 16:08

1 Answers1

3

The term $c$ has been introduced to the expression as a dummy variable, which saves you a lot of work in the long run.

Via the introduction of this new dummy variable '$c$', the below problem has been transformed from $$\sum_{i=0}^6 a_i \leq 100$$ to $$\sum_{i=0}^6 a_i + c = 100$$

Why this works out so well is that each non-negative value taken up by this dummy variable $c$ corresponds to a particular case of the inequality. For example, when $c=10$, $\sum_{i=0}^6 a_i = 90$. To reiterate, taking this extra variable saves you the effort of having to calculate so many different cases.

The number of positive integral solutions of the above equation can be calculated easily via the well known formula for the same. I think you can take it from here!

Scilife
  • 415