The full question is: How to crack a Linear Congruential Generator when a, c and m in the LCG formula. I googled this question and I found what I wanted:
here is the question: https://brilliant.org/problems/breaking-linear-congruential-generators/
and here is the screenshot of the answer (you need to make an account, to see the answer):
The problem is that I don't understand the answer.
1.) I do not understand this equation from the answer (what is this equation and why is it used): $$Z_n = Y_nY_{n+2}- Y^2_{n+1}$$
2) And I don't understand how a and c are found afterwards.
Any help is apprecciated
Also I am aware that there are other methods to solve this question for example by using a matrix: Calculation for linear congruential generator: Setting up equations
Thank you