Find the remainder when 7 0 ! is divided by 5 1 8 3 .
Note: Don't use a computational device!
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.
Per the instructions, I didn't use a computational device. So I put a rock on my keyboard and got it wrong. You, kind sir, obviously used a "computational device". A set that includes pencil, paper, brain, etc.
wilson s theorem states that 70!=1(mod 71)
Log in to reply
No, Wilson's theorem says that ( p − 1 ) ! ≡ − 1 ≡ p − 1 ( m o d p ) for all primes p (here let p = 7 1 ).
after wilson's theorem application, we can use Chinese remainder theorem!
Log in to reply
well, this is actually what I did! I've added the letters 'CRT' to the solution to make it clear.
i did it by dividing the 70! into 12 groups of multiplications, then applying recursive divisions to find 12 reminders, being the 12th reminder the solution i needed, took like 1 (or 2 ?) hour to think, and like 10 min to do with calculator and paper. No computer or theorems involved :D
How can we know that 5183 factors into 71*73?
Log in to reply
Because of wilson's theorem a factorial n-1 where n is a prime 70+1 is 71 is prime so it was worth checking.
Otherwise could brute force find prime factorization of 5183 by checking divisibility by all primes from 2 through square root ~72 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 And find the last one 71 is the smallest to successful divide 5183.
Log in to reply
A potentially faster way to check is by realizing that 5184 is divisible by 3, 1728 * 3, which is divisible by 3 again, 576, which is a square number, giving us a prime factorization of 2^6 * 3^4. We can then use difference of squares to get (72 - 1)(72 + 1)
Where does the 5183 come from?
Is there any efficient way to get 70! Congruent to 36 modulo 73? Please answer.it would take hours without it
Log in to reply
By Wilson's theorem 72! is -1 mod 73, so 70! is (-1)(72^(-1))(71^(-1)) is (-1)((-1)^(-1))((-2)^(-1)) is (-1)(-1)(-2^(-1)) is -2^(-1) mod 73. I used modulo multiplicative inverses.
See my answer again. I've edited it.
Simply a python code that prints the answer
ans
Sorry for not following the note, but I am learning programming so added this one :P
I too used python :p ............... sorry Krishna Ar
Log in to reply
Hey! @HARSH SHrivastava . DId u use it for this - problem- Bhaskara-2 perplexing years...also?
Log in to reply
Well no,but checked my answer using python @Krishna Ar .
Log in to reply
NIce pic & thanks,BTW how do ya put pictures in comments? @Aditya Raut
Log in to reply
@Harsh Shrivastava – Go to post image . org , then upload your picture.
They will give you links in the next page, of the pic. out of them , copy the "Direct link" .
Then on brilliant , (i think you know how we give links, we put name of link is [...] and then followed by the link in (....) ....
The same way, type anything in the boxed bracket and just give a " ! " sign before it.
For example, see this, I show you the code typed to get the image followed by it ...

This will give output
img
Log in to reply
@Aditya Raut – can u provide 3 d eqn for all the orbitals?
Log in to reply
@Ananya Aaniya – If you are still alive and remember this question then let me say How far do you wanna go beyond the context of discussion??? :- _ )
If you use the python shell you don’t need a print statement. Just type the expression and it prints it automatically.
Sorry. I have more serious problem then math.
70!=k.71+70 . We know that p((p-3)!-(p-1)/2) with p prime, or 70!=t.73+36 and so 70!=m.5183 + 1277.
For simplicity, let r be the unknown remainder and n = 5 1 8 3 . Let's sharpen our pencils and do this:
Factor n < 7 5 2 : We only need to check the first 21 primes smaller than 75. The simple divisibility rules for 2; 3; 5; 11 all fail, so we begin with the largest primes in the list to get lucky and find n = 7 1 ⋅ 7 3
We may use the Chinese Remainder Theorem, because g cd ( 7 1 , 7 3 ) = 1 : r ≡ 7 0 ! m o d n ⇔ r r ≡ 7 0 ! m o d 7 1 ≡ 7 0 ! m o d 7 3
For the first factorial, we use Wilson's Theorem directly. For the second factorial, we are missing the factors 7 1 ; 7 2 , so we need their inverses. We notice ( − 7 2 ) ≡ 1 m o d 7 3 , and find 3 6 ⋅ 7 1 ≡ 1 m o d 7 3 using Euclid's Algorithm: k − 2 − 1 0 1 2 r k 7 3 7 1 2 1 0 a k 1 3 5 2 x k 3 6 − 3 5 1 ⇒ 1 = 3 6 ⋅ 7 1 − 3 5 ⋅ 7 3 ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ 7 0 ! 7 0 ! ≡ − 1 m o d 7 1 ≡ 7 0 ! ⋅ ( 3 6 ⋅ 7 1 ) ⋅ ( − 7 2 ) ≡ 7 2 ! ⋅ ( − 3 6 ) ≡ ( − 1 ) ⋅ ( − 3 6 ) ≡ 3 6 m o d 7 3
We combine our system of congruences to get a single general linear diophantine equation: r r ≡ − 1 m o d 7 1 ≡ 3 6 m o d 7 3 ⇔ r r = − 1 + 7 1 x = 3 6 + 7 3 y } 3 7 = 7 1 x − 7 3 y , x , y ∈ Z With the result of Euclid's Algorithm earlier, we can directly write down all solutions. ( ∗ ) k → k − 1 8 keeps the result small: ( x y ) = ( 3 6 3 5 7 3 7 1 ) ( 3 7 k ) ( ∗ ) = ( 1 8 1 7 7 3 7 1 ) ( 1 k ) , k ∈ Z ⇒ r = − 1 + 7 1 x = 1 2 7 7 + n k , k ∈ Z
Problem Loading...
Note Loading...
Set Loading...
5 1 8 3 = 7 1 × 7 3
Using Wilson's Theorem :
Wilson’s theorem: 7 0 ! ≡ − 1 ( m o d 7 1 )
Wilson’s theorem: 7 2 ⋅ 7 1 ⋅ 7 0 ! ≡ − 1 ( m o d 7 3 )
⟹ ( − 1 ) ( − 2 ) ⋅ 7 0 ! ≡ − 1 ≡ 7 2 ( m o d 7 3 ) ⟹ : 2 7 0 ! ≡ 3 6 ( m o d 7 3 )
Using Extended Euclidean Algorithm we know that
{ 7 3 = 7 1 + 2 7 1 = 2 ( 3 5 ) + 1
⟹ 1 = 7 1 − 2 ( 3 5 ) = 7 1 − ( 7 3 − 7 1 ) ( 3 5 ) = 7 1 ( 3 6 ) + 7 3 ( − 3 5 )
Or subtract consecutive equations:
7 3 = 7 3 ( 1 ) + 7 1 ( 0 )
7 1 = 7 3 ( 0 ) + 7 1 ( 1 )
2 = 7 3 ( 1 ) + 7 1 ( − 1 )
1 = 7 3 ( − 3 5 ) + 7 1 ( 3 6 )
See Chinese Remainder theorem (CRT).
answer ≡ 3 6 ⋅ 7 1 ( 3 6 ) + ( − 1 ) ⋅ 7 3 ( − 3 5 ) ≡ 1 2 7 7 ( m o d 5 1 8 3 )