Can you find the remainder?

What is the remainder when 1 2 + 2 2 + 3 2 + . . . + 201 2 2 + 201 3 2 1^2+2^2+3^2+...+2012^2+2013^2 is divided by 7 7 ?


The answer is 2.

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.

12 solutions

Ajay Maity
Dec 21, 2013

This is an alternate solution.

Here, we need to find

1 2 + 2 2 + 3 2 + . . . . . + 201 3 2 1^{2} + 2^{2} + 3^{2} + ..... + 2013^{2} mod 7 7

Now according to the formula of squares of first n n natural numbers,

1 2 + 2 2 + 3 2 + . . . . . + n 2 = n × ( n + 1 ) × ( 2 n + 1 ) 6 1^{2} + 2^{2} + 3^{2} + ..... + n^{2} = \frac{n \times (n + 1) \times (2n + 1)}{6}

Therefore, we need to find

= 2013 × ( 2013 + 1 ) × ( 2 × 2013 + 1 ) 6 = \frac{2013 \times (2013 + 1) \times (2 \times 2013 + 1)}{6} mod 7 7

= 2013 × 2014 × 4027 6 = \frac{2013 \times 2014 \times 4027}{6} mod 7 7

= 671 × 2014 × 4027 2 = \frac{671 \times 2014 \times 4027}{2} mod 7 7

= 671 × 1007 × 4027 = 671 \times 1007 \times 4027 mod 7 7

= ( 671 =(671 mod 7 × 1007 7 \times 1007 mod 7 × 4027 7 \times 4027 mod 7 7 ) mod 7 7

= 1 × 1 × 2 = -1 \times -1 \times 2 mod 7 7

= 2 = 2 mod 7 7

= 2 = \boxed{2}

That's the answer!

I think there is no need for mod7 again outside the right bracket in the 4th last statement. It directly leads to 2.

Shiv Gaur - 7 years, 5 months ago

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 ) (a \times b \times c) mod d d as

( a (a mod d × d \times b b mod d × d \times c c mod d ) d) mod d d

Ajay Maity - 7 years, 5 months ago

Appreciate your help, though!

Ajay Maity - 7 years, 5 months ago

Ok, it seems everybody solved it using the formula of sum of squares. Cool then, Post if anybody got any doubts.!

Ajay Maity - 7 years, 5 months ago
Akhmad Dainuri
Dec 22, 2013

let see the pattern :

1 2 1^{2} mod 7 = 1

2 2 2^{2} mod 7 = 4

3 2 3^{2} mod 7 = 2

4 2 4^{2} mod 7 = 2

5 2 5^{2} mod 7 = 4

6 2 6^{2} mod 7 = 1

7 2 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

amal zackaria - 7 years, 2 months ago
敬全 钟
Dec 21, 2013

Observe that the sum above can be written as ( 2013 ) ( 2014 ) ( 4027 ) 6 = 2013 3 × 2014 2 × 4027 \frac{(2013)(2014)(4027)}{6} = \frac{2013}{3} \times\frac{2014}{2} \times 4027 . So, we have

2013 3 = 671 = 11 × 61 = 4 × 5 = 6 ( m o d 7 ) \frac{2013}{3} = 671 = 11\times61 \overline= 4\times5 \overline= 6\pmod7

2014 2 = 1007 = 19 × 53 = 5 × 4 = 6 ( m o d 7 ) \frac{2014}{2} = 1007 = 19\times53 \overline= 5\times4 \overline= 6\pmod7

4027 = 2 ( m o d 7 ) 4027 \overline= 2\pmod7 (We don't prime factorize it since it is prime)

Therefore,

( 2013 ) ( 2014 ) ( 4027 ) 6 = 6 × 6 × 2 = 2 ( m o d 7 ) \frac{(2013)(2014)(4027)}{6} \overline= 6\times6\times2 \overline= 2\pmod7

Epilogue: Alright, this is a simple proof why Σ k = 1 n k 2 = n ( n + 1 ) ( 2 n + 1 ) 6 \Sigma^n_{k=1} k^2 = \frac{n(n+1)(2n+1)}{6}

Let u k = k 3 u_k = k^3 , we have

u k + 1 u k = ( k + 1 ) 3 k 3 u_{k+1} - u_k = (k+1)^3 - k^3

u k + 1 u k = 3 k 2 + 3 k + 1 u_{k+1}-u_k = 3k^2+3k+1

Then,

Σ k = 1 n ( u k + 1 u k ) = Σ k = 1 n ( 3 k 2 + 3 k + 1 ) \Sigma^n_{k=1} (u_{k+1} - u_k) = \Sigma^n_{k=1} (3k^2+3k+1)

Telescoping LHS,

u n + 1 u 1 = 3 Σ k = 1 n k 2 + 3 Σ k = 1 n k + Σ k = 1 n 1 u_{n+1} - u_1 = 3\Sigma^n_{k=1} k^2 + 3\Sigma^n_{k=1} k + \Sigma^n_{k=1} 1

Plug in the identity Σ k = 1 n k = n ( n + 1 ) 2 \Sigma^n_{k=1}k = \frac{n(n+1)}{2} ,

( n + 1 ) 3 1 3 = 3 Σ k = 1 n k 2 + 3 n ( n + 1 ) 2 + n (n+1)^3 -1^3 = 3\Sigma^n_{k=1} k^2 + 3\frac{n(n+1)}{2} + n

n 3 + 3 n 2 + 2 n = 3 Σ k = 1 n k 2 + 3 n ( n + 1 ) 2 n^3 +3n^2 +2n =3\Sigma^n_{k=1} k^2 + 3\frac{n(n+1)}{2}

Multiplying 2 on both sides,

2 n 3 + 6 n 2 + 4 n = 6 Σ k = 1 n k 2 + 3 n 2 + 3 n 2n^3 +6n^2 + 4n = 6\Sigma^n_{k=1} k^2 + 3n^2 +3n

2 n 3 + 3 n 2 + n = 6 Σ k = 1 n k 2 2n^3+ 3n^2 +n =6\Sigma^n_{k=1} k^2

Σ k = 1 n k 2 = 2 n 3 + 3 n 2 + n 6 \Sigma^n_{k=1} k^2 = \frac{2n^3+ 3n^2 +n }{6}

Factorize the RHS, we have

Σ k = 1 n k 2 = n ( n + 1 ) ( 2 n + 1 ) 6 \boxed{\Sigma^n_{k=1} k^2 =\frac{n(n+1)(2n+1)}{6}}

what. the. hell. is. this.

Haikal Fisabililah - 7 years, 5 months ago

Log in to reply

Proof for sum of squares.

Samuraiwarm Tsunayoshi - 7 years, 5 months ago

You insane?

You copied or wrote it yourself?

P.S. Actually I've read this before

Daniel Lim - 7 years, 3 months ago

Guys why is everyone so hyped up in the comments instead of appreciating? Good job 敬全 钟

Syed Hamza Khalid - 2 years, 10 months ago

are you mad?

Rezaul Sagar - 7 years, 5 months ago
Budi Utomo
Dec 22, 2013

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

Mhardz Mariquit
Mar 30, 2014

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

Brilliant Shivam
Feb 26, 2014

yo thats simple

"best" solution

Daniel Lim - 7 years, 3 months ago
Arpit Sah
Jan 19, 2014

1 2 1^2 + 2 2 2^2 + 3 2 3^2 +....+ n 2 n^2 = n 6 \frac{n}{6} (n+1)(2n+1)

Therefore

1 2 1^2 + 2 2 2^2 + 3 2 3^2 +....+ 201 3 2 2013^2

= 2013 6 \frac{2013}{6} (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

Daniel Lim - 7 years, 3 months ago
Shivam Kumar
Dec 28, 2013

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.

Abishanka Saha
Dec 22, 2013

k = 1 n k 2 = n ( n + 1 ) ( 2 n + 1 ) 6 \sum_{k=1}^nk^2=\frac{n(n+1)(2n+1)}{6} . Therefore 1 2 + 2 2 + + 201 3 2 = 2013 × 2014 × 4027 6 = 671 × 1007 × 4027 1^2+2^2+\cdots+2013^2=\frac{2013\times2014\times4027}{6}=671\times1007\times4027 . Now 671 1 ( m o d 7 ) , 1007 1 ( m o d 7 ) , 4027 2 ( m o d 7 ) 671\equiv-1~(\mod~7),~1007\equiv-1~(\mod~7),~4027\equiv 2~(\mod~7) .

Mukesh G
Dec 21, 2013

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

Bogdan Simeonov
Dec 20, 2013

Using the formula of sum of squares we get 1^2 + 2^2 ... + 2013^2=2013x2014x4027/6 which is cong to 2(mod 7)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...