Welcome to Westonci.ca, your ultimate destination for finding answers to a wide range of questions from experts. Experience the convenience of getting reliable answers to your questions from a vast network of knowledgeable experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Suppose that a and b are integers with a < b How many numbers are in the list a, a+1, a+2.... b?

So I thought about doing a-(a-1) to get the first number to one so the list becomes 1,2,3 but i soon realized that does not work


Sagot :

The count of numbers in the list a, a+1, a+2.... b is b - a + 1

How to determine the count of numbers in the list a, a+1, a+2.... b?

The list of numbers is given as:

a, a+1, a+2.... b

From the above list, we can see that the numbers are consecutive numbers.

This means that, the count of numbers in the list is

Count = Highest - Least + 1

Where

Highest = b

Least = a

Substitute the known values in the above equation

Count = b - a + 1

Hence, the count of numbers in the list a, a+1, a+2.... b is b - a + 1

Read more about consecutive integers at:

https://brainly.com/question/10853762

#SPJ1