0%

Problem 934


Problem 934


Unlucky Primes

We define the unlucky prime of a number n, denoted u(n), as the smallest prime number p such that the remainder of n divided by p (i.e. nmodp) is not a multiple of seven.

For example, u(14)=3, u(147)=2 and u(1470)=13.

Let U(N) be the sum n=1Nu(n).

You are given U(1470)=4293.

Find U(1017).


不幸素数

定义数n对应的不幸素数u(n)为最小的、使得n除以p的余数(即nmodp)不是7的倍数的素数p

例如,u(14)=3u(147)=2u(1470)=13

U(N)为求和n=1Nu(n)

已知U(1470)=4293

U(1017)


Gitalking ...