1

Generally, I am solving this task:

Find number of solutions $m+3n+5p \le 600$

My try

$$(1+t+t^2...)(1+t^3+t^6+...)(1+t^5+t^{10}+...) = \frac{1}{1-t}\frac{1}{1-t^3}\frac{1}{1-t^5} $$

Now I should have $\frac{1}{1-t}\frac{1}{1-t^3}\frac{1}{1-t^5}$ in form of sum of terms like $\frac{C}{(1-\lambda t)^n}$ so I want to partition my product. But how can I do this effectively? In that post author state that like this is easy observation, but I don't know how to start with that.

  • WIthin the answer you linked the terms of the final solution are not of the form $\frac C{(1-\lambda t)^n}$ either. There is still a term of the form $\frac1{1-t^3}$. So I expect the same to happen here. See here. WolframAlpha decomposes $(1-t^3)$ as $(1-t)(1+t+t^2)$ and $(1-t^5)$ in a similiar manner. – mrtaurho Aug 12 '19 at 17:56
  • but if we have $1-t^3$ we can do $x:= t^3$ and then we have $1-x$. –  Aug 12 '19 at 18:58
  • Well, yes. But then you will also get that $1-t=1-\sqrt[3]x$. And I don't know if this is really better, – mrtaurho Aug 12 '19 at 19:00
  • It will be useful for me because due to $\frac{C}{(1-\lambda t)^k} = \sum_{n \ge 0} \binom{n+k-1}{k-1} \lambda^n t^n$ it follows that: $\frac{C}{(1-\lambda t^p)^k} = \sum_{n \ge 0} \binom{n+k-1}{k-1} \lambda^n t^{pn}$ –  Aug 12 '19 at 19:04

2 Answers2

0

COMMENT.-It seems to me that you use a Combinatorial technique to find the number of solutions of your linear equation with three unknowns. I would be interested to know how the matter is. On the other hand in your search of fractions "like $\frac {C} {(1- \lambda t) ^ n}$" as you say, I can only find the following $$\frac{t+2}{9(t^2+t+1)}+\frac{t^3+t^2+2t+1}{5(t^4+t^3+t^2+t+1)}-\frac{14}{45(t-1)}+\frac{1}{5(t-1)^2}-\frac{1}{15(t-1)^3}$$ Can this decomposition help you find the number of solutions mentioned above? I thank you if you tell me the way it should be done.

Piquito
  • 29,594
  • $-\frac{14}{45(t-1)}+\frac{1}{5(t-1)^2}-\frac{1}{15(t-1)^3}$ - this type can be helpful but I can't use these parts $\frac{t+2}{9(t^2+t+1)}+\frac{t^3+t^2+2t+1}{5(t^4+t^3+t^2+t+1)}$ –  Aug 12 '19 at 19:02
  • I can still find two more of the "useful" fractions. It has $$\dfrac{t+2}{9(t^2+t+1)}+\dfrac{t^3+t^2+2t+1}{5(t^4+t^3+t^2+t+1)}=\dfrac{t^2+t}{9(t^3-1)}+\dfrac{t^4+t^2-t}{5(t^5-1)}-\dfrac{2}{9(t^3-1)}-\dfrac{1}{5(t^5-1)}$$But what to do with the two "useless" fractions? – Piquito Aug 12 '19 at 20:52
0

A few comments. First, since you are looking for the number of solutions where $m+3n+5p\leq 600$, you want the sum of the coefficients of $1,t,\ldots, t^{600}$ in the power series

$$f(t)=\frac{1}{(1-t)(1-t^3)(1-t^5)},$$

but it is easier to say that you want the coefficient of $t^{600}$ in

$$g(t)=\frac{f(t)}{1-t}=\frac{1}{(1-t)^2(1-t^3)(1-t^5)}.$$

Second, the whole point of having a partial fraction decomposition is so that you have an easy way to determine the coefficients, and you can do that for $\frac{p(t)}{(1-t^n)^k}$ for any polynomial $p$ and any $n,k$, so breaking things up into linear terms isn't necessary.

Factoring the denominator into relatively prime components (which essentially just means factoring $(1-t)$ from each factor), we have

$$g(t)=\frac{f(t)}{1-t}=\frac{1}{(1-t)^4(1+t+t^2)(1+t+t^2+t^3+t^4)}.$$

This suggests looking for a partial fraction decomposition of the form

$$\frac{A}{(1-t)} + \frac{B}{(1-t)^2}+\frac{C}{(1-t)^3}+\frac{D}{(1-t)^4}+\frac{E+Ft}{(1+t+t^2)}+\frac{G+Ht+It^2+Jt^3}{(1+t+t^2+t^3+t^4)}$$

and then multiplying the last two terms by $(1-t)$ on both the top and the bottom.

In this form, you will be able to find the coefficient of $t^{600}$ from standard formulas.

I'm not sure if there is a better way to do this than to pick 10 values of t to set up 10 linear equations in 10 variables and solve by row reduction, at least if you're doing it by hand.

Edit: I want to briefly add an explanation for why I divided by $1-t$.

If $f(t)=\sum a_i t^i$ and $(1-t)^{-1}=\sum t^i$, then

$$\frac{f(t)}{1-t)}=(1+t+t^2+t^3+\ldots)(a_0+a_1t+a_2t^2+a_3t^3+\ldots)=(a_0+(a_0+a_1)t+(a_0+a_1+a_2)t^2+(a_0+a_1+a_2+a_3)t^3+\ldots$$

So dividing the generating function of a sequence by $(1-t)$ gives the generating function of the partial sums.

Aaron
  • 24,207
  • and then multiplying the last two terms by (1−t) on both the top and the bottom. that 1 quote solved my problem @Aaron –  Aug 13 '19 at 15:52
  • But $1$ more question. Can you explain a little bit more that? "but it is easier to say that you want the coefficient of $t^600$ in (...)" Why can we do this transformation? –  Aug 13 '19 at 16:03
  • 1
    An alternative way to understand $g(t)=\frac{1}{1-t} f(t)$ is that “$m+3n+5p\leq 600$ for nonnegative integers $m,n,p$” can also be expressed as “$m+3n+5p+q$ for nonnegative integers $m,n,p,q$”. This extra variable $q$ is known as a slack variable, and including it amounts to multiplying the generating function by $(1-t)^{-1}$. So there’s more than one way to understand what’s going on. – Semiclassical Aug 13 '19 at 21:32
  • @Semiclassical Interesting. Although dividing by $1-t$ is useful for other things where you don't have an interpretation like this. – Aaron Aug 13 '19 at 22:09