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 be the count of prime factors of (counted with multiplicity).
Let be the sum of the prime factors of (with multiplicity).
For example, and .

Let be the number of pairs, , of Hamming numbers such that and .
You are given (the pairs are ) and .

Find .

682. 5-光滑数对

5-光滑数,又称 Hamming 数,是最大质因数不超过 5 的数。

将质因数分解后,其质因数的个数,相同的质因数计算多次。
将质因数分解后所有质因数之和,相同的质因数计算多次。
例如,

为满足如下条件的 数对的个数: 均为 5-光滑数,
已知 ,4 个数对分别是 。亦可知

之值。


这个链接 回到源站。

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