Discrete hill's equations