Find the highest power of 2 that divides 3 3 ! .
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.
The question was horribly written.
Case 1: Assuming no remainder restrictions, the answer is infinity. eg, 2^100 divides into 33, eg, 2^999999 also divides into 33. and so on.
Case 2: Assuming the remainder is restricted to be 0, the highest whole number power of 2 that divides into 33 is (-1). ie, 2^(-1) divides into 33 exactly 66 times.
The question NEVER mentioned greatest integer functions. The question should have been more carefully crafted.
Seriously awesome upvoted! Can we use the power of 2 divisible equation for any number like 3?
Is this a formula that had been previously proved or is it something you came up with on your own? I can't seem to understand it unfortunately...
Log in to reply
It is not that difficult actually.
3 3 ! = 1 × 2 × 3 × . . . × 3 3 . Every even number from 1 to 3 3 contributes 1 to the power of 2 , therefore there are ⌊ 2 3 3 ⌋ = 1 6 . But numbers that are divisible by 4 = 2 2 , each contributes another 1 to the power. Therefore, we have to add ⌊ 4 3 3 ⌋ = 8 . Similarly, for numbers divisible by 8 , 1 6 and 3 2 .
I understood the solution. Isn't p(n) = p(33) instead of p(30)? [x] is not mentioned in the expression for p(n). So what is [x]?
ν 2 ( 3 3 ! ) = ν 2 ( 3 2 ! ) = 2 − 1 3 2 − 1 = 3 1 by Legendre's Theorem
WOW looks too good to be true. +1
Log in to reply
It's good to hear from you, Comrade. I'm sorry I can't be more active on Brilliant these days, but... duty calls.
The highest power of p dividing any number a is given by:
[a/p] + [a/p^2] +...
use it for a = 33 and p = 2
Is there a name for this? Like, a famous Law or Rule? Or is it simply just floor function?
It's not as fancy or as ‘clean’ as how other people solved it, but an intuitive way to approach the problem (for those who don't know/understand math terminology as well)
I just considered each number in 33! and calculated how many times you could divide each by 2. 2/2 = 1, 3/2= 0, 4/2= 2, 5/2 = 0, 6/2= 1, etc… And then added those numbers up to get 31.
Yes, that is the slow (and painful) way to solve this problem. What if we want 1 0 0 0 ! ? Do we need to sum up 1000 (or at least 500) numbers?
It may be 'slow and painful' but at least it is a genuine solution that does not rely on invoking other theorems. Well done!
33/2 +33/4+33/8+33/16+33/32=16+8+4+2+1=31
Solved it computationally. Basically, compute n! mod 2^k (for k = 0..2n, say).
I used the brute force method. Enter 33! into calc divided it by 2 until I got an odd number. I hit the return key 31 times.
Problem Loading...
Note Loading...
Set Loading...
The highest power of 2 that divides n ! is given by:
p ( n ) = k = 1 ∑ ∞ ⌊ 2 k n ⌋
where ⌊ x ⌋ is the greatest integer function.
For n = 3 3 , we have:
p ( 3 3 ) = k = 1 ∑ ∞ ⌊ 2 k 3 3 ⌋ = ⌊ 2 3 3 ⌋ + ⌊ 4 3 3 ⌋ + ⌊ 8 3 3 ⌋ + ⌊ 1 6 3 3 ⌋ + ⌊ 3 2 3 3 ⌋ = 1 6 + 8 + 4 + 2 + 1 = 3 1