{"course":{"slug":"ai-actually-explained","title":"AI, Actually Explained","url":"https://addaly.com/learn/ai-actually-explained","level":"beginner","track":"start"},"lesson":{"slug":"counting-and-arithmetic","title":"Counting and arithmetic: make the calculation checkable","url":"https://addaly.com/learn/ai-actually-explained/counting-and-arithmetic","position":34,"of":92,"minutes":8,"answer":"Models can perform some counting and arithmetic, but important results need a reproducible checked method. Token boundaries, fluent presentation and a tool indicator do not by themselves certify the calculation.","keyIdea":"Models can perform some counting and arithmetic, but important results need a reproducible checked method. Token boundaries, fluent presentation and a tool indicator do not by themselves certify the calculation."},"body":{"format":"markdown","text":"## Two separate problems\n\nCounting characters and calculating numbers are different tasks. They can fail for several reasons, so test the operation rather than assuming one cause.\n\n**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.\n\nWord 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.\n\n**Arithmetic** is another task to evaluate. Neural generation is computation and can learn useful arithmetic procedures; it is not equivalent to a verified calculator call. Tokenisation and representation can affect difficulty, but they do not make place value or column arithmetic impossible. Long integers and multi-step calculations deserve explicit tests.\n\nA system may handle small sums yet fail on longer calculations. Do not infer its internal method from that pattern alone. Check the actual model and tools on the operations you need, including percentages, interest and unit conversions.\n\n## Why the errors are so plausible\n\nAn incorrect answer can have a plausible magnitude and tidy formatting, whether a person or a model produced it. Some errors are obvious and some survive a glance. Presentation alone is a poor arithmetic check.\n\nA plausible error can survive a quick check of its magnitude. When reviewing model-produced figures, inspect the inputs and calculation rather than accepting a number because it looks about right.\n\n## A calculation needs a checked method\n\nUse a calculation whose inputs, method and result can be inspected.\n\n**Ask for code, then inspect and run it safely.** Review the inputs, units and formula, and test a known case. Python integers support exact whole-number arithmetic, but floating-point calculations can round; use a suitable decimal or rational representation when required. Running the wrong formula accurately still gives the wrong answer.\n\n**Inspect tool use.** A calculator or code tool can make a computation reproducible. A visible tool record helps, but its inputs and result still need checking. No visible tool record does not prove that no tool ran; ask for an inspectable calculation when the distinction matters.\n\n**Use a spreadsheet for repeated calculations.** LibreOffice Calc is one free option. Check formulas, references, rounding and units; spreadsheets also have numeric limits and can contain errors. A model can draft a formula, but someone must validate it.\n\nThe practical principle is to **make the deterministic calculation reproducible and review the judgement too**. A model can help choose comparisons and explain results, but those choices can be wrong. Keep the source figures and the checked calculation with the explanation.\n\n> Figure: Make calculations reproducible; review the judgement too. Use checked calculations: Counting letters, words or characters; Multiplying, percentages, compound interest; Unit conversions with awkward factors; Anything that must total exactly; Tools such as Python or LibreOffice Calc, with reviewed inputs, formulas and numeric representation. A model can help draft: Deciding which figures matter; Choosing the comparison to make; Writing the formula or the code that does the sum; Explaining the result to a reader; Suggesting checks for whether parts add up to the total. 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.\n\n## Where reasoning models change the picture, and where they do not\n\nStep-by-step prompting and later reasoning models have improved results on particular mathematics benchmarks. That is evidence of progress, not a guarantee for every arithmetic operation or every current model. Choose a test that matches your actual calculation.\n\nExtra inference effort can include generated steps, search, verification or tools; more tokens are not the only possible mechanism. Quality, time and price vary with the system and task. For a deterministic total, a checked calculation is often easier to inspect than an unsupported generated number.\n\n## A checklist for numbers in any model output\n\n- Can you inspect the calculation or tool record? If not, keep the number unverified.\n- Is the magnitude plausible against something known independently?\n- Do the parts sum to the stated total under the declared rounding rule?\n- Are percentages computed from the stated base?\n- Where a figure matters, reproduce the calculation with checked inputs and a suitable method.\n\nRecomputation can catch an otherwise plausible error. The time needed depends on the task. For consequential professional decisions, a quick sanity check does not replace the relevant qualified review."},"check":{"question":"A model is asked to total twelve invoice lines and returns a figure of the right magnitude that is wrong by a few hundred. Why is this error more dangerous than an obviously mangled one?","options":[{"text":"Because it indicates the model misread the input figures, which suggests all twelve lines are unreliable.","correct":false,"tempting":"Input-reading errors are possible, but the wrong total alone does not establish that the inputs were read correctly or incorrectly."},{"text":"Because the model will repeat the same wrong figure consistently, making it look verified.","correct":false,"tempting":"An error may repeat or vary. Neither pattern explains why a plausible-looking total can evade a quick visual check."},{"text":"Because it can pass a quick plausibility check while still being wrong; inspect the inputs and calculation.","correct":true},{"text":"Because arithmetic errors compound in later calculations, whereas obvious errors do not.","correct":false,"tempting":"True of any error carried forward, and does not explain why plausibility specifically defeats review."}]},"prev":{"slug":"what-it-cannot-do","title":"The limits of a checkpoint and the features of a product","url":"https://addaly.com/learn/ai-actually-explained/what-it-cannot-do"},"next":{"slug":"the-cut-off-and-the-clock","title":"Dates, cutoffs and gaps in coverage","url":"https://addaly.com/learn/ai-actually-explained/the-cut-off-and-the-clock"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"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).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Counting and arithmetic: make the calculation checkable","courseTitle":"AI, Actually Explained","module":{"index":4,"slug":"why-it-goes-wrong","title":"Why it gets things wrong"},"answer":null,"keyIdea":"Models can perform some counting and arithmetic, but important results need a reproducible checked method. Token boundaries, fluent presentation and a tool indicator do not by themselves certify the calculation.","hero":{"kind":"figure","figure":{"t":"figure","label":"Figure","figure":{"type":"compare","title":"Make calculations reproducible; review the judgement too","caption":"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.","left":{"title":"Use checked calculations","items":["Counting letters, words or characters","Multiplying, percentages, compound interest","Unit conversions with awkward factors","Anything that must total exactly","Tools such as Python or LibreOffice Calc, with reviewed inputs, formulas and numeric representation"]},"right":{"title":"A model can help draft","items":["Deciding which figures matter","Choosing the comparison to make","Writing the formula or the code that does the sum","Explaining the result to a reader","Suggesting checks for whether parts add up to the total"]}},"alt":"Figure: Make calculations reproducible; review the judgement too. Use checked calculations: Counting letters, words or characters; Multiplying, percentages, compound interest; Unit conversions with awkward factors; Anything that must total exactly; Tools such as Python or LibreOffice Calc, with reviewed inputs, formulas and numeric representation. A model can help draft: Deciding which figures matter; Choosing the comparison to make; Writing the formula or the code that does the sum; Explaining the result to a reader; Suggesting checks for whether parts add up to the total. 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."}},"blocks":[{"t":"h2","id":"two-separate-problems","runs":[{"text":"Two separate problems"}]},{"t":"p","runs":[{"text":"Counting characters and calculating numbers are different tasks. They can fail for several reasons, so test the operation rather than assuming one cause."}]},{"t":"p","runs":[{"text":"Counting characters","b":true},{"text":" 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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"Arithmetic","b":true},{"text":" is another task to evaluate. Neural generation is computation and can learn useful arithmetic procedures; it is not equivalent to a verified calculator call. Tokenisation and representation can affect difficulty, but they do not make place value or column arithmetic impossible. Long integers and multi-step calculations deserve explicit tests."}]},{"t":"p","runs":[{"text":"A system may handle small sums yet fail on longer calculations. Do not infer its internal method from that pattern alone. Check the actual model and tools on the operations you need, including percentages, interest and unit conversions."}]},{"t":"h2","id":"why-the-errors-are-so-plausible","runs":[{"text":"Why the errors are so plausible"}]},{"t":"p","runs":[{"text":"An incorrect answer can have a plausible magnitude and tidy formatting, whether a person or a model produced it. Some errors are obvious and some survive a glance. Presentation alone is a poor arithmetic check."}]},{"t":"p","runs":[{"text":"A plausible error can survive a quick check of its magnitude. When reviewing model-produced figures, inspect the inputs and calculation rather than accepting a number because it looks about right."}]},{"t":"h2","id":"a-calculation-needs-a-checked-method","runs":[{"text":"A calculation needs a checked method"}]},{"t":"p","runs":[{"text":"Use a calculation whose inputs, method and result can be inspected."}]},{"t":"p","runs":[{"text":"Ask for code, then inspect and run it safely.","b":true},{"text":" Review the inputs, units and formula, and test a known case. Python integers support exact whole-number arithmetic, but floating-point calculations can round; use a suitable decimal or rational representation when required. Running the wrong formula accurately still gives the wrong answer."}]},{"t":"p","runs":[{"text":"Inspect tool use.","b":true},{"text":" A calculator or code tool can make a computation reproducible. A visible tool record helps, but its inputs and result still need checking. No visible tool record does not prove that no tool ran; ask for an inspectable calculation when the distinction matters."}]},{"t":"p","runs":[{"text":"Use a spreadsheet for repeated calculations.","b":true},{"text":" LibreOffice Calc is one free option. Check formulas, references, rounding and units; spreadsheets also have numeric limits and can contain errors. A model can draft a formula, but someone must validate it."}]},{"t":"p","runs":[{"text":"The practical principle is to "},{"text":"make the deterministic calculation reproducible and review the judgement too","b":true},{"text":". A model can help choose comparisons and explain results, but those choices can be wrong. Keep the source figures and the checked calculation with the explanation."}]},{"t":"h2","id":"where-reasoning-models-change-the-picture-and-where-they-do-","runs":[{"text":"Where reasoning models change the picture, and where they do not"}]},{"t":"p","runs":[{"text":"Step-by-step prompting and later reasoning models have improved results on particular mathematics benchmarks. That is evidence of progress, not a guarantee for every arithmetic operation or every current model. Choose a test that matches your actual calculation."}]},{"t":"p","runs":[{"text":"Extra inference effort can include generated steps, search, verification or tools; more tokens are not the only possible mechanism. Quality, time and price vary with the system and task. For a deterministic total, a checked calculation is often easier to inspect than an unsupported generated number."}]},{"t":"h2","id":"a-checklist-for-numbers-in-any-model-output","runs":[{"text":"A checklist for numbers in any model output"}]},{"t":"ul","items":[[{"text":"Can you inspect the calculation or tool record? If not, keep the number unverified."}],[{"text":"Is the magnitude plausible against something known independently?"}],[{"text":"Do the parts sum to the stated total under the declared rounding rule?"}],[{"text":"Are percentages computed from the stated base?"}],[{"text":"Where a figure matters, reproduce the calculation with checked inputs and a suitable method."}]]},{"t":"p","runs":[{"text":"Recomputation can catch an otherwise plausible error. The time needed depends on the task. For consequential professional decisions, a quick sanity check does not replace the relevant qualified review."}]}],"check":{"question":[{"text":"A model is asked to total twelve invoice lines and returns a figure of the right magnitude that is wrong by a few hundred. Why is this error more dangerous than an obviously mangled one?"}],"options":[{"text":[{"text":"Because it indicates the model misread the input figures, which suggests all twelve lines are unreliable."}],"correct":false,"tempting":[{"text":"Input-reading errors are possible, but the wrong total alone does not establish that the inputs were read correctly or incorrectly."}]},{"text":[{"text":"Because the model will repeat the same wrong figure consistently, making it look verified."}],"correct":false,"tempting":[{"text":"An error may repeat or vary. Neither pattern explains why a plausible-looking total can evade a quick visual check."}]},{"text":[{"text":"Because it can pass a quick plausibility check while still being wrong; inspect the inputs and calculation."}],"correct":true,"tempting":null},{"text":[{"text":"Because arithmetic errors compound in later calculations, whereas obvious errors do not."}],"correct":false,"tempting":[{"text":"True of any error carried forward, and does not explain why plausibility specifically defeats review."}]}],"order":[0,2,3,1],"why":null},"prev":{"slug":"what-it-cannot-do","title":"The limits of a checkpoint and the features of a product","minutes":8},"next":{"slug":"the-cut-off-and-the-clock","title":"Dates, cutoffs and gaps in coverage","minutes":8}}}