If x is randomly chosen from the integers 20 to 99, inclusive, what is the probability that x 3 − x is divisible by 12?
If this probability can be expressed as B A , where A and B are coprime positive integers, find A + B .
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.
100% true. Thank you, elegant and logical solution.
We can write x 3 − x = x ( x 2 − 1 ) = ( x − 1 ) x ( x + 1 ) = P ( x ) , which is a product of three consecutive positive integers. We know that there is always one out of three consecutive integers that is divisible by 3. If x is odd, then x − 1 and x + 1 are even which means that P ( x ) are divisible by 4 and hence divisible by 12. If x is even, then x − 1 and x + 1 are odd. Then P ( x ) is divisible by 12 only if x is divisible by 4. Therefore 1 2 ∣ P ( x ) when x = 4 n − 2 , where n ∈ N . From 20 to 99 inclusive, there are 80 numbers; therefore the number of P ( x ) indivisible by 12 is b = 4 8 0 = 2 0 , that divisible by 12 is a = 8 0 − 2 0 = 6 0 and the probability P r ( 1 2 ∣ P ( x ) ) = 8 0 6 0 = 4 3 . ⟹ A + B = 3 + 4 = 7 .
Thank you. Logical and neat.
Problem Loading...
Note Loading...
Set Loading...
x 3 − x = x ( x 2 − 1 ) The divisibility rule of 12 is: if a number is divisible by both of 4 and 3, then it is divisible by 12.
Divisibility by 3:
If x is divisible by 3 , then 3 ∣ x ( x 2 − 1 ) . If not, then it makes 1 or 2 remainder when it is divided by 3 . It is easy to see that even if the remainder is 1 or 2 , x 2 ≡ 1 m o d 3 . So x 2 − 1 ≡ 1 − 1 = 0 m o d 3 . So x ( x 2 − 1 ) is always divisible by 3 .
Divisibility by 4:
If x is divisible by 4 , then 4 ∣ x ( x 2 − 1 ) .
If x ≡ 1 m o d 4 , then 4 ∣ x 2 − 1 .
If x ≡ 2 m o d 4 , then 4 ∣ x ( x 2 − 1 ) , because x 2 − 1 ≡ 0 − 1 = − 1 m o d 4 .
If x ≡ 3 m o d 4 , then x 2 − 1 ≡ 3 ∗ 3 − 1 = 9 − 1 = 8 ≡ 0 m o d 4 .
So x ( x 2 − 1 ) is always divisible by 4 , except x ≡ 2 m o d 4 . There are 9 9 − 2 0 + 1 = 8 0 numbers between 2 0 and 9 9 . From these numbers exactly 2 0 will be divisible by 4 , because only 2 0 is divisible by 4 from 2 0 and 9 9 . To each k number 2 0 ≤ k ≤ 9 9 we can assign an n number, where n ≡ 2 m o d 4 , and n − 2 = k , so there are 2 0 possible values for n . From that the probality is: 8 0 8 0 − 2 0 = 8 0 6 0 = 8 6 = 4 3 .
Therefore the answer is 3 + 4 = 7 .