0%

Problem 682


Problem 682


5-Smooth Pairs

5-smooth numbers are numbers whose largest prime factor doesn’t exceed 5.
5-smooth numbers are also called Hamming numbers.

Let Ω(a) be the count of prime factors of a (counted with multiplicity).
Let s(a) be the sum of the prime factors of a (with multiplicity).
For example, Ω(300)=5 and s(300)=2+2+3+5+5=17.

Let f(n) be the number of pairs, (p,q), of Hamming numbers such that Ω(p)=Ω(q) and s(p)+s(q)=n.
You are given f(10)=4 (the pairs are (4,9),(5,5),(6,6),(9,4)) and f(102)=3629.

Find f(107)mod1 000 000 007.


5-光滑数对

5-光滑数是指最大质因数不超过5的数。
5-光滑数也被称为汉明数。

Ω(a)a的质因数数目(包括重复的质因数)。
s(a)a的质因数之和(包括重复的质因数)。
例如,Ω(300)=5s(300)=2+2+3+5+5=17

f(n)为所有满足Ω(p)=Ω(q)s(p)+s(q)=n的汉明数对(p,q)的数目。
已知f(10)=4(包括(4,9),(5,5),(6,6),(9,4)),f(102)=3629

f(107)mod1 000 000 007


Gitalking ...