Quiz #8 for Math 55, Nov. 21 2002
A. Call these sets O, T, F. Then |O| = 50^4, |T| = 33^4, |F| = 20^4, |O intersect T| = 17^4, |O intersect F| = 10^4, |F intersect T| = 6^4, |O intersect F intersect T| = 3^4.
So the answer is (|O| + |T| + |F| - |OT| - |OF| - |FT| + |OFT|) / 100^4.
(500 isn't cubefree, so it doesn't matter if we say less than 500 or less than or equal to 500, by the way.)
A. To get the cubefree ones, we throw away the ones divisible by 2^3, 3^3, 5^3, and 7^3. Then we have to add one thing back: the one number less than 500 that's divisible by two of these, 2^3 and 3^3.
So it's 499 - floor(499/2^3) - floor(499/3^3) - floor(499/5^3) - floor(499/7^3) + 1.
(If you want, that's 499 - 62 - 55 - 3 - 1 + 1.)
A. We basically follow the derangement derivation, and get
10! - (5 choose 1) 9! + (5 choose 2) 8! - (5 choose 3) 7! + (5 choose 4) 6! - (5 choose 5) 5!.