If k divides 25 what is prob(k odd)?

  • I
  • Thread starter Mathysics29
  • Start date
In summary: 5 256! 1 2 3 ... 6 257! 1 2 3 ... 7 258! 1 2 3 ... 8 259! 1 2 3 ... 9 2510! 1 2 3 ... 10 2511! 1 2 3 ... 11 2512! 1 2
  • #36
You misunderstood me. I meant that the number of factors of 25! is 23*11*7*4*3*2*2*2*2.
Since we also need to find how many odd factors there are, we don't need to include 23 in the product of 25!/2^22.
 
Physics news on Phys.org
  • #37
To make my point fully clear, take 60. The factorization is 2^2*3*5. Therefore, there are 3*2*2= 12 factors :
1,2,3,4,5,6,10,12,15,20,30,60. Similarly, there are only 2*2= 4 odd factors: 1,3,5,15. So, the probability in this case is one third.
 
  • #38
ddddd28 said:
To make my point fully clear, take 60. The factorization is 2^2*3*5. Therefore, there are 3*2*2= 12 factors :
1,2,3,4,5,6,10,12,15,20,30,60. Similarly, there are only 2*2= 4 odd factors: 1,3,5,15. So, the probability in this case is one third.

You don't need to calculate the number of factors to get the answer. That's the point.
 
  • #39
You are right, but it still works. Of course, the amount of 2s only matters, because the rest of the factorization is reduced anyway.
 
  • #40
Yeah, really all you need to do is count the number of times 2 appears in its prime factorization. So no need to factor the odd numbers (1,3,5,7...25) at all.
 
  • Like
Likes PeroK
  • #41
Chris Miller said:
Yeah, really all you need to do is count the number of times 2 appears in its prime factorization. So no need to factor the odd numbers (1,3,5,7...25) at all.
There is a shortcut for that part as well.

How many times does an even number occur in the set {1, 2, 3, ... 25} ? Answer: 25 divided by 2 and rounded down = 12.
Divide each of those even numbers in half.
How many times does an even number occur in the set {1, 2, 3, ...12} ? Answer: 12 divided by 2 and rounded down = 6.
Divide each of those even numbers in half.
How many times...

so all you have to do is add up 12 + 6 + 3 + 1 = 22 occurrences of 2 in the prime factorization of 25!

If you refer back to post #7 by @Vanadium 50, you will see a result obtained for 1000 factorial. Using this trick, it is fairly easy to verify the result obtained there.

[You might even note that 1000 is close to 1024 and economize even more on the arithmetic].
 
  • Like
Likes Chris Miller
  • #42
Your shortcut works well with factorials, what about the rest of the numbers?
 
  • #43
ddddd28 said:
Your shortcut works well with factorials, what about the rest of the numbers?
It does not work for determining the number of 2's in the prime factorizations of numbers that are not factorials.

Edit: Argument about whether this is a bug or a feature removed.
 
Last edited:
  • #44
jbriggs444 said:
not important in test taking.
Are we taking a test right now?
I believe that, when not tested, one should not be satisfied with a sufficient solution, because the most important thing is not to provide a solution, but to learn something from the attempts and to improve oneself for the next problem
 

Similar threads

Back
Top