S_{i} = A ∗ S_{i−1} mod m