Questions tagged [generating-functions]

Generating functions are formed by making a series $\sum_{n\geq 0} a_n x^n$ out of a sequence $a_n$. They are used to count objects in enumerative combinatorics.

A generating function is a formal power series of the form \begin{equation*} f(x)=\sum^{\infty}_{n=0}a_nx^n \end{equation*} whose coefficients contain information about $a_n$, the sequence of numbers. For instance, suppose that the sequence is the Fibonacci sequence $0,1,1,2,3,5,8,\ldots$ Then$$f(x)=x+x^2+2x^3+3x^4+5x^5+\cdots,$$$$xf(x)=x^2+x^3+2x^4+3x^5+\cdots,$$and$$x^2f(x)=x^3+x^4+2x^5+\cdots.$$Then, it follows from the definition of the Fibonacci sequence that$$(1-x-x^2)f(x)=x$$This fact can be used to prove properties of the sequence, such as that its $n^\text{th}$ term is$$F_n = \frac{\varphi^n-(-\varphi)^{-n}}{\sqrt5},$$where $\varphi$ is the golden ratio.

4469 questions
0
votes
1 answer

Need some hints for generating function-assignment.

I have this assignment: Which number sequence have the function : $$f(x) = \frac{1}{1+2x}$$ as its generating function? I don't know where to start here. I'm stuck at the very start and need some hints to get me on the right path.
0
votes
2 answers

Generating function of this sequence

Find the generating function of the sequence with the property $\sum_{i=0}^n a_{i}a_{n-i} = 1$. I'm not sure where to start in this problem.
0
votes
1 answer

Finding generating function

Find generating function for $1$, $\frac{5k(k+1)}{2}$, $\frac{25k(k+1)(k+2)}{6}$, $\frac{125k(k+1)(k+2)(k+3)}{24}$, $\dots$ I can't even start. I don't know where to start. Please someone explain.
Vibhav
  • 115
0
votes
3 answers

Closed form generating function

Q. What is the generating function for the sequence 1,1,1,1,1,1? Ans. The generating function for the sequence is $1+x+x^2+x^3+x^4+x^5.$ Now we have ** $\frac{(x^6-1)}{(x-1)} = 1+x+x^2+x^3+x^4+x^5$.** Consequently, $G(x) = \frac{x^6-1}{x-1}$ is the…
Vibhav
  • 115
0
votes
0 answers

Writing the Equation to an Unknown Function?

I play a game that utilizes bombers to attack troops on a planet. The bombers takea percentage of the population depending on how many bombers were present in the battle. I was able to easily figure out the percentages for various fleet sizes. My…
NiKo
  • 1
0
votes
3 answers

generating function for $\frac{n!}{(2n)!}$

How to construct generating function such that $$g(x) = \sum_{n=0}^\infty \frac{n!}{(2n)!} t^n $$
Mula Ko Saag
  • 2,177
  • 1
  • 23
  • 45
0
votes
2 answers

Generating Functions or Counting?

Alice has two bags. Each bag has $4$ slips of paper with the numbers $1$ through $4$ on them. Betty also has two bags, each with $4$ slips of paper with positive integers on them. They decide to play a game whereby each girl pulls a slip from each…
0
votes
1 answer

Generating Functions to Polynomial

Let $d_n$ be the number of ordered sequences of die rolls (i.e., sequences of integers from $1$ to $6$) that add up to $n$. For example, $d_4=8$, because a total of $4$ can be rolled in $8$ ways: $$\begin{array}{*4c} 4 & 3+1 & 2+2 & 1+3 \\ \\…
0
votes
1 answer

What is the $C$ constant in this generating function? (probability)

Let \begin{equation*} G(x)= C \frac{4x^4+x^5+1}{16-8x-4x^2}. \end{equation*} How am I supposed to calculate $C$? Out of $50$ experiments how many $0$'s do I get? $16-8x-4x^2$ can be written as: $-(2x+2)^2 +20$, but it doesn't look like the…
0
votes
3 answers

Generating function - the number of ways to distribute 100 dollars to n people.

I am currently a district math student and am learning generating functions. I was working on a question for a while and still couldn't find an answer to it. Here is the question: Find the generating function for the sequence (a_0, a_1, a_2,...)…
0
votes
2 answers

Coefficient $x^{15}$ out of expression

We throw 4 dice. We are interested in the number of ways to get at most $k$. So we are looking for the coefficient of $x^k$ in the generating function. The generating function will look like this: i=1,2,3,4 \begin{align} x_1 + x_2 + x_3 + x_4 \leq k…
iJup
  • 1,999
0
votes
2 answers

Find a closed form of the generating function for $a(n) =3n^2+4n+5$, $n=0,1,2,....$

Find a closed form of the generating function for $a(n)=3n^2+4n+5$ n=0,1,2,.... not sure how the constraint n=0,1,2,.... applies to this. Does this means that the coefficient must go up sequentially starting from 0?
Tom
  • 29
0
votes
0 answers

Find the number of solutions of the equation using generating functions

$$u_1+u_2+...+u_7 = 23$$ Where $$ 1\le u_i \le 7 =1,...,7 $$ So far, I've gotten up to the point where you actually find the generating function. so from my understanding so far there are 7 integers which must sum to 23 and lie between 2 and 6, I…
0
votes
1 answer

Some first term of this sequence.

Let a generating function: $$(x^n A(x))' $$ How to determine some first term of this sequence. Thanks in advance.
0
votes
1 answer

Generating function. Inverse.

Let $D(x)= (x+1)(x^2 +1 ) (x^3 +1 ).... $ and let F(x) be inverse of $D(x)$ I know, that $ D$ is the number of ways to write n as a sum of positive integers without repeated summands. Sums only differing by the order of the summands are counted…