john1234 wrote:It is 33. 200-100 = 100 .So the 100/3 =33,reminder 1. If the first and the last number is divisible by 3,you will just add 1 to what u get after division.
Hope this help.
If the range given had been 100-201... using your method you'd get 101/3 which is equal to 33.666 while there would be 34 numbers divisible by 3.... you'd need to add one if either the first or last, or both numbers were divisible by 3. But this only works for divis by 3.
The full way to do it would be something like as follows:
First figure out the range of numbers that are divis by 3... in this case it would be: 102 - 198... It might be tempting to just subtract and divide by three, but you'd be missing out on one.
I find it helpful to firstly divide both of the numbers by 3. So 102/3 is 34 and 198/3 is 66.
Now you want to figure out how many numbers are between 34 and 66. Here's a little trick. Instead of subtracting 34 from 66.. Subtract whatever number from both that changes the lower number into 1. So in this case, subtract 33 from both and you get 1 and 33. This gives you 33.