Ruth-Aaron Number Calculator

Number

Is 5 a Ruth-Aaron number?Yes - the distinct prime factors of 5 and 6 both sum to 5
Distinct prime factor sum of 55
Distinct prime factor sum of 65
Next Ruth-Aaron number after 524
How this was calculated
  1. A Ruth-Aaron number n has the same sum of distinct prime factors as n + 1 - spotted in 1974, when Hank Aaron's 715th home run followed Babe Ruth's record 714, and 714 and 715 share the sum 29.
  2. 5 factors as 5 (distinct prime sum 5), while 6 factors as 2 x 3 (distinct prime sum 5).
  3. The two sums match at 5, so the pair qualifies.
  4. The next Ruth-Aaron number after 5 is 24; this page counts distinct prime factors - counting multiplicity instead gives a second, related family.

A Ruth-Aaron number is a whole number n whose distinct prime factors add up to the same total as the distinct prime factors of n + 1. This calculator checks any number you enter against that rule, showing the prime factorization of both n and n + 1, the sum of each set of distinct prime factors, and a clear verdict on whether the two sums match. For example, 5 is the first Ruth-Aaron number: 5 sums to 5, and 6 = 2 x 3 also sums to 5. The number 24 works too: 24 = 2^3 x 3 sums to 5, and 25 = 5^2 sums to 5. But 10 is not one: 10 = 2 x 5 sums to 7, while 11 sums to 11. The first Ruth-Aaron numbers in the distinct-prime version are 5, 24 and 49, and the famous pair itself starts at 714.

The method behind the calculator is the accepted standard for this kind of calculation: it uses the distinct prime factors of each number, counting each different prime once no matter how many times it appears, and compares the two sums directly. That is the definition the name rests on. The name comes from 714 and 715: Babe Ruth's career home-run record of 714 and Hank Aaron's 715th home run in 1974. Since 714 = 2 x 3 x 7 x 17 and 715 = 5 x 11 x 13, both distinct prime sums equal 29. This page shows the formula, step-by-step workings, worked examples and sources so you can follow every result yourself.

Worked examples

5, the first Ruth-Aaron number

(5)

Is 5 a Ruth-Aaron number?Yes - the distinct prime factors of 5 and 6 both sum to 5
Distinct prime factor sum of 55
Distinct prime factor sum of 65
Next Ruth-Aaron number after 524

24, the second Ruth-Aaron number

(24)

Is 24 a Ruth-Aaron number?Yes - the distinct prime factors of 24 and 25 both sum to 5
Distinct prime factor sum of 245
Distinct prime factor sum of 255
Next Ruth-Aaron number after 2449

10, whose sums differ

(10)

Is 10 a Ruth-Aaron number?No - the distinct prime factor sums are 7 and 11
Distinct prime factor sum of 107
Distinct prime factor sum of 1111
Next Ruth-Aaron number after 1024

What is a Ruth-Aaron number?

A Ruth-Aaron number is a whole number n that has the same sum of distinct prime factors as the next number, n + 1. To check a number, you break it and its neighbor into prime factors, count each different prime only once no matter how many times it appears, add those distinct primes together, and compare the two totals. If the sums match, n is a Ruth-Aaron number.

The name comes from baseball. Babe Ruth's career home-run record stood at 714, and in 1974 Hank Aaron hit his 715th home run to pass it. Those two numbers turn out to share the property: 714 = 2 x 3 x 7 x 17, and 715 = 5 x 11 x 13. Adding the distinct primes gives 2 + 3 + 7 + 17 = 29 for 714 and 5 + 11 + 13 = 29 for 715. Because both sums are 29, 714 is a Ruth-Aaron number, and the pair became the most famous example of the idea.

Smaller examples show how the test works. The first Ruth-Aaron number is 5: 5 is prime, so its sum is just 5, and 6 = 2 x 3 sums to 2 + 3 = 5. The next is 24, since 24 = 2^3 x 3 sums to 2 + 3 = 5 and 25 = 5^2 sums to 5. Not every number qualifies. Take 10: it factors as 2 x 5, which sums to 7, while 11 is prime and sums to 11, so 10 is not a Ruth-Aaron number. The first Ruth-Aaron numbers in the distinct-prime version are 5, 24 and 49, and the famous pair itself starts at 714.

The key word in the definition is distinct. A prime that appears several times in a factorization is added only once. That is why 24 = 2^3 x 3 gives a sum of 5 rather than 2 + 2 + 2 + 3 = 9, and why 25 = 5^2 gives 5 rather than 10. This distinct-prime rule is the version tied to the 714 and 715 story, and it is the one most people mean when they ask about a Ruth-Aaron number.

714 = 2 x 3 x 7 x 17, summing to 29. 715 = 5 x 11 x 13, also summing to 29.

How the test works

To test whether a number n is a Ruth-Aaron number, you factor n and n + 1, add up the distinct prime factors of each, and compare the two sums. A Ruth-Aaron number is one where the two sums match. The word "distinct" matters: if a prime appears more than once in a factorization, it is counted only once. So 24 = 2^3 x 3 has the distinct primes 2 and 3, which sum to 5, not 2 + 2 + 2 + 3.

The smallest example is 5. Since 5 is prime, its distinct prime sum is simply 5. The next number, 6, factors as 2 x 3, and 2 + 3 = 5. The two sums agree, so 5 passes the test. The next Ruth-Aaron number is 24. Its distinct primes are 2 and 3, summing to 5, and 25 = 5^2 has the single distinct prime 5, which also sums to 5. Again the sums match, so 24 qualifies. The first Ruth-Aaron numbers in the distinct-prime version are 5, 24 and 49.

Not every number passes. Take 10: it factors as 2 x 5, so its distinct prime sum is 7. The next number, 11, is prime, so its sum is 11. Since 7 does not equal 11, 10 is not a Ruth-Aaron number. This shows how quickly the test can fail even for small numbers, and it is why checking both sides of the pair is essential.

The name of the test comes from a famous pair. Babe Ruth's career home-run record was 714, and Hank Aaron hit his 715th home run in 1974. The two numbers happen to satisfy the condition: 714 = 2 x 3 x 7 x 17 and 715 = 5 x 11 x 13, and both sets of distinct primes sum to 29. That coincidence gave the Ruth-Aaron number its name, and the famous pair itself starts at 714.

Remember: count each distinct prime only once. For 24 = 2^3 x 3, the sum is 2 + 3 = 5, not 2 + 2 + 2 + 3.

Ruth-Aaron numbers

A Ruth-Aaron number is a whole number n whose distinct prime factors add up to the same total as the distinct prime factors of n + 1. The word "distinct" matters here: if a prime appears more than once in a factorization, it is counted only once. So the test is not about how many prime factors a number has, but about the sum of the different primes that divide it.

The smallest example is 5. It is prime, so its only distinct prime factor is 5 and the sum is 5. The next number, 6, factors as 2 x 3, and 2 + 3 = 5. The two sums match, which makes 5 the first Ruth-Aaron number. The next one is 24: 24 = 2^3 x 3, so the distinct primes are 2 and 3 and the sum is 5, while 25 = 5^2 has the single distinct prime 5, also summing to 5. After that comes 49, and the famous pair itself starts at 714.

Not every number qualifies. Take 10: it factors as 2 x 5, giving a distinct prime sum of 7, but 11 is prime and sums to 11. The sums differ, so 10 is not a Ruth-Aaron number. Checking a candidate by hand is straightforward — factor n and n + 1, drop any repeated primes, add what remains, and compare the two totals.

The name honors baseball. Babe Ruth's career home-run record stood at 714, and in 1974 Hank Aaron hit his 715th home run to pass it. The two numbers turn out to be a Ruth-Aaron pair: 714 = 2 x 3 x 7 x 17 and 715 = 5 x 11 x 13, and both distinct prime sums equal 29. That coincidence gave the sequence its name.

The table below shows the shared distinct prime sum for the first Ruth-Aaron numbers and for the pair that inspired the name.

nn + 1Shared distinct prime sum
565
24255
49507
71471529
For every pair below, the distinct prime factors of n and of n + 1 add up to the same total — which is exactly what makes n a Ruth-Aaron number.

Distinct vs with-multiplicity versions

The term "Ruth-Aaron number" actually covers two related families, and they differ in one detail: how you count repeated prime factors. In the distinct-prime version, each different prime in a factorization is counted once, no matter how many times it appears. That is the version this calculator uses, and it is the version behind the famous 714 and 715 pair. In the with-multiplicity version, a repeated prime is counted every time it appears, so 2 x 2 x 2 contributes three 2s rather than a single 2.

The difference shows up clearly in a number like 125. Written out, 125 = 5 x 5 x 5. Counted with multiplicity, its prime factors sum to 5 + 5 + 5 = 15. Counted as distinct primes, the sum is just 5, because 5 is the only different prime involved. That is why 125 belongs to the with-multiplicity family but not to the distinct-prime family used here. The same split applies to any number with a repeated prime factor, so the two lists of Ruth-Aaron numbers are not the same.

This calculator works only with distinct prime factors. A Ruth-Aaron number n, as defined here, has the same sum of distinct prime factors as n + 1. The first Ruth-Aaron numbers in this version are 5, 24 and 49, and the famous pair itself starts at 714. The small cases show how the rule works. For 5, the distinct prime sum is 5, and 6 = 2 x 3 also sums to 5. For 24, written as 2^3 x 3, the distinct primes are 2 and 3, which sum to 5, and 25 = 5^2 has the single distinct prime 5, also summing to 5. A counterexample makes the test concrete: 10 = 2 x 5 sums to 7, while 11 sums to 11, so 10 is not a Ruth-Aaron number.

The name itself comes from baseball. Babe Ruth's career home-run record was 714, and Hank Aaron hit his 715th home run in 1974. Factor 714 = 2 x 3 x 7 x 17 and 715 = 5 x 11 x 13, and both distinct prime sums are 29. That coincidence gave the numbers their name, and it is the distinct-prime version that produces it. Because the two definitions can give different answers, it is worth checking which one a source is using before comparing results. Every number this calculator tests is judged by the distinct-prime rule described above.

  • Distinct-prime version (used here): count each different prime once. Example: 24 = 2^3 x 3 gives 2 + 3 = 5.
  • With-multiplicity version: count every occurrence of a prime. Example: 125 = 5 x 5 x 5 gives 5 + 5 + 5 = 15, not 5.
This calculator uses distinct prime factors only. A number like 125, which qualifies under the with-multiplicity rule, will not be reported as a Ruth-Aaron number here.

FAQs

What is a Ruth-Aaron number?

A Ruth-Aaron number is a number n whose distinct prime factors sum to the same value as the distinct prime factors of n + 1. In other words, you break each of the two consecutive numbers into its distinct prime factors, add those factors up separately, and check whether the two sums match. If they do, n is a Ruth-Aaron number.

Why is it called a Ruth-Aaron number?

The name honors baseball players Babe Ruth and Hank Aaron. It comes from 714, Ruth's record career home run total, and 715, the home run with which Aaron surpassed it. For 714, the distinct prime factors 2+3+7+17 = 29, and for 715, 5+11+13 = 29. The matching sums made the pair famous.

Is 5 a Ruth-Aaron number?

Yes, 5 is the first one. The number 5 is prime, so its distinct prime factors sum to 5. The next number, 6, factors as 2 x 3, and its distinct prime factors also sum to 5. Because those two sums are equal, 5 qualifies as a Ruth-Aaron number under the distinct-prime-factor definition.

Is 24 a Ruth-Aaron number?

Yes. The distinct prime factors of 24 are 2 and 3, which sum to 5. The next number, 25, has only one distinct prime factor, 5, and that sums to 5 as well. Since both sums equal 5, 24 is a Ruth-Aaron number. Note that counting factors with multiplicity would give a different result for 24.

Is 10 a Ruth-Aaron number?

No. The distinct prime factors of 10 are 2 and 5, which sum to 7. The next number, 11, is prime, so its distinct prime factors sum to 11. Because 7 does not equal 11, the two consecutive numbers do not match, and 10 is not a Ruth-Aaron number.

Are prime factors counted once or with multiplicity?

This calculator counts distinct prime factors, meaning each different prime is counted only once no matter how many times it divides the number. A second Ruth-Aaron family instead counts prime factors with multiplicity, so repeated primes are added each time. Because of that difference, the two lists of Ruth-Aaron numbers differ from each other.

Sources

Related calculators

Factors Calculator
List every factor of a number and count them — with the factor pairs, the divisor sum and whether the number is prime or a perfect square.
Liouville Function Calculator
The Liouville function lambda(n) = (-1)^Omega(n) from the prime factorization of n, with the total and distinct prime factor counts and the summatory value L(n).
Prime Factorization Calculator
Break any whole number up to a trillion into its prime factors — with divisor count, divisor sum and largest prime factor.