Dividing by 2017

What is the remainder when 2016 ! 2016! is divided by 2017?

Notation: ! ! denotes the factorial notation . For example 8 ! = 1 × 2 × 3 × × 8 8! = 1 \times 2 \times 3 \times \cdots \times 8 .

2016 1 0 1008 2 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

Chew-Seong Cheong
May 14, 2017

By Wilson's theorem , if p p is a prime, then ( p 1 ) ! 1 ( m o d p ) (p-1)! \equiv -1 \pmod p holds. Since 2017 is a prime, 2016 ! 1 2016 ( m o d 2017 ) 2016! \equiv -1 \equiv \boxed{2016} \pmod {2017} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...