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

917. 费用是两项加和时的最小路径和

我们按如下递推定义数列 {sn}s1=102022661,且对诸 n>1,都有 sn=sn12mod998388889

n=1,2,,记 an=s2n1bn=s2n

再定义 N×N 的矩阵 M,其中 Mi,j=ai+bj

A(N) 为:从 M 的左上角 M1,1 走到右下角 MN,N,每一步要么向右走、要么向下走,路径上所有数字和的最小值。已知 A(1)=966774091A(2)=2388327490A(10)=13389278727

A(107)


这个链接 回到源站。

这个链接 回到详细版题目目录。