Let 4 2 N be the highest power of 42 that divides 1 0 0 0 ! . What is the value of N ?
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.
As an aside, if the number was 1 8 9 = 3 3 × 7 , then we would have to count the multiples of 3. It is not immediately obvious that there are enough of them.
Log in to reply
yeah, but in this question the primes are raised to the 1st power. So, checking the highest prime is sufficient
Thanks! Forgot to mention that.
In that case don't we have to calculate the power 27, i. e., 3 3 in the given no.?
Log in to reply
Find the maximum power of 3 in the number and divide it by 3
let's say, for 1000!
1000/3 = 333
333/3 = 111
111/3 = 37
37/3 = 12
12/3 = 4
4/3 = 1
Adding all the quotients: 333 + 111 + 37 + 12 + 4 + 1 = 498
dividing 498 / 3 = 166
The max power of 3 3 is 166
As, is the matter, the max power of 7 is still less (164), so max power of 189 should also be 164
Log in to reply
@Soumya Chakraborty – Good work showing that for 1000! the answer is still the same.
If the number was 8!, then there is 1 factor of 7 and only 2 factors of 3. Hence, the answer is not simply ⌊ 7 n ⌋ .
@Soumya Chakraborty – Thanks :-)
I always go by successive division
1000/7 = 142
142/7 = 20
20/7 =2
1000/7=142, 142/7 = 20, 20/7 = 2 Ans= 142+20+2= 164
Same method here.
we dont need to consider 3 as the 7s are in less abundance and they are required to form 42
why we have not consider the multiple of 3 in this case ...... in an another example of same type 49!/12 ...... we considered 3 and 4 both so why not here ?????????
4 2 = 2 ⋅ 3 ⋅ 7 . However, in 1 0 0 0 ! , there will obviously be more 2 's and 3 's than 7 's, so all we need to bother about is the number of times 7 is multiplied in 1 0 0 0 ! . We simply do ⌊ 7 1 0 0 0 ⌋ + ⌊ 7 2 1 0 0 0 ⌋ + ⌊ 7 3 1 0 0 0 ⌋ = 1 4 2 + 2 0 + 2 = 1 6 4
∑ i = 1 ∞ ⌊ 7 i 1 0 0 0 ⌋ = 1 6 4
Was also the 164th person to solve the problem :)
congrats!
Let e p ( n ) be the Legendre's Formula for the number n in relation to the prime number p . As we know, we may write 4 2 N = 2 N × 3 N × 7 N . Then N will be writen as
N = m i n ( e 2 ( 1 0 0 0 ) , e 3 ( 1 0 0 0 ) , e 7 ( 1 0 0 0 ) )
But e 2 ( 1 0 0 0 ) = 9 9 4 , e 3 ( 1 0 0 0 ) = 4 9 8 , e 7 ( 1 0 0 0 ) = 1 6 4 . Then N = 1 6 4 .
as we know prime factors of 42 are 2, 3,7, now in 1000! 7 comes less no. of times comparing to 2 and 3 now for no.of 7 floor of 1000/7=142 floor of 1000/49=20 floor of 1000/343=2 ans=164
use of greatest integer function:
42 = 2 X 3 X 7 the number of times 7 comes in 1000! will determine the greatest power of 42 that can divide 1000! so
1000/7 = 142 (floor of 1000/7 or rounding it of to the lower integer) similarly, 1000/49 =20 and 1000/343 = 2
so 142 + 20 + 2 = 164
This can be solved using the greatest integer function (GIF). Finding the highest power of 42 in 1000! means that we have to find out the highest power of 6 and 7 together in 1000! as they are the prime factors of 42. Note:- these brackets [] indicate the application of the GIF. For eg. [2.236]=2, [2.999]=2 To find out the highest power of 7:- [1000/7]=142 [1000/49]=20 [1000/343]=2 Therefore the highest power of 7 in 1000! is 142+20+2=164
To find out the highest power of 6:- [1000/6]=166 [1000/36]=27 [1000/216]=4 Therefore the highest power of 6 in 1000! is 166+27+4=197
We have to find out the combined power of 6 & 7. Here, the power of 6 exceeds the power of 7. therefore 164 is the highest power of 6x7=42 Therefore the highest power of 42 in 1000! is the power of 7 which is 164.
42 = 7 * 2 * 3 The highest prime factor of 42 is 7. The highest power of 42^N that divides 1000! is the highest power of 7^N.
N = step function(1000/7) + step function(1000/49) + step function(1000/343) = 164
Problem Loading...
Note Loading...
Set Loading...
The key to this is the greatest integer function. Since 7 is the highest prime factor of 42 ,we have to find the following:
Floor of 1000/ 7 1 = 142
Floor of 1000/ 7 2 = 20
Floor of 1000/ 7 3 = 2
Therefore the answer is
142 + 20 + 2 = 1 6 4