One small correction above -benjibo
2. Number of even (or odd terms) in a consecutive set = (Last Term - First Term)/2 + 1 [ if the number of elements includes the first term and the last term ] For e.g if the series is 1 2 3 4 5 6 7 8 9
then the number of even numbers is 4 . Using the above formula we would get 5 whereas only 4 even no are present
So we need to add that extra 1 in the formula depending on including the boundary integers
















