Just for Some Random Person

What is the remainder when 16 ! 16! is divided by 17?

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


The answer is 16.

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

Jon Sy
May 17, 2016

This is straight Wilson's Theorem, which states that ( p 1 ) ! 1 m o d p (p-1)! \equiv -1 \mod p , for prime p p . Since 17 17 is prime, we have that ( 17 1 ) ! 1 m o d 17 16 ! 16 m o d 17 (17-1)! \equiv -1 \mod 17 \Longrightarrow 16! \equiv \boxed{16} \mod 17 . The proof of Wilson's Theorem is fairly elementary, only requiring some knowledge of multiplicative inverses. Basically, we can show that every number k k has a unique multiplicative inverse k k' if and only if k k is relatively prime to the modulus. We note that 1 1 and p 1 p-1 are multiplicative inverses of itself, and the rest pair up, so we have ( p 1 ) ! ( p 1 ) ( p 2 ) 3 2 1 ( p 1 ) 1 1 1 1 1 1 m o d p (p-1)! \equiv (p-1)\cdot(p-2)\cdots3\cdot2\cdot1 \equiv (p-1)\cdot1\cdot1 \equiv -1\cdot1\cdot1 \equiv -1 \mod p

HI I AM WILSON!

Percy 17 hax0r - 5 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...