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.
How? 7!= 7 * 6 * 5 * 4 * 3 * 2 * 1 We have 4 prime odd divisos (incl 1) or 3 prime odd divisors (excl 1)
4+ (combination of 2 among 3) + (combination of 3 among 3) = 4+3+1 = 8
or 3+(combination of 2 among 3) + (combination of 3 among 3) = 3+3+1 = 7
But forgot the 3 in 6. :D :P
There are also 12 negative odd divisors.
Log in to reply
Yes, I also marked 24 as the answer and had it marked wrong. If it is limited to positive divisors, the problem should so state.
7! = 2^4 × 3^2 × 5 × 7. To find odd divisors of 7!, ignore the powers of 2 and then calculate the number of combinations of powers of 3, 5, and 7.
The number of combinations = 3 × 2 × 2 = 12.
Therefore, there are 12 odd divisors of 7!.
Can you please explain why number of combination are 3×2×2?
The odd divisors of 7! are 3 5 7 9 15 21 35 45 63 105 315 and ? I don't think 1 is one of the twelve so what number am I missing?
Log in to reply
I don't think you are missing any, There are only 11 odd divisors, The list of divisors is: 3, 3x3, 5, 5x3, 5x3x3, 7, 7x3, 7x3x3, 7x5, 7x5x3, 7x5x3x3.
1 is one of the twelve, because 1 is also odd number
1 2 3 4 5 6 7 |
|
Fun! But Cheap...do the math :-)
instead of checking i is odd or not, after every iteration increase the value of i by 2
Yesss! I love coding!
O(n) is not worth it for a simple math like this. Imagine numbers like !10000, it will take minutes to calculate.
Problem Loading...
Note Loading...
Set Loading...
The prime factorization of 7 ! is 2 4 ∗ 3 2 ∗ 5 ∗ 7 . Each odd factor of 7 ! is a product of odd prime factors, and there are 3 ∗ 2 ∗ 2 = 1 2 ways to choose the three exponents.