0%

Problem 917


Problem 917


Minimal Path Using Additive Cost

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).


代价为特定项相加时的最小路径和

序列sn的定义为:s1=102022661;对于n>1sn=sn12mod998388889

对于n=1,2,,令an=s2n1bn=s2n

考虑一个N×N矩阵,其元素值为Mi,j=ai+bj

A(N)为从M1,1(左上角)移动到MN,N(右下角)的最小路径和,每一步只能向右或向下移动。

已知A(1)=966774091A(2)=2388327490A(10)=13389278727

A(107)


Gitalking ...