Find the sum of all integers k with 1 ≤ k ≤ 2 0 1 5 and g cd ( k , 2 0 1 5 ) = 1 .
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.
I did it like this :
( 1 + 2 + . . . + 2 0 1 4 ) − 5 ( 1 + 2 + . . . + 4 0 2 ) − 1 3 ( 1 + 2 + . . . + 1 5 4 ) − 3 1 ( 1 + 2 + . . . + 6 4 ) + 6 5 ( 1 + 2 + . . . + 3 0 ) + 4 0 3 ( 1 + 2 + 3 + 4 ) + 1 5 5 ( 1 + 2 + . . . + 1 2 )
Log in to reply
it is easy for 2015, try for 2016... a lot of factors there. still works though.
Log in to reply
Btw, your solution is awesome...
Log in to reply
@Dev Sharma – thanks......
Log in to reply
@Aareyan Manzoor – That formula is helpful. If you know any other of lcm or gcd then share with us..
Log in to reply
@Dev Sharma – sorry for late response electricity flashed out. i will give it in comment in a few min.
Log in to reply
@Aareyan Manzoor – or you can share a note
Log in to reply
@Dev Sharma – or maybe a wiki, i will post soon 'inspired by dev sharma'.
Log in to reply
@Aareyan Manzoor – let me derive all the formulas....
Me too, I also didn't know the formula. Our method is actually good because we didn't use any formula, we just did using fundamentals.
Log in to reply
yes. And Happy Birthday
Happy birthday
Yes, exactly (+1)! Nicely done.
Log in to reply
damn I did not saw the sum
can you help me with this problem? (I don't know where to post it...) Show that there is an integer N such that: any integer n bigger or equal to N can be represented as n= a1+a2+a3+a4+...+a73
where a1,a2,a3...a73 are integers, a1 is smaller than a2, a2 than a3, and so on and a1 divides a2, a2 divides a3 and so on.
NOTE: a divides b means b is divisible by a.
I´m sorry, I can´t use latex.
Log in to reply
@Tomás Carvalho , pot it as a note and then tag me, i 'll try to solve it.
Can somebody explain in very easy steps
Log in to reply
where are you confused?
Log in to reply
K is coprime to n, so is n-k
Log in to reply
@Eziz Hudaykulyyev – if k is coprime to n, then n k is irreducible over integers. now what about n-k: n n − k = n n − n k = 1 − n k since n k is irreducible over integers,so is 1 − n k . and hence n-k is coprime to n □
Suppose d divide both n and n − k . Then, d divide n − ( n − k ) = k . In the same way, if d divide both n and k , then d clearly divide n − k . So, g c d ( n , k ) = g c d ( n , n − k ) .
Well put except that you forgot to say how you calculated ϕ ( 2 0 1 5 ) . For all the reader knows you could have just counted them manually - obviously not the most efficient way of doing it!
less than*
Sorry, I was just thinking , but the sum of all integers from 1 to 2015 must be grather than this results when it s in fact just (2015×(2015+1))/2 = 2031120 ?????
For all k and n , g cd ( k , n ) = g cd ( n − k , n ) . You can see this because any number that divides both k and n obviously divides n − k ; conversely any number that divides both n − k and n obviously divides k .
Therefore, the values of k that satisfy the equation exist in pairs adding to 2015. So we now just need to determine the number of these pairs. This is similar to the way in which Carl Friedrich Gauss is reputed to have discovered the formula for triangular numbers during a school exercise.
To determine the number of these pairs, we look to Euler's totient function. ϕ ( n ) is the number of integers 1 ≤ k ≤ n that are coprime with n . It is what is known as a multiplicative function, meaning that g cd ( m , n ) = 1 ⇒ ϕ ( m n ) = ϕ ( m ) ϕ ( n ) . And of course, if p is prime, then ϕ ( p ) = p − 1 . From this we deduce ϕ ( 2 0 1 5 ) = ϕ ( 5 ⋅ 1 3 ⋅ 3 1 ) = ϕ ( 5 ) ϕ ( 1 3 ) ϕ ( 3 1 ) = 4 ⋅ 1 2 ⋅ 3 0 = 1 4 4 0 . So 2015 has 1440 smaller coprimes, that is 720 pairs. So the sum of them all is 7 2 0 ⋅ 2 0 1 5 = 1 4 5 0 8 0 0 .
Very lucid explanation...thank you (+1)! In fairness to the mathematicians of Mesopotamia who knew this result over 3000 years ago, we might remark that Gauss "re-discovered" the formula for triangular numbers during a school exercise.
There are ϕ ( 2 0 1 5 ) = ϕ ( 5 ) ϕ ( 1 3 ) ϕ ( 3 1 ) = 4 ⋅ 1 2 ⋅ 3 0 = 1 4 4 0 numbers co-prime to 2015. I guessed that they would be evenly distributed, so that on average they are equal to 2015/2. Multiplying gives 1 4 4 0 ⋅ 2 2 0 1 5 = 1 4 5 0 8 0 0 .
(On second thought, the "guess" is easily justified. The list of gcd ( n , ∙ ) from 0 … n is symmetric, since gcd ( n , k ) = gcd ( n , n − k ) . This justifies taking the average.)
Here is a bit longer (but more elementary) solution by using arithmetic sequences (we use the Sn formula multiple times for integers between 1 and 2015, then integers within this interval divisible by 5, 13, 31, 5×13, 5×31, 13×31 and 5×13×31=2015) and the principle of inclusion-exclusion:
2 1 + 2 0 1 5 × 2 0 1 5 − 2 5 + 2 0 1 5 × 1 3 × 3 1 − 2 1 3 + 2 0 1 5 × 5 × 3 1 − 2 3 1 + 2 0 1 5 × 5 × 1 3 + 2 5 × 1 3 + 2 0 1 5 × 3 1 + 2 5 × 3 1 + 2 0 1 5 × 1 3 + 2 1 3 × 3 1 + 2 0 1 5 × 5 − 2 0 1 5 = 1 4 5 0 8 0 0
(This could be a way Gauss could have done (or at least would have understood) ... when he was a 5th grader.)
We had sum 1 to 100 in 4th grade for award.One boy solved the same way like Gauss,but he studied law after...
5(1+...+403)+13(1+...+155)+ 31(1+...+65)-65(1+...+31) -155(1+...13)-403(1+...+5)+2015= 5x403x404/2+13x155x156/2+ 31x65x66/2-65x31x32/2 -155x13x14/2-403x5x6/2+2015= 2015(202+78+33-16-7-3+1)= 2015 288 is sum of coprime Sum 1+2+..+2015=2015 2016/2= 2015*1008,so answer is 2015(1008-288)=2015x720= 1450800
On a spreadsheet list the numbers 1 to 2015 in the first column (fill down from 1, 2). Assuming 1 is in cell A1, 2 in cell A2, ... then put =IF(GCD(A1,2015)=1,A1,"") in cell B1 and fill down to cell B2015. Putting =SUM(B1:B2015) in cell B2016 gives 1450800.
According to the question, k and 2015 are relatively co-prime to each other and how that could be possible is by factorizing 2015 and eliminate all the numbers from the given range which are multiples of 2015's factors i.e 2015=5 13 31 and we have to get all the numbers which are of the form 1k,5k,13k,31k,65k,155k,403k,2015k and subtract their sum from (2015 2016)/2 so the final answer would be (2015 2016)/2-[Sum of elements of the form 5k+Sum of elements of the form 13k+Sum of elements of the form 31k-Sum of elements of the form 65k-Sum of elements of the form 155k-Sum of elements of the form 403k+Sum of elements of the form 2015k] =(2015*2016)/2-{403(5+2015)/2+155(13+2015)/2+65(31+2015)/2-31(65+2015)/2-13(155+2015)/2-5(403+2015)/2+2015} =1450800.
Problem Loading...
Note Loading...
Set Loading...
the formula for the sum of all co-primes less then n is 2 n ϕ ( n ) plug in 2015 to get 2 2 0 1 5 ∗ ϕ ( 5 ∗ 1 3 ∗ 3 1 ) = 2 2 0 1 5 ∗ ϕ ( 5 ) ∗ ϕ ( 1 3 ) ∗ ϕ ( 3 1 ) = 2 2 0 1 5 ∗ 4 ∗ 1 2 ∗ 3 0 = 1 4 5 0 8 0 0 . .
proof: note that if k is co-prime to n, so is n-k. let S denote the sum. the number of terms will be the numbers less then equal n which is coprime to it. this is ϕ ( n ) . then: S = k 1 + k 2 + . . . . + k ϕ ( n ) − 1 + k ϕ ( n ) using the fact stated at the beginning of proof: S = ( n − k ϕ ( n ) ) + ( n − k ϕ ( n ) − 1 ) + . . . . . ( n − k 2 ) + ( n − k 1 ) add these up. note that each k will cancel out, and the number of terms is ϕ ( n ) . so 2 S = n ϕ ( n ) ⟹ S = 2 n ϕ ( n ) hence proved.