2025 SSMO Team Round Problems/Problem 13
Problem
Let be the set of all ordered quintuples of integers
satisfying
. The conjugate of a quintuple in
is defined as
where for each integer
is the number of indices
satisfying
. A randomly chosen quintuple of
is a permutation of its conjugate with probability
where
and
are relatively prime positive integers. Find
.