0%

Problem 643


Problem 643


2-Friendly

Two positive integers a and b are 2-friendly when gcd(a,b)=2t,t>0. For example, 24 and 40 are 2-friendly because gcd(24,40)=8=23 while 24 and 36 are not because gcd(24,36)=12=223 not a power of 2.

Let f(n) be the number of pairs, (p,q), of positive integers with 1p<qn such that p and q are 2-friendly. You are given f(102)=1031 and f(106)=321418433 modulo 1 000 000 007.

Find f(1011) modulo 1 000 000 007.


2-友善数

如果正整数ab满足gcd(a,b)=2t,t>0,则称它们互为2-友善数。例如,2440互为2-友善数,因为gcd(24,40)=8=23;而2436则不是,因为gcd(24,36)=12=223不是2的幂。

考虑所有满足1p<qnpq互为2-友善数的正整数对(p,q),并记这些数对的数目为f(n)。已知f(102)=1031f(106)1 000 000 007取余的结果为321418433
.

Find f(1011)并对1 000 000 007取余。


Gitalking ...