Find the value of x = 1 ∑ 2 0 1 5 gcd ( x , 2 0 1 5 ) , where gcd ( a , b ) is the greatest common divisor function.
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.
Nice. ; ) short n sweet summary sir Otto Bretscher
Why doesn't the formula 2 n × ϕ ( n ) work? Because using this formula I get 2 2 0 1 5 × 1 4 4 0 = 1 4 5 0 8 0 0
Log in to reply
Why should it work?
Log in to reply
Sorry, my mistake. I read about the formula about a similar type of question.
@Otto Bretscher how do we get this formula here ; can i get relevant wiki about the solution ?
how is the formula related with this problem???
I have solved this question with the help of Euler's function. Short methods and advises are always welcome. F i r s t o f a l l , n o t e t h a t 2 0 1 5 = 1 3 ∗ 3 1 ∗ 5 . A l l p o s s i b l e f a c t o r s o f 2 0 1 5 a r e 1 , 5 , 1 3 , 3 1 , 6 5 , 1 5 5 , 4 0 3 a n d 2 0 1 5 . T h e r e f o r e a l l p o s s i b l e G C D s a r e 1 , 5 , 1 3 , 3 1 , 6 5 , 1 5 5 , 4 0 3 a n d 2 0 1 5 . T h e p r o c e s s i s e x p l a i n e d b y t h e f o l l o w i n g t w o f a c t o r s o f 2 0 1 5 a n d t h e n i t i s a p p l i e d t o r e s t f a c t o r s : → G C D = 1 ϕ ( 2 0 1 5 ) = 1 4 4 0 → G C D = 5 W e h a v e t o f i n d o u t a l l 5 ∗ x s u c h t h a t x i s r e l a t i v e l y p r i m e t o 2 0 1 5 s i n c e 5 ∗ 4 0 3 = 2 0 1 5 , ϕ ( 4 0 3 ) i s t h e n u m b e r o f a l l t h e n u m b e r s x s u c h t h a t : ( x , 2 0 1 5 ) = 5 . S o , s u m o f a l l G C D 5 s i s ϕ ( 4 0 3 ) ∗ 5 N o t e t h a t ϕ ( 1 ) + ϕ ( 5 ) + ϕ ( 1 3 ) + ϕ ( 3 1 ) + ϕ ( 6 5 ) + ϕ ( 1 5 5 ) + ϕ ( 4 0 3 ) + ϕ ( 2 0 1 5 ) = 2 0 1 5 A s t h e p r o c e s s c o u l d b e u n d e r s t o o d , ∑ x = 1 2 0 1 5 ( x , 2 0 1 5 ) = 2 0 1 5 ∗ ϕ ( 1 ) + 4 0 3 ∗ ϕ ( 5 ) + 1 5 5 ∗ ϕ ( 1 3 ) + 6 5 ∗ ϕ ( 3 1 ) + 3 1 ∗ ϕ ( 6 5 ) + 1 3 ∗ ϕ ( 1 5 5 ) + 5 ∗ ϕ ( 4 0 3 ) + ϕ ( 2 0 1 5 ) ∑ x = 1 2 0 1 5 ( x , 2 0 1 5 ) = 1 3 7 2 5 Suggestions are always WELCOME
Yeah , same method. :)
Log in to reply
Hello friend, Are you a student of class 9th Nihar Mahajan ?
Not a proof but just an observation of the general form.
Let f ( n ) = ∑ x = 1 n gcd ( x , n )
And g ( a , b ) = a b − 1 ( b ( a − 1 ) + a )
Then, if n = p 1 a 1 p 2 a 2 . . . ,
f ( n ) = g ( p 1 , a 1 ) ∗ g ( p 2 , a 2 ) ∗ . . .
In this problem, 2 0 1 5 = 5 ∗ 1 3 ∗ 3 1 .
And f ( n ) = g ( 5 , 1 ) ∗ g ( 1 3 , 1 ) ∗ g ( 3 1 , 1 ) = 9 ∗ 2 5 ∗ 6 1 = 1 3 7 2 5
Yes. This is because the convolution of two multiplicative functions is multiplicative, so f ( x ) f ( y ) = f ( x y ) for relatively prime x and y . Your g ( p 1 , a 1 ) is just f ( p 1 a 1 ) .
My Java code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
a=13725
As soon as I read this question , I felt the urge to CS Bash this question .
Hope you don't mind @Julian Poon ;)
Log in to reply
I encourage any form of solution.... partly because I don't know any form of coding :D
Log in to reply
Really ? Anyway , since L A T E X is a document formatting language , you do know coding :P
Log in to reply
@A Former Brilliant Member – ok...
I can't do coding that has the ability to.......do something other than formatting
We want Sum over d|2015 of d phi ( 2015/d) = (5+(5-1))x(13+(13-1))x(31+(31-1)) which can be shown using product expansion and the definition of phi. This product is 9x25x61=13725
For pairwise coprime a, b, and c, ∑ x = 1 a b c g c d ( x , a b c ) = 8 a b c − 4 ( a b + a c + b c ) + 2 ( a + b + c ) − 1 Plugging in a = 5 , b = 1 3 , c = 3 1 , we get 1 3 7 2 5
How do you get this formula??
Problem Loading...
Note Loading...
Set Loading...
We can summarize Mayank's approach in the formula n d ∣ n ∑ d ϕ ( d ) = 2 0 1 5 ( 1 + 5 4 + 1 3 1 2 + 3 1 3 0 + 6 5 4 8 + 1 5 5 1 2 0 + 4 0 3 3 6 0 + 2 0 1 5 1 4 4 0 ) = 1 3 7 2 5