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

Recursion. I don't understand proof.

Theorem Let $a_0$ and $a_1$ be given and let $a_2,a_3,...$ be defined by the recurrence relation $a_n=Aa_{n-1} + Ba_{n-2} (n>1)$ where $A$ and $B$ are constants. Then let $\alpha, \beta$ be the roots of the quadratic equation $x^2 = Ax + B$ It…
user180834
  • 1,453
0
votes
1 answer

Generating function for the sequence $(0,0,0,1,2,...,2^{r-3},...)$

Find the generating function for the sequence $(0,0,0,1,2,...,2^{r-3},...)$ I found this question in my notes. I know the generating function for the sequence $a_r$ is $\sum a_r x^r$ but I'm not sure how to apply it in this case. EDIT: Removed the…
Malcolm X
  • 317
-1
votes
1 answer

Find $a_n$ with $n\geq 0$

Let $a_1 = 1, \ a_2 = 18$ and $a_{2n} = 8a_n + 10, \ \ n\geq 1$ Find $a_n$ with $n\geq 1$ I tried to solve above problem use generating function. Can anyone help me solve by generating function.
qwerty89
  • 726
-1
votes
1 answer

Find the generating function for the recurrence:

Struggling to approach keep ending with solutions that do not work. Find the generating function for the recurrence: $$a_{+1}= \frac{a_}3 + 1, \quad ≥ 0$$ with the initial condition $a_0 =0$.
Martin
  • 1
-1
votes
1 answer

Passwords are composed from lower and uppercase letters of the English alphabet, digits and 34 special characters.

What is the exponential generating function of the sequence $a_n$ = number of passwords with at least one capital letter, one number and one special character. I know that if I were to restrict specific letters, such as "must have at least 1 a", I…
-1
votes
1 answer

generating function of $(1/n)a_n$ in terms of the generating function of $a_n$

I have the generating function of $a_n$, $A(z)$, and I want to find the generating function of $(1/n)a_n$ in terms of the generating function of $a_n$. Any help is appreciated.
Rasoul
  • 17
-1
votes
1 answer

Finding the generating function of a sequence $(f(n))_{n\geq 0}$

Let $f(n)$ be a function on the non-negative integers defined recursively in the form $$f(n)=af(n-1)+bf(n-2)+cf(n-2)+p(n)\alpha^n,$$ where the $a,b,c,\alpha \in\mathbb{C}$ and $p$ is a polynomial with complex coefficients. Show that the…
-1
votes
6 answers

Trivial Question : generating function

How does $ 1 + x + x^2 + x^3 + x^4 = \frac {1-x^5}{1-x} $ ?
lapin
  • 459
-1
votes
1 answer

Generating Functions to design nonstandard dice

Define a nonstandard die as a $6$-sided die that is equally likely to come up on each side, but has a different set of numbers than the usual $1,2,3,4,5,6$ on its sides. A standard die will be the usual fair die bearing the numbers $1,2,3,4,5,6$. Is…
-1
votes
2 answers

Closed form for generating functions

I'm really not sure how to solve these type of questions could somebody lead me in the right direction? Find a closed form for these generating functions $$(a)\quad u_n = 3n^2+4n+5 \quad for \quad n=0,1,2,... $$ $$(b) \quad u_n = {n+7 \choose4}…
-1
votes
2 answers

Determine sequence using generating function.

Using generating function determine sequence $u_n$: $$u_0 = 1, \ u_1 = 0, u_{n+2} - 4u_{n+1} + 4u_n =0 $$ I am asking for advices. Thanks in advance.
user180834
  • 1,453
-2
votes
1 answer

Number of integral solution of $x+2y=n$ using generating function

I want to know, how to calculate the number of integral solutions of $x+2y=n$.
-2
votes
1 answer

Kids eating candy

Determine how many ways I can distribute 80 candies to 3 kids, such that: The first kid receives an arbitrary number of candies (possibly 0). The second kid receives an even positive number of candies. The third kid receives 0, 2, or 5 candies.…
Math_Guy
  • 166
-2
votes
1 answer

Generating function into polynomail

i) Find a generating function expression of a sequence with terms $$d_n=\sum_{p=0}^n p^3$$ using operations on the geometric series $\sum_{n\geq 0} x^n$ ii) Derive a polynomial (in $n$) expression for $d_n$. for i) I got…
-2
votes
3 answers

Determine the number of all nonnegative integer solutions to $x + y + z = 11$ with $x\leq 3$, $y\leq 4$, and $z \leq 6$.

Determine the number of all nonnegative integer solutions to $x+y+z = 11$ with $x\leq 3$, $y\leq 4$, and $z \leq 6$.
1 2 3
21
22