10.1 One-variable examples

Exercise(A) 10.1.

Suppose that an+1=2an+1,n1 and a0=0. Show that

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

and hence deduce that an=2n1,n0.

Exercise(A) 10.2.

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

x1(f(x)1)=2f(x)+x(1x)2,

and deduce that an=2n+1n1.

Exercise(A) 10.3.

Suppose that an+1=an+1+an1,n1 and a0=a1=1. Prove that

x1(f(x)x)=f(x)+xf(x),

and deduce that an=15(r+nrn), where r+=1+52 and r=152.

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 n1-derangement, we can construct a (n+1)derangement and vice-versa.

dn+1=n(dn1+dn).

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

n=1dn+1xnn! =n=0ndnxn1(n1)!=f(x);
n=1ndnxnn! =xn=1dnxn1(n1)!=xf(x);
n=1ndn1xnn! =xn=1dn1xn1(n1)!=xf(x).

Thus, we have that (1x)f(x)=xf(x). So we have that

f(x)=(1x)1ex=(n=0xn)(n=0(x)nn!)=(nxnk=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=an1. 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/nb and bn3n1 trivially. We now derive more better bounds carefully.

The number of paths ending with U is an1. Else paths end with LL, RR, UL, UR. Consider n1 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 (n1)-SAWs ending with U i.e., an2. We have shown that

an=2an1+an2,n2;a0=1,a1=3

Let f be OGF. Then,

f(x)=1+3x+2x(f(x)1)+x2f(x).

So

f(x)=1+x12xx2=α/21αx+β/21βx,

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

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

and so an1/n1+2.