Factor Sum Is Odd!

If n n is a positive integer, let S ( n ) S(n) be the sum of all the positive divisors of n n .

If S ( n ) S(n) is an odd integer, what is the sum of all possible 1 n ? \frac1n?


The answer is 2.4674.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

6 solutions

Mark Hennings
Aug 2, 2018

The function S S is multiplicative and so, if we have the prime factorisation n = p 1 a ( 1 ) p 2 a ( 2 ) p m a ( m ) n = p_1^{a(1)}p_2^{a(2)} \cdots p_m^{a(m)} , where p 1 , p 2 , . . . , p m p_1,p_2,...,p_m are distinct primes, then S ( n ) = k = 1 m S ( p k a ( k ) ) = k = 1 m ( 1 + p k + p k 2 + + p k a ( k ) ) S(n) \; = \; \prod_{k=1}^m S\big(p_k^{a(k)}\big) \; = \; \prod_{k=1}^m \big(1 + p_k + p_k^2 + \cdots + p_k^{a(k)}\big) Note that S ( 2 n ) = 2 n + 1 1 S(2^n) = 2^{n+1}-1 is odd for all n 1 n \ge 1 , while S ( p n ) S(p^n) is odd precisely when n n is even for any odd prime p p .

If S ( n ) S(n) is to be odd, we must have S ( p k a ( k ) ) S\big(p_k^{a(k)}\big) odd for all k k , and hence the index of any odd prime factor of n n must be even. Thus the set of numbers n n for which S ( n ) S(n) is odd is the set of perfect squares, together with the set of twice the perfect squares. Thus we need to evaluate n = 1 1 n 2 + n = 1 1 2 n 2 = 3 2 ζ ( 2 ) = 1 4 π 2 \sum_{n=1}^\infty \frac{1}{n^2}+ \sum_{n=1}^\infty \frac{1}{2n^2} \; = \; \tfrac32\zeta(2) \; = \; \boxed{\tfrac14\pi^2}

Just a sligthy observation. S is multiplicative if the factors are coprime

Davide Lombardi - 2 years, 10 months ago

Log in to reply

My formula for S ( n ) S(n) splits as a product. That is using the multiplicative property!!!

Mark Hennings - 2 years, 10 months ago

please, no more number theory questions.

Chris D - 2 years, 9 months ago

I disagree with the assertion that S(2^n) is always odd. Factors of 2^n are 1,2,4,...,2^n so n+1 in number. S(8) = 4 for example. This impacts your conclusion about S(2k^2) which is even. S(18) =|{1,2,3,6,9,18}|=6. The answer should be pi^2/6.

Owen Embry - 2 years, 9 months ago

Log in to reply

S ( 2 n ) = 1 + 2 + 4 + . . . + 2 n = 2 n + 1 1 S(2^n)=1+2+4+...+2^n=2^{n+1}-1 is always odd. We are interested in the sum of the divisors, not the number of them.

Mark Hennings - 2 years, 9 months ago

My bad. Thanks.

Owen Embry - 2 years, 9 months ago
Jeremy Galvagni
Aug 12, 2018

For S ( n ) S(n) to be odd, n n must be either a square or twice a square.

Sketch of Proof: If n n is a square with 2 as a factor, it has an odd number of odd factors -- all those with no factor of 2. If n n is a square without 2 as a factor it has an odd number of factors and all of its factors are odds. If you multiply this n n by 2 2 you don't change the number of odd factors. If n n is not of these forms it has an even number of odd factors and the sum will be even.

Euler proved what is known as The Basel Problem: the sum of the reciprocals of the squares equals π 2 6 \frac{\pi^{2}}{6} .

The sum of the reciprocals of twice squares is then half of this or π 2 12 \frac{\pi^{2}}{12} .

Add these together and you get π 2 4 2.4674011 \frac{\pi^{2}}{4}\approx\boxed{2.4674011} .

John Ross
Aug 13, 2018

We can see which numbers n n make S ( n ) S(n) odd by splitting n n into a power of 2 and an odd factor, then considering each group of factors. For example, if n = 120 n=120 we can split 120 into 8 15 8 \cdot 15 and consider all of the factors of 8 (other than 1) and all the factors of 15 giving the two groups ( 2 , 4 , 8 ) ( 1 , 3 , 5 , 15 ) (2,4,8) (1,3,5,15) . All the factors of n n will be given by all the numbers in the first group, all the numbers in the second group, and all the numbers obtained by multiplying together a number from each group. All the numbers in the first group are even and all the numbers obtained by crossing the two groups are also even. We can pair all of the factors in the second group with each other where the product for each pair is the odd factor of n n (in our example we pair 1 and 15 and pair 3 and 5). This means that we will have an even number of factors in the second group, (and all of those factors are odd) so S ( n ) S(n) is even. The only time this argument breaks down is when we have a perfect square for the odd factor of n n because one number could only pair with itself and we would have an odd number of factors. Thus the only n n for which S ( n ) S(n) is odd, are of the form a 2 a^2 (when n n has an even number of factors of 2) and 2 a 2 2a^2 (when n n has an odd number of factors of 2). Thus the value we want is equal to ( 1 + 1 2 ) ( 1 + 1 4 + 1 9 + 1 16 + ) (1+\frac 12)(1+\frac 14+\frac 19+\frac 1{16}+\cdots) Here is an elementary proof that the infinite sum is equal to π 2 6 \frac{\pi^2}{6} , so the answer is π 2 4 \boxed{\frac {\pi^2}{4}}

Davide Lombardi
Aug 14, 2018

The function S ( n ) S(n) is multiplicative only if the factors in the parantheses are coprime

S ( a b ) = S ( a ) S ( b ) m c d ( a , b ) = 1 S(a \cdot b ) = S(a) \cdot S(b) \Longleftrightarrow mcd(a,b) =1

For a prime p p , the value of the function S ( p k ) S(p^{k}) is equal to the sum of all the powers of p p with exponent from 1 to k k .

S ( p k ) = ( 1 + p + p 2 + + p k ) S(p^{k}) = \left( 1 + p +p^{2} + \dots + p^{k} \right)

now it is possible to distinguish two cases:

  • p 2 p \neq 2 . In this case p p is always. To obtain S ( p k ) S(p^{k}) odd, it is necessary that the sum of the formula above have a number of odd terms. Then k k has to be even. Since S S ) is multiplicative, S S is odd if n n is a perfect square odd number

  • p = 2 p = 2 . In this case for every k, S(2^{k}) is a odd number. In fact S ( 2 k ) = 1 + 2 + 2 2 + + 2 k = 1 + 2 ( 1 + 2 + + 2 k 1 ) = 1 + 2 q S(2^{k}) = 1+2+2^{2}+ \dots + 2^{k} = 1+2 \left( 1+2+\dots+2^{k-1} \right) = 1+ 2q

Then combine the two cases it is possible to affirm that S ( n ) { S(n) } is odd if and only if n has the form n = 2 i ( 2 j + 1 ) 2 n = 2^{i} \cdot (2j+1)^{2} for every i and j integer non negative

Then the solution is possible to write in this way

\substack n = 0 m = 0 1 2 m 1 ( 2 n + 1 ) 2 = n = 0 1 2 n n = 0 1 ( 2 n + 1 ) 2 = 2 3 4 π 2 6 = π 2 4 2.467 \sum_{\substack{n=0 \\ m=0} }^\infty \frac{1}{2^m}\frac{1}{(2n+1)^{2}} = \sum_{n=0}^\infty \frac{1}{2^n} \cdot \sum_{n=0 }^\infty \frac{1}{(2n+1)^2} = 2 \cdot \frac{3}{4} \frac{\pi^2}{6} = \frac{\pi^2}{4} \approx \boxed{2.467}

If the prime factorization of an integer is p 1 e 1 p 2 e 2 p n e m p_1^{e_1}p_2^{e_2} \dots p_n^{e_m} , then the number of positive factors is ( e 1 + 1 ) ( e 2 + 1 ) ( e m + 1 ) (e_1 + 1) (e_2 + 1) \dots (e_m + 1) . Similarly, the number of positive factors formed only from the primes p i , p i + 1 , p m p_i, p_{i + 1}, \dots p_m is ( e i + 1 ) ( e i + 1 + 1 ) ( e m + 1 ) (e_i + 1) (e_{i + 1} + 1) \dots (e_m + 1) (including the factor 1). An integer is odd iff it can be written as a sum of integers with an odd number of odd integers in the sum. Thus, in order for S ( n ) S(n) to be odd, there must be an odd number of odd factors of n n . The odd factors are precisely those which do not contain the prime number 2, so if the exponents of all primes in n n other than 2 are e 1 , e 2 , , e m e_1, e_2, \dots, e_m , then it must be the case that ( e 1 + 1 ) ( e 2 + 1 ) ( e m + 1 ) (e_1 + 1) (e_2 + 1) \dots (e_m + 1) is odd, which means each individual exponent from e 1 e_1 to e m e_m must be even. If all the exponents on the odd primes are even, then their product is the square of an odd number. So, for S ( n ) S(n) to be odd, it must be equal to a power of 2 times the square of an odd number. The possible values of n n are thus of the form ( 2 m + 1 ) 2 , 2 ( 2 m + 1 ) 2 , 2 2 ( 2 m + 1 ) 2 , (2m + 1)^2, 2(2m + 1)^2, 2^2(2m + 1)^2, \dots for all nonnegative integers m m . The sum of the reciprocals of all these values is i = 0 m = 0 1 2 i ( 2 m + 1 ) 2 = ( m = 0 1 ( 2 m + 1 ) 2 ) i = 0 1 2 i = ( m = 0 1 ( 2 m + 1 ) 2 ) 2 \sum_{i = 0}^{\infty} \sum_{m = 0}^{\infty} \frac{1}{2^i (2m + 1)^2} = \left(\sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2}\right) \sum_{i = 0}^{\infty} \frac{1}{2^i} = \left(\sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2}\right) 2 The sum of the reciprocals of the squares of all odd positive integers can be found using the identity m = 1 1 m 2 = π 2 6 \sum_{m = 1}^{\infty} \frac{1}{m^2} = \frac{\pi^2}{6} This sum is equal to the sum of the reciprocals of the even squares plus the sum of the reciprocals of the odd squares, or m = 1 1 ( 2 m ) 2 + m = 0 1 ( 2 m + 1 ) 2 = π 2 6 \sum_{m = 1}^{\infty} \frac{1}{(2m)^2} + \sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2} = \frac{\pi^2}{6} which is equivalent to 1 4 m = 1 1 m 2 + m = 0 1 ( 2 m + 1 ) 2 = π 2 6 \frac{1}{4} \sum_{m = 1}^{\infty} \frac{1}{m^2} + \sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2} = \frac{\pi^2}{6} which simplifies to 1 4 π 2 6 + m = 0 1 ( 2 m + 1 ) 2 = π 2 6 \frac{1}{4} \cdot \frac{\pi^2}{6} + \sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2} = \frac{\pi^2}{6} so m = 0 1 ( 2 m + 1 ) 2 = 3 4 π 2 6 \sum_{m = 0}^{\infty} \frac{1}{(2m + 1)^2} = \frac{3}{4} \cdot \frac{\pi^2}{6} The final answer is thus ( 3 4 π 2 6 ) 2 = 3 2 π 2 6 = π 2 4 2.47 (\frac{3}{4} \cdot \frac{\pi^2}{6})2 = \frac{3}{2} \cdot \frac{\pi^2}{6} = \frac{\pi^2}{4} \approx 2.47 .

Vinod Kumar
Aug 12, 2018

It can be shown by prime factorization, S(n) is odd for n=(2^r)((2s+1)^2). Summing infinite series for (1/n), from r,s=0 to infinity gives:

Answer = (π^2)/4 ~ 2.4674

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...