Problem 793 题目发布于 2022-04-10 翻译更新于 2022-10-10 Problem 793 Median of ProductsLet Si be an integer sequence produced with the following pseudo-random number generator: S0=290797 Si+1=Si2mod50515093 Let M(n) be the median of the pairwise products SiSj for 0≤i<j<n. You are given M(3)=3878983057768 and M(103)=492700616748525. Find M(1 000 003). 乘积的中位数记Si为由如下伪随机数生成器给出的整数列: S0=290797 Si+1=Si2mod50515093 对于任意0≤i<j<n,记M(n)为所有乘积SiSj的中位数。 已知M(3)=3878983057768,M(103)=492700616748525。 求M(1 000 003)。
Gitalking ...