← Complete problem index

PROJECT EULER · #0375

Minimum of Subsequences

Statement only · SolvedOriginal problem ↗

Let Sn be an integer sequence produced with the following pseudo-random number generator:

S0=290797Sn+1=Sn2mod50515093

Let A(i,j) be the minimum of the numbers Si,Si+1,,Sj for ij.
Let M(N)=A(i,j) for 1ijN.
We can verify that M(10)=432256955 and M(10000)=3264567774119.

Find M(2000000000).

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.