0%

Problem 793


Problem 793


Median of Products

Let 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 0i<j<n.

You are given M(3)=3878983057768 and M(103)=492700616748525.

Find M(1 000 003).


乘积的中位数

Si为由如下伪随机数生成器给出的整数列:

  • S0=290797
  • Si+1=Si2mod50515093

对于任意0i<j<n,记M(n)为所有乘积SiSj的中位数。

已知M(3)=3878983057768M(103)=492700616748525

M(1 000 003)


Gitalking ...