123k views
2 votes
Formula to count the number of consecutive integers from m to n, inclusive

A) n - m + 1
B) n - m
C) n + m
D) (n + m)/2

User Matatk
by
10.3k points

1 Answer

6 votes

Final answer:

The correct formula for counting the number of consecutive integers from m to n, inclusive, is A) n - m + 1, which includes both endpoints of the range.

Step-by-step explanation:

The formula to count the number of consecutive integers from m to n, inclusive, is A) n - m + 1. This is because you start counting at m and go up to and include n. The count would therefore include both endpoints (m and n). If you simply did n minus m (option B), you would not be including m in your count. For instance, if m = 1 and n = 3, the consecutive integers would be 1, 2, 3, which are three numbers in total, calculated as 3 - 1 + 1.

User Spencer Malone
by
7.8k points