niveda94 wrote:
Hey Brent, is this rule applicable for both odd and even integers? "However, if there's an odd number of integers in the group (like 4, 5, 6, 7, 8), the number of even integers is one more than the number of odd integers."
For instance, if we wanted to find whether the number of odd or even numbers are greater between 1 and 91, there would be more odd numbers right? (91-1+1 = 91)
The formula: the number of integers from x to y inclusive equals y - x + 1This applies only two
consecutive integersIn order to for it to apply to consecutive ODD or EVEN integers, we'll need to make a small adjustment.
Let's say we want to find the number of ODD integers from 11 to 32 inclusive.
The above formula tells us that the number of integers = 38 - 11 + 1 = 28
So there are 28 integers in total.
Since the values begin with an ODD integer (11) and end with an EVEN integer (38), we know that half of the values are ODD and half are EVEN.
28/2 = 14
So there are 14 ODD integers from 11 to 32 inclusive, and there are 14 EVEN integers from 11 to 32 inclusive.
Let's try one more.
Let's say we want to find the number of EVEN integers from 66 to 96 inclusive.
The above formula tells us that the number of integers = 96 - 66 + 1 = 31
So there are 31 integers in total.
In this case, the values begin with an EVEN integer (66) and end with an EVEN integer (96).
This means the number of EVEN integers is 1 greater then the number of ODD integers.
So there are 15 ODD integers from 66 to 96 inclusive, and there are 16 EVEN integers from 66 to 96 inclusive.
_________________
Brent Hanneson - founder of Greenlight Test Prep