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),为使得 nmodp 不是 7 的倍数的最小的质数 p。例如:u(14)=3、u(147)=2、u(1470)=13。
记 U(N) 为 ∑n=1Nu(n),已知 U(1470)=4293。
求 U(1017)。
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。