-Friendly
Two positive integers and are -friendly when . For example, and are -friendly because while and are not because not a power of .
Let be the number of pairs, , of positive integers with such that and are -friendly. You are given and modulo .
Find modulo .
-友善数
如果正整数和满足,则称它们互为2-友善数。例如,和互为-友善数,因为;而和则不是,因为不是的幂。
考虑所有满足且和互为-友善数的正整数对,并记这些数对的数目为。已知,对取余的结果为
.
Find 并对取余。
Gitalking ...