Factorial remainder!

3 3 ! m o d 2 3 1 = ? \Large {{\color{#D61F06}3\color{#EC7300}3 \color{#3D99F6}!} \bmod {\color{#20A900}2^{\color{#BA33D6}3\color{#D61F06}1}}}= \ \color{grey}?

4 0 2 3 1

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.

3 solutions

Prasun Biswas
Apr 6, 2015

We count the number of 2 2 's in the unique prime factorization of 33 ! 33! . We do this using the fact that 2 2 is a prime and using De-Polignac's formula .

Let s s denote the maximum power of 2 2 that divides that 33 ! 33! . Then, we have,

s = 33 2 + 33 4 + 33 8 + 33 16 + 33 32 = 16 + 8 + 4 + 2 + 1 = 31 s=\left\lfloor\frac{33}{2}\right\rfloor+\left\lfloor\frac{33}{4}\right\rfloor+\left\lfloor\frac{33}{8}\right\rfloor+\left\lfloor\frac{33}{16}\right\rfloor+\left\lfloor\frac{33}{32}\right\rfloor=16+8+4+2+1=31

Since s s is the maximum power of 2 2 that divides 33 ! 33! and s = 31 s=31 , we have,

2 s = 2 31 33 ! 2^s=2^{31}|33!

2 31 33 ! 33 ! 0 ( m o d 2 31 ) 33 ! m o d 2 31 = 0 \therefore\quad 2^{31}|33!\iff 33!\equiv 0\pmod{2^{31}}\iff 33!\bmod 2^{31}=0


Note: x y x|y denotes " x x divides y y ".

You missed 33 8 \frac { 33 }{ 8 } to add in s

Mayank Chaturvedi - 6 years, 2 months ago

Log in to reply

Thanks for pointing it out. :)

Prasun Biswas - 6 years, 2 months ago

Log in to reply

Well i pointed it out because i missed it too. In fact, wrote wrong answer before i realized : (

Mayank Chaturvedi - 6 years, 2 months ago

Actually, we have,

s = i = 1 33 2 i s=\sum_{i=1}^\infty \left\lfloor\frac{33}{2^i}\right\rfloor

But note that 33 2 i = 0 i 5 \left\lfloor\dfrac{33}{2^i}\right\rfloor=0~\forall~i\geq 5 and hence we can take the sum only from i = 1 i=1 to i = 4 i=4 to get the value of s s .

Prasun Biswas - 6 years, 2 months ago
Bhupendra Jangir
Apr 6, 2015

We have , 33!=1 * 2 * 3*...... * 33 , Now the only even prime factor 2 comes in 4,6,8,...,and 32. That's 2 * 2^2 * 2 * 2^3.... * 2^5 =2^31. Hence 33! is completely divisible by 2^31. So 33!mod2^31=0.

Rafi Pepe
Apr 7, 2015

33!=33 x 32 x 31 x 30 x ...... x 2. 2= 2. 4= 2 x 2. 6= 2 x 3. ...=... . 32= 2 x 2 x 2 x 2 x 2.

Then, count how many "2". If the 2 more or = 31, it means the answer is 0 because that is the factor of 33!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...