← Complete problem index

PROJECT EULER · #0917

Minimal Path Using Additive Cost

Statement only · UnsolvedOriginal problem ↗

The sequence sn is defined by s1=102022661 and sn=sn12mod998388889 for n>1.

Let an=s2n1 and bn=s2n for n=1,2,...

Define an N×N matrix whose values are Mi,j=ai+bj.

Let A(N) be the minimal path sum from M1,1 (top left) to MN,N (bottom right), where each step is either right or down.

You are given A(1)=966774091, A(2)=2388327490 and A(10)=13389278727.

Find A(107).

Write-up coming later

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