Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2005/iii/paper-47/3/a/solution
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 47 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
A linear congruential generator starts with an integer seed and iteratesThe outputs lie in and are used as pseudorandom numbers approximating a uniform distribution. They are deterministic once the seed is fixed. The largest possible period is , since there are only states; good period alone does not establish independence or good multivariate uniformity.
The full-period criterion for a mixed congruential generator says that period for every seed occurs exactly whenFor , these conditions reduce toThe multiplier must satisfy both and . A positive shift alone is insufficient: for example, a shift divisible by three cannot give period when the multiplier is one modulo three. If the required coprime shift has already been chosen, the condition on the multiplier alone is for an integer .
New to topics? Read the docs here!