What is the remainder when 1 2 + 2 2 + 3 2 + . . . + 2 0 1 2 2 + 2 0 1 3 2 is divided by 7 ?
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 think there is no need for mod7 again outside the right bracket in the 4th last statement. It directly leads to 2.
Log in to reply
Yepp, I know. In fact, I was just applying the case where the result always converges to 7.
Like in general, we can write ( a × b × c ) mod d as
( a mod d × b mod d × c mod d ) mod d
Appreciate your help, though!
Ok, it seems everybody solved it using the formula of sum of squares. Cool then, Post if anybody got any doubts.!
let see the pattern :
1 2 mod 7 = 1
2 2 mod 7 = 4
3 2 mod 7 = 2
4 2 mod 7 = 2
5 2 mod 7 = 4
6 2 mod 7 = 1
7 2 mod 7 = 0
this pattern will be repeated for each seven numbers in a sequence.But, for the last sequence there are just 4 numbers.,
so, the sum for a sequence = 1 + 4 + 2 + 2 + 4 + 1 + 0 = 14 there are 287 sequences that have 7 numbers, so the sum is = 14 * 287 = 4018 the sum of the last four numbers is = 1 + 4 + 2 + 2 = 9.
so, the total is = 4018 + 9 = 4027, with this total we can calculate the remaining = 4027 mod 7 = 2
here,1+4+2+2+4+1+0=14 , 14 mod 7=0 . 2013 mod 7 = 4. so last pattern will have only 4 digits. 1+4+2+2=9 , 9 mod 7 =2. so the result also 2
Observe that the sum above can be written as 6 ( 2 0 1 3 ) ( 2 0 1 4 ) ( 4 0 2 7 ) = 3 2 0 1 3 × 2 2 0 1 4 × 4 0 2 7 . So, we have
3 2 0 1 3 = 6 7 1 = 1 1 × 6 1 = 4 × 5 = 6 ( m o d 7 )
2 2 0 1 4 = 1 0 0 7 = 1 9 × 5 3 = 5 × 4 = 6 ( m o d 7 )
4 0 2 7 = 2 ( m o d 7 ) (We don't prime factorize it since it is prime)
Therefore,
6 ( 2 0 1 3 ) ( 2 0 1 4 ) ( 4 0 2 7 ) = 6 × 6 × 2 = 2 ( m o d 7 )
Epilogue: Alright, this is a simple proof why Σ k = 1 n k 2 = 6 n ( n + 1 ) ( 2 n + 1 )
Let u k = k 3 , we have
u k + 1 − u k = ( k + 1 ) 3 − k 3
u k + 1 − u k = 3 k 2 + 3 k + 1
Then,
Σ k = 1 n ( u k + 1 − u k ) = Σ k = 1 n ( 3 k 2 + 3 k + 1 )
Telescoping LHS,
u n + 1 − u 1 = 3 Σ k = 1 n k 2 + 3 Σ k = 1 n k + Σ k = 1 n 1
Plug in the identity Σ k = 1 n k = 2 n ( n + 1 ) ,
( n + 1 ) 3 − 1 3 = 3 Σ k = 1 n k 2 + 3 2 n ( n + 1 ) + n
n 3 + 3 n 2 + 2 n = 3 Σ k = 1 n k 2 + 3 2 n ( n + 1 )
Multiplying 2 on both sides,
2 n 3 + 6 n 2 + 4 n = 6 Σ k = 1 n k 2 + 3 n 2 + 3 n
2 n 3 + 3 n 2 + n = 6 Σ k = 1 n k 2
Σ k = 1 n k 2 = 6 2 n 3 + 3 n 2 + n
Factorize the RHS, we have
Σ k = 1 n k 2 = 6 n ( n + 1 ) ( 2 n + 1 )
what. the. hell. is. this.
You insane?
You copied or wrote it yourself?
P.S. Actually I've read this before
Guys why is everyone so hyped up in the comments instead of appreciating? Good job 敬全 钟
are you mad?
We know if 1 + 2 + 3 + ... + n = 1/2 . n ( n + 1). Then, we substituting ; <--> (n+1)^3 = 1 + 3(1^2 + 2^2 + 3^2 + ... + n^2) + 3 n (n + 1)/2 + nx1 ---> n^3 + 3.n^2 + 3n + 1 = 1 + 3(1^2 + 2^2 + 3^2 + ... + n^2) + 3/2 .n^2 + 3n/2 + n ---> n^3 + 3/2 . n^2 + n/2 = 3 (1^2 + 2^2 + 3^2 + ... + n^2) ---> (1^2 + 2^2 + 3^2 + ... + n^2) = n/6 (2n^2 + 3n + 1) = 1/6 . n(n+1)(2n+1). So, now we've that 1^2 + 2^2 + 3^2 + ... + n^2 = 1/6 . n(n+1)(2n+1). So, the problem above is (1/6 . 2013 . 2014 . 4027 ) mod (7) = 2. Answer : 2
2^2 - 1^2 = 3
3^2 - 2^2 = 5
4^2 - 3^2 = 7
n=2
since the given is from 1^2 up to 2013^2
then 2013 x 2 = 2046
2046 + 1 = 2047
2047 / 7 = 575 with a remainder of 2
(n(n+1) (2n+1))/6 = sum ((2013)(2014)(2 2013+1))/6 = 2721031819 , 2721031819/7 reminder =2
"best" solution
1 2 + 2 2 + 3 2 +....+ n 2 = 6 n (n+1)(2n+1)
Therefore
1 2 + 2 2 + 3 2 +....+ 2 0 1 3 2
= 6 2 0 1 3 (2013+1)(4026+1)
= (671)(1007)(4027)
= 2721031819
Dividing it by 7, we get the remainder as 2.
If anyone has a shorter and easier solution, kindly tell me
there is, now
Using the formula for the sum of squares series till n terms=n(n+1)(2n+1)/6 , = (2013 X 2014 X 4027) / (6 X 7) =(2013 X 2014 X 4027) / (42),
Taking individual remainders of the numerator by 42,
= (39 X 40 X 37 ) /42 =57720/42 =1374 =2(MOD 42)
ANSWER IS 2.
∑ k = 1 n k 2 = 6 n ( n + 1 ) ( 2 n + 1 ) . Therefore 1 2 + 2 2 + ⋯ + 2 0 1 3 2 = 6 2 0 1 3 × 2 0 1 4 × 4 0 2 7 = 6 7 1 × 1 0 0 7 × 4 0 2 7 . Now 6 7 1 ≡ − 1 ( m o d 7 ) , 1 0 0 7 ≡ − 1 ( m o d 7 ) , 4 0 2 7 ≡ 2 ( m o d 7 ) .
sum of squares of n natural numbers is given by
= [n(n+1)(2n+1)]/6
Here n = 2013
= 2013 x2014 x 4027/6
= 16326190914/6
=2721031819/7
=Quotient 388718831 and remainder =2
Using the formula of sum of squares we get 1^2 + 2^2 ... + 2013^2=2013x2014x4027/6 which is cong to 2(mod 7)
Problem Loading...
Note Loading...
Set Loading...
This is an alternate solution.
Here, we need to find
1 2 + 2 2 + 3 2 + . . . . . + 2 0 1 3 2 mod 7
Now according to the formula of squares of first n natural numbers,
1 2 + 2 2 + 3 2 + . . . . . + n 2 = 6 n × ( n + 1 ) × ( 2 n + 1 )
Therefore, we need to find
= 6 2 0 1 3 × ( 2 0 1 3 + 1 ) × ( 2 × 2 0 1 3 + 1 ) mod 7
= 6 2 0 1 3 × 2 0 1 4 × 4 0 2 7 mod 7
= 2 6 7 1 × 2 0 1 4 × 4 0 2 7 mod 7
= 6 7 1 × 1 0 0 7 × 4 0 2 7 mod 7
= ( 6 7 1 mod 7 × 1 0 0 7 mod 7 × 4 0 2 7 mod 7 ) mod 7
= − 1 × − 1 × 2 mod 7
= 2 mod 7
= 2
That's the answer!