Erratum: re-reading my post, I found several typing mistakes. I wrote:
Z[N]=Binomial[L/m,Nt]*Product[Binomial[m,n],{n,1,Nt}]*q^Nt
S[N, mu]=Sum[Z[Nt]*a^Nt, {Nt,0,L}]
I should have written this:
Z[Nt]=Binomial[L/m,Nt]*Product[Binomial[m,n],{n,1,Nt}]*q^Nt
S[Nt,a]=Sum[Z[Nt]*a^Nt, {Nt,0,L}]
Note: The goal of this claculation is to derive a generalized Langmuir-Freundlich isotherm, as will be clear in a following addendum.