No Relation?

Number Theory Level pending

Let s ( n ) s(n) be the sum of all positive integers which are less than n n , and are also relatively prime to n n . For example, s ( 4 ) = 1 + 3 = 4 s(4) = 1 + 3 = 4 . What is s ( 360 ) s(360) ?


The answer is 17280.

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.

1 solution

The question asks for the sum of co-primes to 360 which are less than it :

Fortunately there exists a formula for it ;)

\Rightarrow The sum of co-primes of N which are less than it is given by : N 2 ϕ ( N ) \dfrac{N}{2}\cdot \phi(N)

Where ϕ ( N ) \phi(N) is the number of co-primes to N which are less than it .

Now ϕ ( N ) \phi(N) can be calculated as follows :

  • First we express N as a product of it's Prime Factors .

N = a p × b q × c r N=a^{p}\times b^{q} \times c^{r} \dots (say)

  • ϕ ( N ) = N ( 1 1 a ) ( 1 1 b ) ( 1 1 c ) \phi(N) = N\cdot \left ( 1 - \frac{1}{a} \right ) \cdot \left ( 1 - \frac{1}{b} \right ) \cdot \left ( 1 - \frac{1}{c} \right ) \dots

Now the N in this question is 360 .

360 = 2 3 × 3 2 × 5 360=2^{3} \times 3^{2} \times 5

Hence , s(360) = N 2 ϕ ( N ) = 360 2 360 ( 1 1 2 ) ( 1 1 3 ) ( 1 1 5 ) = 180 × 96 = 17280 \dfrac{N}{2}\cdot \phi(N) \\= \dfrac{360}{2} \cdot 360\cdot \left ( 1 - \frac{1}{2} \right ) \cdot \left ( 1 - \frac{1}{3} \right ) \cdot \left ( 1 - \frac{1}{5} \right ) \\= 180\times 96 \\= 17280

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...