AI, Actually ExplainedLesson 34 of 92

Module 4 · Why it gets things wrong

Counting and arithmetic: make the calculation checkable

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 of 11 in this chapter

This chapter’s goalIdentify material claims that need evidence, distinguish model behaviour from product controls, and evaluate proposed fixes with appropriate sources, calculations and tests. Explain what an observed failure establishes and what remains unknown.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableWatch15:55
Full audiobookNot availableListen52:21
Make calculations reproducible; review the judgement tooUse checked calculationsCounting letters, words or charactersMultiplying, percentages, compound interestUnit conversions with awkward factorsAnything that must total exactlyTools such as Python or LibreOffice Calc, withreviewed inputs, formulas and numericrepresentationA model can help draftDeciding which figures matterChoosing the comparison to makeWriting the formula or the code that does thesumExplaining the result to a readerSuggesting checks for whether parts add up tothe totalA generated number can be right or wrong. Use a checked calculation for a required result, keeping theinputs, units, formula and rounding rule. Model-generated code and explanations need validation too;tokenisation does not make arithmetic impossible.
A generated number can be right or wrong. Use a checked calculation for a required result, keeping the inputs, units, formula and rounding rule. Model-generated code and explanations need validation too; tokenisation does not make arithmetic impossible.

Figure

Listen from this lesson

Open the complete chapter audiobook at this lesson. You can move to any section from the player.

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Two separate problems

Counting characters and calculating numbers are different tasks. They can fail for several reasons, so test the operation rather than assuming one cause.

Counting characters can be awkward when a tokenizer groups several characters together. That does not mean a model cannot represent letters or learn a counting procedure. Its result depends on the model and exact task. For a required character count, use a checked program and specify whether you mean bytes, code points or visible characters.

Word reversal, word counts and exact-length writing also need precise definitions and checks. A generated answer may succeed or fail; token boundaries alone do not diagnose the error. Specify the rule for spaces, punctuation and combined characters before comparing counts.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Meenal, your AI tutor

How to cite: Addaly (2026) ‘Counting and arithmetic: make the calculation checkable’, in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/counting-and-arithmetic (Accessed: 29 November 2026).