Divisibility and Probability

If x x is randomly chosen from the integers 20 to 99, inclusive, what is the probability that x 3 x x^3-x is divisible by 12?

If this probability can be expressed as A B \dfrac AB , where A A and B B are coprime positive integers, find A + B A+B .

10 9 6 7 5 8

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.

2 solutions

Áron Bán-Szabó
Jul 15, 2017

x 3 x = x ( x 2 1 ) 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 x is divisible by 3 3 , then 3 x ( x 2 1 ) 3\mid x(x^2-1) . If not, then it makes 1 1 or 2 2 remainder when it is divided by 3 3 . It is easy to see that even if the remainder is 1 1 or 2 2 , x 2 1 m o d 3 x^2\equiv 1 \ \mod 3 . So x 2 1 1 1 = 0 m o d 3 x^2-1\equiv 1-1=0 \ \mod3 . So x ( x 2 1 ) x(x^2-1) is always divisible by 3 3 .

Divisibility by 4:

If x x is divisible by 4 4 , then 4 x ( x 2 1 ) 4\mid x(x^2-1) .

If x 1 m o d 4 x\equiv 1 \ \mod 4 , then 4 x 2 1 4\mid x^2-1 .

If x 2 m o d 4 x\equiv 2 \ \mod 4 , then 4 ∤ x ( x 2 1 ) 4\not\mid x(x^2-1) , because x 2 1 0 1 = 1 m o d 4 x^2-1\equiv 0-1=-1 \ \mod 4 .

If x 3 m o d 4 x\equiv 3 \ \mod 4 , then x 2 1 3 3 1 = 9 1 = 8 0 m o d 4 x^2-1\equiv 3*3-1=9-1=8 \equiv 0 \mod 4 .

So x ( x 2 1 ) x(x^2-1) is always divisible by 4 4 , except x 2 m o d 4 x\equiv 2 \mod 4 . There are 99 20 + 1 = 80 99-20+1=80 numbers between 20 20 and 99 99 . From these numbers exactly 20 20 will be divisible by 4 4 , because only 20 20 is divisible by 4 4 from 20 20 and 99 99 . To each k k number 20 k 99 20\leq k\leq 99 we can assign an n n number, where n 2 m o d 4 n\equiv 2 \mod 4 , and n 2 = k n-2=k , so there are 20 20 possible values for n n . From that the probality is: 80 20 80 = 60 80 = 6 8 = 3 4 \dfrac{80-20}{80}=\dfrac{60}{80}=\dfrac{6}{8}=\dfrac{3}{4} .

Therefore the answer is 3 + 4 = 7 3+4=\boxed{7} .

100% true. Thank you, elegant and logical solution.

Hana Wehbi - 3 years, 11 months ago
Chew-Seong Cheong
Jul 15, 2017

We can write x 3 x = x ( x 2 1 ) = ( x 1 ) x ( x + 1 ) = P ( x ) 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 x is odd, then x 1 x-1 and x + 1 x+1 are even which means that P ( x ) P(x) are divisible by 4 and hence divisible by 12. If x x is even, then x 1 x-1 and x + 1 x+1 are odd. Then P ( x ) P(x) is divisible by 12 only if x x is divisible by 4. Therefore 12 ∤ P ( x ) 12 \not \mid P(x) when x = 4 n 2 x = 4n - 2 , where n N n \in \mathbb N . From 20 to 99 inclusive, there are 80 numbers; therefore the number of P ( x ) P(x) indivisible by 12 is b = 80 4 = 20 b = \frac {80}4 = 20 , that divisible by 12 is a = 80 20 = 60 a=80-20=60 and the probability P r ( 12 P ( x ) ) = 60 80 = 3 4 Pr(12 \mid P(x)) = \frac {60}{80} = \frac 34 . A + B = 3 + 4 = 7 \implies A+B = 3+4 = \boxed{7} .

Thank you. Logical and neat.

Hana Wehbi - 3 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...