MathDB
simplifying fractions

Source: 2023 AIME II/5

February 16, 2023
AMCAIME

Problem Statement

Let SS be the set of all positive rational numbers rr such that when the two numbers rr and 55r55r are written as fractions in lowest terms, the sum of the numerator and denominator of one fraction is the same as the sum of the numerator and denominator of the other fraction. The sum of all the elements of SS can be expressed in the form pq\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+qp+q.