I hope 2017 can divide N.

N = 1 1 ! + 2 2 ! + 3 3 ! + + 2014 2014 ! + 2015 2015 ! \large N=\color{#D61F06}{1\cdot1!}+\color{#EC7300}{2\cdot2!}+\color{#CEBB00}{3\cdot3!}+\cdots+\color{#20A900}{2014\cdot2014!}+\color{#3D99F6}{2015\cdot2015!}

For N N as defined above, find the remainder when N N is divided by 2017.

Notation: ! ! is the factorial notation ; for example: 8 ! = 1 × 2 × 3 × × 8 8! = 1 \times 2 \times 3 \times \cdots \times 8 .


The answer is 2015.

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.

1 solution

Kushal Bose
Feb 28, 2017

Relevant wiki: Wilson's Theorem

N = r = 0 2015 r . r ! = r = 0 2015 ( r + 1 1 ) r ! = r = 0 2015 ( ( r + 1 ) ! r ! ) = 2016 ! 1 ! N=\sum_{r=0}^{2015} r.r!=\sum_{r=0}^{2015} (r+1-1)r!=\sum_{r=0}^{2015} ((r+1)!-r!)=2016!-1!

From Wilson's Theorem 2016 ! 1 ( m o d 2017 ) 2016! \equiv -1 \pmod{2017} as 2017 2017 is a prime number.

So, N 1 1 ( m o d 2017 ) N 2 ( m o d 2017 ) N 2015 ( m o d 2017 ) N \equiv -1-1 \pmod{2017} \\ N \equiv -2 \pmod{2017} \\ N \equiv 2015 \pmod{2017}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...