In essence, determine the internal state of the LCG by process of elimination, then use the internal state to correctly guess every following number on the first try.
https://gist.github.com/unicornsasfuel/bd713a2cef64a73d9aed28ea5aa845c2
Welp, fucked this one up. I wish CTFtime task editing wasn't broken.