Problem 3653 · Medium
Apply each arithmetic progression of multiplications modulo a prime, then XOR the final values.
Open the interactive visualisation