New Tool Radar

AI Research & Fact-Checking

How to Check an Inclusive Count Across a Range

Add 1 to the difference to check an inclusive count, because pages 5 to 9 inclusive are 5 pages, not 4.

Schematic diagram: an AI answer says pages 5 to 9 is 4 pages, while last minus first plus 1 gives 5 pages; the verdict is Wrong.

When both ends of a range count, the count is last minus first plus 1: pages 5 to 9 inclusive are 5 pages, not 4. An AI answer that only subtracts forgets one end of the range, and the count comes out one short — the classic off-by-one error.

A counting guide states the rule plainly: in general, the formula is: last – first + 1. Its worked example is that from 100 to 1000 there are 901 numbers, because 1000 – 100 + 1 is 901.

Use the practice reading lists

The ranges below are synthetic. They are about a fictional book club reading list, and they were not produced by any AI tool. They are the only source for the exercise.

Practice ranges — Northfield Book Club reading list:

  • Chapter handout: pages 5 to 9 inclusive.
  • Anthology section: chapters 12 to 20 inclusive.
  • Index entries: items 101 to 110 inclusive.

Practice AI answer: "The handout is 4 pages, the anthology section is 8 chapters, and the index has 10 entries."

Check each count with last minus first plus 1

Expected result. We checked the counting guide on numbers in a sequence. We did not run an AI tool on the practice ranges. The checked list below is what to expect if the figures are correct; run the same check yourself on the practice material above.

Range AI answer says Correct (last – first + 1) Verdict
Pages 5 to 9 4 pages 5 pages (9 – 5 + 1 = 5) Wrong — the AI subtracted without adding 1
Chapters 12 to 20 8 chapters 9 chapters (20 – 12 + 1 = 9) Wrong — the AI subtracted without adding 1
Items 101 to 110 10 entries 10 entries (110 – 101 + 1 = 10) Correct

Count both ends of the range

Both wrong rows subtract and stop: 9 minus 5 is 4, and 20 minus 12 is 8. Subtraction counts the gaps between the numbers, not the numbers themselves. Pages 5, 6, 7, 8 and 9 are five pages, and the extra 1 in the formula is page 5 itself — the first page, which subtraction drops.

To check one yourself, subtract the first number from the last, then add 1. If the range starts at 1, the count is just the last number: pages 1 to 9 are 9 pages. If the range says exclusive, or up to but not including, do not add 1 — but do not assume that either; the word inclusive is what decides it.

What to do with each verdict

  • Correct: keep the count, and keep the range with it so the next reader can recompute last minus first plus 1.
  • Wrong: replace it with the difference plus 1, showing the arithmetic. Do not keep the wrong count and add a note; a wrong page count in a reading list will be copied.
  • Inclusive is not stated: do not guess whether both ends count. Ask for the range in words; pages 5 to 9 and pages 5 to 9 inclusive are different counts.

Limits

  • This guide covers ranges where both ends count. If a range excludes one or both ends, the formula changes: last minus first counts a range that excludes one end, and last minus first minus 1 counts a range that excludes both.
  • The formula counts consecutive items only. If pages are missing from the range, the count of pages present is smaller, and this check does not catch that.
  • This guide checks the arithmetic of an inclusive count. If the range itself is wrong, this check will not catch it; the range needs checking against its own source.
  • No AI tool was run for this guide. The practice ranges and answer are synthetic.

Sources

See all