Question 984660
<font face="Times New Roman" size="+2">


Greater than 5 but less than 40 is in the inclusive range 6 to 39, a total of 39 minus 6 plus 1 = 34 numbers.  Half of these, 17, are divisible by 2.  One-third of these, (11 and a fraction so round up) 12, are divisible by 3.  And one-sixth of these, (5 and a fraction so round up) 6, are divisible by 6.  But if a number is divisible by 6 it is also divisible by both 2 and 3, so subtract 6 of the 17 that are divisible by 2, and 6 of the 12 that are divisible by 3.


Altogether 11 + 6 + 6 = 23 


John
*[tex \LARGE e^{i\pi}\ +\ 1\ =\ 0]
My calculator said it, I believe it, that settles it

*[tex \Large \ \
*[tex \LARGE \ \ \ \ \ \ \ \ \ \