942. Mersenne's Square Root

Given a natural number q, let p=2q1 be the q-th Mersenne number.

Let R(q) be the minimal square root of q modulo p, if one exists. In other words, R(q) is the smallest positive integer x such that x2q is divisible by p.

For example, R(5)=6 and R(17)=47569.

Find R(74207281). Give your answer modulo 109+7.

942. 梅森数的平方根

任给自然数 q,我们称 p=2q1 为第 q梅森数

R(q) 为:模 p 意义下,q 最小的一个平方根。也就是说,R(q) 指的是使得 x2q 能被 p 整除的最小的正整数 x

例如 R(5)=6R(17)=47569

R(74207281)(109+7) 的值。


这个链接 回到源站。

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