Dirichlet Characters, Gauss Sums, and Inverse Z Transform