Remainder? Part 3

Find the remainder when,

                  1^(2019) + 2^(2019) + 3^(2019) + ........ + 2019^(2019) + 2020^(2019)

Is divided by 2019 .

👉Try the Second Problem here👈

👉Try the First Problem here👈


The answer is 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.

4 solutions

CodeCrafter 1
Jun 5, 2019

n ≡ n − m ( m o d m ) n\equiv n-m\quad \left( mod\quad m \right)

1 2019 + 2 2019 + ⋯ + 2019 2019 + 2020 2019 ≡ ( − 2018 ) 2019 + ( − 2017 ) 2019 + ⋯ + ( − 1010 ) 2019 + 1010 2019 + ⋯ + 2018 2019 + 0 2019 + 1 2019 ( m o d 2019 ) 1 2019 + 2 2019 + ⋯ + 2019 2019 + 2020 2019 ≡ − 2018 2019 − 2017 2019 − ⋯ − 1010 2019 + 1010 2019 + ⋯ + 2018 2019 + 0 2019 + 1 2019 ( m o d 2019 ) 1 2019 + 2 2019 + ⋯ + 2019 2019 + 2020 2019 ≡ 1 2019 = 1 ( m o d 2019 ) { 1 }^{ 2019 }+{ 2 }^{ 2019 }+\dots +{ 2019 }^{ 2019 }+{ 2020 }^{ 2019 }\equiv { \left( -2018 \right) }^{ 2019 }+{ \left( -2017 \right) }^{ 2019 }+\dots +{ \left( -1010 \right) }^{ 2019 }+{ 1010 }^{ 2019 }+\dots +{ 2018 }^{ 2019 }+{ 0 }^{ 2019 }+{ 1 }^{ 2019 } (mod 2019)\\ { 1 }^{ 2019 }+{ 2 }^{ 2019 }+\dots +{ 2019 }^{ 2019 }+{ 2020 }^{ 2019 }\equiv { -2018 }^{ 2019 }-{ 2017 }^{ 2019 }-\dots -{ 1010 }^{ 2019 }+{ 1010 }^{ 2019 }+\dots +{ 2018 }^{ 2019 }+{ 0 }^{ 2019 }+{ 1 }^{ 2019 } (mod 2019)\\ { 1 }^{ 2019 }+{ 2 }^{ 2019 }+\dots +{ 2019 }^{ 2019 }+{ 2020 }^{ 2019 }\equiv { 1 }^{ 2019 }=\boxed { 1 } (mod 2019)

Aaghaz Mahajan
Jun 4, 2019

We know that the expression can be factorized as follows

( 1 + 2 + . . . + 2019 ) 2019 ( A ) + 202 0 2019 \displaystyle \left(1+2+...+2019\right)^{2019}\left(A\right)+2020^{2019} Here A is a large number \small\color{#3D99F6} \quad \text{Here A is a large number}

= ( 2019 ) 2019 â‹… ( 1010 ) 2019 ( A ) + 202 0 2019 \displaystyle =\left(2019\right)^{2019}\cdot\left(1010\right)^{2019}\left(A\right)+2020^{2019}

Thus the expression containing A A is completely divisible by 2019 2019 and the last term is congruent to 1 1 mod 2019 2019 making the answer 1

@Pi Han Goh Sir, could you help me please?? How do I align the colored part of the solution to the right??

Aaghaz Mahajan - 2 years ago

Log in to reply

Brilliant does not support various LaTeX \LaTeX package. You can use numerous \quad or \qquad here.

For example, a b c d a \quad b \qquad c \qquad \qquad d

Pi Han Goh - 2 years ago

Your solution is actually incorrect.

I assumed you meant that A A is an integer as well.

Your first math line tells us that ( 1 + 2 + ⋯ + 2019 ) 2019 (1+2+\cdots+2019)^{2019} is a factor of 1 2019 + 2 2019 + ⋯ + 201 9 2019 1^{2019} + 2^{2019} + \cdots + 2019^{2019} . However, it's obvious to see that the former term is much larger than the latter term.

Here's a smaller example to illustrate this:

Using your argument, we know that there's an integer B B satisfying 1 4 + 2 4 + 3 4 + 4 4 = ( 1 + 2 + 3 + 4 ) 4 â‹… B 1^4 + 2^4 + 3^4 + 4^4 = (1+2+3+4)^4 \cdot B . However, solving for B B gives B = 0.0354 B=0.0354 , which is clearly not an integer.


There's an easy fix to your solution here.

You just have to demonstrate/state/prove that 1 2 n + 1 + 2 2 n + 1 + ⋯ + m 2 n + 1 1^{2n+1} + 2^{2n+1} + \cdots + m^{2n+1} divides 1 + 2 + ⋯ + m 1 + 2 + \cdots + m , for all non-negative integers n n .

Can you work it out from here?

Pi Han Goh - 2 years ago

The given thing can be written as,

                       [{1^(2019) + 2^(2019) + ...... + 2018^(2019)} + {2019^(2019) + 2020^(2019)}] ÷ 2019

When we divide 1^(2019) by 2019 , Remainder = 1

When we divide 2018^(2019) by 2019 , Remainder = 2018

When we divide [1^(2019)+2018^(2019)] by 2019 , Remainder = 0

Similarly, we can pair up (1,2018) ; (2,2017) ; (3,2016) ; ..... ; (1009,1010). And each time we get remainder as 0 .

So, the first part i.e. [1^(2019) + 2^(2019) + .... + 2018^(2019)] when divided by 2019 leaves remainder 0 .

When we divide, 2019^(2019) by 2019 we get 0 as remainder.

Finally when we divide 2020^(2019) by 2019 we get 1 as the remainder.

So, total remainder is = 0 + 0 + 1 = 1 \boxed{1}

Brute force: M o d [ P l u s @ @ T a b l e [ P o w e r M o d [ i , 2019 , 2019 ] , i , 2020 ] , 2019 ] ⇒ 1 Mod[Plus @@ Table[PowerMod[i, 2019, 2019], {i, 2020}], 2019]\Rightarrow 1

Plzz elaborate

Aditya Shrivastava - 2 years ago

"Brute force" is an American idiom for "using unreasoning strength." In this case, using a calculator powerful enough to do the computation directly. As in, We used the brute force of a large earth moving machine to pull the motorcycle out of the ditch.

PowerMod is a Wolfram Mathematics function that computes the first argument to the power of the second and applies the modulus of the third argument whenever needed to minimize the product. I used that function to produce a table of the reduced terms, added the terms and then applied a final modulus in case the sum was over 2019. Another idiom to the same effect: I used a pile driver to crack a nut.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...