10.1 One-variable examples

Exercise(A) 10.1.

Suppose that an+1=2⁢an+1,n≥1 and a0=0. Show that

x−1f(x)=2f(x)+91−x)−1

and hence deduce that an=2n−1,n≥0.

Exercise(A) 10.2.

Suppose that an+1=2⁢an+n,n≥1 and a0=1. Prove that

x−1⁢(f⁢(x)−1)=2⁢f⁢(x)+x⁢(1−x)−2,

and deduce that an=2n+1−n−1.

Exercise(A) 10.3.

Suppose that an+1=an+1+an−1,n≥1 and a0=a1=1. Prove that

x−1⁢(f⁢(x)−x)=f⁢(x)+x⁢f⁢(x),

and deduce that an=15⁢(r+n−r−n), where r+=1+52 and r−=1−52.

Example 10.4.

Let dn be the number of n-derangements i.e., permutations of [n] with no fixed points. Let π be an (n+1)-derangement. Suppose π⁢(n+1)=i∈[n]. If π⁢(i)=n+1, then the rest of the permutation is a derangement of [n]∖{i}. If π⁢(i)≠n+1=π⁢(j) then replacing π⁢(j) by i gives a derangement of [n]. Thus, given i∈[n] and a n-derangement or n−1-derangement, we can construct a (n+1)−derangement and vice-versa.

dn+1=n⁢(dn−1+dn).

Set d0=1, d1=0, d2=1. Let f be the EGF. Multiply both sides by xnn!. Then, we have that

∑n=1dn+1⁢xnn! =∑n=0n⁢dn⁢xn−1(n−1)!=f′⁢(x);
∑n=1n⁢dn⁢xnn! =x⁢∑n=1dn⁢xn−1(n−1)!=x⁢f′⁢(x);
∑n=1n⁢dn−1⁢xnn! =x⁢∑n=1dn−1⁢xn−1(n−1)!=x⁢f⁢(x).

Thus, we have that (1−x)⁢f′⁢(x)=x⁢f⁢(x). So we have that

f(x)=(1−x)−1e−x=(∑n=0xn)(∑n=0(−x)nn!)=(∑nxn∑k=0n(−1)kk!,

and so dn=∑k=0n(−1)kk!.

Example 10.5.

Consider the number of self-avoiding walks (SAW) of length n going only up (U), left (L) or right (R). In other words, left cannot be followed by right and vice-versa. Let an be the number of such paths.

Suppose if bn is the number of paths starting with a U. Call these U-paths. Then bn=an−1. Further concatenating a U-path of length n and m gives a U-path of length m+n. Thus bn is super-multiplicative and so by Fekete’s lemma, bn1/n→b∗ and bn≤3n−1 trivially. We now derive more better bounds carefully.

The number of paths ending with U is an−1. Else paths end with LL, RR, UL, UR. Consider n−1 SAWs. If it ends with L or R, let the final move be the same i.e., L or R respectively. If U, final move is L. The number of UR n-SAWs is the number of (n−1)-SAWs ending with U i.e., an−2. We have shown that

an=2⁢an−1+an−2,n≥2;a0=1,a1=3

Let f be OGF. Then,

f⁢(x)=1+3⁢x+2⁢x⁢(f⁢(x)−1)+x2⁢f⁢(x).

So

f⁢(x)=1+x1−2⁢x−x2=α/21−α⁢x+β/21−β⁢x,

where α=1+2,β=1−2. Therefore,

an=12⁢(αn+1+βn+1),

and so an1/n→1+2.