if an integer w is to be chosen at random from the integers 1 to 96 , inclusive , what is the probability that w ( w + 1 ) ( w + 2 ) will be divisible by 8 ?
for w total numbers 8 * 12 there are 12 numbers divisible by 8 - > 3 * 12 ( if 8 is an example - ( 6 , 78 ) , ( 7 , 89 ) , ( 8 , 910 ) ) and 12 numbers divisible by 4 but not divisible by 8 - > 2 * 12 ( if 4 is an example ( 2 , 34 ) and ( 4 , 56 ) ) the answer 5 / 8 - > d
divide(add(divide(96, 8), divide(96, 2)), 96)