From Presidents to Sports to Number Theory!

Find the largest 3 3 - digit number n n , such that n n divides ( n 1 ) ! + 1 (n-1)! + 1 .


The answer is 997.

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.

2 solutions

Pradhyumn Bhale
Nov 15, 2014

(n-1)!= -1(mod n) [It follows directly from Wilson's Theorem] So, if n divides (n-1)! + 1, n is prime. Now, you can check out the list for the largest 3 digit prime no. note link [[This is the link on Brilliant itself from Arron Kau's Note]].

Edwin Gray
Sep 15, 2018

The answer follows from Wilson's theorem and a little elbow grease. Ed Gray.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...