Formula

WWidth of the alignment
NNumber of sequences in the alignment
ckiCount of nucleotide i in the kth column of the alignment
piBackground probability of nucleotide i
αiith pseudocount
ASum of pseudocounts (pseudocount weight)
ΓGamma function

... Aren't you glad you asked?

For an explanation see our hopefully soon to be published GLAM paper.