Math Problem Statement

<p> Consider the divisors of $30$: $1,2,3,5,6,10,15,30$.<br> It can be seen that for every divisor $d$ of $30$, $d + 30 / d$ is prime. </p> <p> Find the sum of all positive integers $n$ not exceeding $100\,000\,000$<br>such that for every divisor $d$ of $n$, $d + n / d$ is prime. </p>

Solution

To solve the problem, we need to find the sum of all positive integers nn not exceeding 100,000,000100,000,000 such that for every divisor dd of nn, the expression d+ndd + \frac{n}{d} is prime.

Analyzing the Condition d+ndd + \frac{n}{d} is Prime

For any nn, the divisors dd and nd\frac{n}{d} pair up, and d+ndd + \frac{n}{d} should be a prime number. This implies the structure of nn must be such that the sum d+ndd + \frac{n}{d} is prime for all divisors dd.

Let us first investigate a number with exactly two distinct prime factors, i.e., n=p1a1×p2a2n = p_1^{a_1} \times p_2^{a_2}.

Given the condition, d+ndd + \frac{n}{d} must be prime for all divisors dd. Consider the following cases:

  1. Case n=pkn = p^k for some prime pp:

    • Here, the divisors of nn are 1,p,p2,,pk1, p, p^2, \ldots, p^k.
    • The sums are 1+pk1 + p^k, p+pk1p + p^{k-1}, p2+pk2p^2 + p^{k-2}, ..., all of which must be prime.
    • This situation generally requires nn to be of a special form.
  2. Case n=p1×p2n = p_1 \times p_2 where p1p_1 and p2p_2 are distinct primes:

    • Here, divisors are 1,p1,p2,p1p21, p_1, p_2, p_1p_2.
    • The sums are 1+p1p21 + p_1p_2, p1+p2p_1 + p_2, p2+p1p_2 + p_1, and p1p2+1p_1p_2 + 1, which are unlikely to all be primes.

The analysis shows that the number must be of the form pkp^k where pp is a prime number. We need to check which powers pkp^k satisfy the given condition.

Determining Valid Values of pkp^k

For the simplest case:

  • n=pn = p where pp is prime, we have divisors 11 and pp, and 1+p1 + p must be prime. This condition trivially holds if p=2p = 2 (since 1+2=31 + 2 = 3 is prime).

To explore higher powers:

  • If n=p2n = p^2, the divisors are 1,p,p21, p, p^2.
  • d+p2dd + \frac{p^2}{d} gives 1+p21 + p^2, p+pp + p, and p2+1p^2 + 1. 2p2p must be prime, which is impossible unless p=2p = 2.

Thus, n=2kn = 2^k is a suitable candidate.

Check the Condition for n=2kn = 2^k

For n=2kn = 2^k, divisors are 1,2,22,,2k1, 2, 2^2, \ldots, 2^k:

  • 1+2k1 + 2^k, 2+2k12 + 2^{k-1}, ..., all need to be primes.

Specifically:

  • For k=1k = 1, 22, 44, etc., the conditions work well.

Sum All Valid 2k2^k

To satisfy the condition, n=2kn = 2^k, where 2k100,000,0002^k \leq 100,000,000.

Find the maximum kk: 2k100,000,000    k=log2(100,000,000)=262^k \leq 100,000,000 \implies k = \left\lfloor \log_2(100,000,000) \right\rfloor = 26 So kk ranges from 0 to 26.

Sum: Sum=20+21++226=2271=134217727\text{Sum} = 2^0 + 2^1 + \cdots + 2^{26} = 2^{27} - 1 = 134217727

Therefore, the sum of all such numbers nn is 134217727\boxed{134217727}.

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Number Theory
Divisors
Prime Numbers
Exponential Functions

Formulas

d + n/d (where d is a divisor of n)

Theorems

Properties of Prime Numbers
Divisor Function

Suitable Grade Level

Undergraduate Level