Using Fermat's Little Theorem

( n + 2017 ) p n p 201 6 p 1 \large (n+2017)^{p}-n^{p}-2016^{p}-1

Assuming that p p is a prime number and n n is an arbitrary natural number, find the remainder when the expression above is divided by p p .

Cannot be determined p 1 p-1 1 1 2017 2017 0 0 n 1 n-1 2016 2016

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

Tommy Li
Jul 22, 2016

( n + 2017 ) p n p 201 6 p 1 ( m o d p ) \large (n+2017)^{p}-n^{p}-2016^{p}-1 \pmod{p}

n + 2017 n 2016 1 ( m o d p ) \equiv n+2017-n-2016-1 \pmod{p}

0 ( m o d p ) \equiv 0 \pmod{p}

What about p being 2 ?

Aniruddha Bagchi - 4 years, 4 months ago

Log in to reply

It is of no problem

Prithwish Mukherjee - 2 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...