(noch nicht übersetzt)

Problem 917

The sequence sn is defined by s1=102022661 and sn=s2n1mod998388889 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).