Non-vanishing of Dirichlet series with periodic coefficients