Inverse Z-transform
$ x[n] = \oint_C {X(Z)}{Z ^ (n-1)} , dZ \ $ where C is a closed counterwise countour inside the ROC of the Z- transform and around the origin.
$ = \sum_{poles a_i} Residue ( X(Z) Z^ (n-1)) \ $