void wrote:
why (225+1)/2 for finding divisible by 8.... or there is another way to find divisible by 8....
because i dont understand what you did for finding no. which are divisible by 8...
We have 225 numbers which are divisible by 4, we need to find the numbers which are divisible by 8 here!
You know, every second number in the sequence would be divisible by 8 i.e. half of the numbers would be divisible by 8
Since we have the first term and last term divisible by 4, we will have 1 more term in the sequence which is divisible by only 4 than only 8.
Example: 4, 8, 12, 16, 20
How many numbers are divisible by 4 only: 3
How many of them are divisible by just 8: 2
3=(5+1)2Same logic goes for a question something like this: How many terms in the sequence are odd?
1, 2, 3, 4, 5, 6, 7, 8, 9
Last term and First term are both odd - so we will have 1 more odd term than the total number of even terms
odd terms =
(9+1)/2=5