Considering certain random walks I came up with the following question: Given a finite set $A$ containing positive and negative integers, how many representations of zero as the sum of $n$ integers in $A$ exist. In the case that $A$ has two elements the question is easy to answer but for set with larger cardinality the answer seems (to me) not obvious. Perhaps the question is to general, so I like to ask for which classes of sets $A$ there is closed formal or an asymptotics for the number of representations. 



Representations of zero as the sum of integers
This is basically covered in section VII.8.1 of Flajolet and Sedgewick's "Analytic Combinatorics". You're looking at the generating function for bridges in their terminology and the form of the generating function is given by equation (97) on page 511 and is obtained using the kernel method.


