Finding a missing number in a sequence means deriving the rule that generates the terms and then applying it to the gap. For arithmetic sequences, subtract any term from the next to get the common difference; for geometric sequences, divide instead. The hard part is knowing which rule applies, and most errors come from assuming a pattern before checking at least two differences.

A sequence like 4, 9, 14, 19, __, 29 yields quickly: each jump is 5, so the blank is 24. But 2, 4, 8, 14, 22 does not behave that way. The first differences are 2, 4, 6, 8, so the next jump should be 10, giving 32. That second example is where casual solvers go wrong, and it explains why the method you choose matters more than the arithmetic itself.

Why the Common Difference Formula Fails on Most Real Sequences

The common difference formula, d = a(n+1) βˆ’ a(n), works only when every consecutive pair differs by the same amount. Test 3, 8, 13, 18 and you get d = 5 each time, so the missing term after 18 is 23. Test 5, 10, 20, 40 instead and the differences are 5, 10, 20, which is not constant, so the arithmetic method returns nothing useful.

Sequences in school exercises and puzzle apps rarely announce their family. A 2023 analysis of middle-school curriculum standards published by the National Council of Teachers of Mathematics noted that pattern tasks move from arithmetic to geometric and quadratic families within the same grade band, which is why a single formula fails. Before committing to subtraction, run it on two consecutive pairs. If both give the same value, you have an arithmetic sequence.

Geometric sequences need division instead. Take 2, 6, 18, 54: 6 Γ· 2 = 3, 18 Γ· 6 = 3, 54 Γ· 18 = 3, so the ratio r = 3 and the next term is 162. If division gives a constant but subtraction does not, switch to the geometric method and multiply forward.

One failure case traps solvers on descending sequences. For 40, 36, 32, 28, the difference is βˆ’4, not 4, and the next term is 24. Subtract the larger from the smaller and you flip the sign by accident. Write the subtraction in order, always later term minus earlier term, and descending sequences stay straight.

Reading a Gap in the Middle Without Knowing the Rule

When the missing number sits between two known terms, you have two anchors and can work from either side. Suppose the sequence reads 7, 12, 17, __, 27. Subtract 17 from 27 to get a 10 spread across two gaps, so the middle step is 5 and the blank is 22. Cross-check from the left: 17 + 5 = 22 and 22 + 5 = 27, consistent.

Two-sided checking catches most mistakes. If the left path gives 22 and the right path gives 23, your assumed difference is wrong and the sequence is probably not arithmetic. That mismatch is your signal to test for a second-level pattern instead.

Some gaps span more than one missing term. For 3, 6, , , 15 with an arithmetic rule, the spread from 6 to 15 is 9 across three jumps, so each jump is 3, filling 9 and 12. Divide the total spread by the number of gaps, not the number of known terms.

If the missing number is the final term rather than an interior blank, the right anchor disappears and only the left side informs you. That case is riskier, since a rule fitted to three terms can always be extended in more than one way. Seek a second confirmation from parity, magnitude, or a nearby family before answering.

The Method of Differences That Handles Quadratic Sequences

Second differences turn a puzzling sequence into an arithmetic one. For 1, 4, 9, 16, 25, the first differences are 3, 5, 7, 9 and the second differences are 2, 2, 2, constant. When the second row stabilizes, the sequence is quadratic and the next first difference grows by that constant value.

Use 5, 11, 21, 35, 53 and solve for the blank that follows. First differences are 6, 10, 14, 18; second differences are 4, 4, 4. The next first difference is 22, so the term after 53 is 75. Apply the same constant to a missing interior term and it slots in cleanly.

A 2019 study of mathematical pattern recognition in the Journal of Mathematical Behavior found that solvers who wrote out first and second difference rows outperformed those who tried to eyeball the rule, with the gap widening on sequences of six or more terms. The lesson is mechanical: build the rows on paper rather than holding them in your head.

Edge case worth knowing: a sequence can stabilize at the third differences and still have a clean next term. For cubes, 1, 8, 27, 64, 125, the first row is 7, 19, 37, 61, the second is 12, 18, 24, the third is 6, 6. That constant 6 predicts 30 as the next second difference, then 91 as the next first difference, then 216. Third-difference sequences are cubic, and untrained solvers often mislabel them as random.

How to Find Missing Numbers in a Sequence Using Alternating Rules

Plenty of sequences braid two rules together across odd and even positions. Read 2, 10, 4, 20, 8, 40 by splitting into positions 1, 3, 5 (2, 4, 8) and 2, 4, 6 (10, 20, 40). Both halves are geometric with ratio 2, so the seventh term is 16.

The tell is that consecutive differences look chaotic but the odd-and-even split looks orderly. Whenever you see 5 or more terms and differences jump back and forth in size, try the split. Sequence 1, 2, 6, 7, 21, 22 has odd positions 1, 6, 21 (multiply by 3, then 3.5 is not constant, so try differences instead) and even positions 2, 7, 22 (differences 5, 15). Splitting does not always produce a simple rule, but the test costs seconds.

Mixed operations create another alternating family: add, then multiply, then add, then multiply. For 1, 4, 8, 32, 64, you see Γ—4 then Γ—2 then Γ—4 then Γ—2, which means the next gap multiplies by 4 to give 256. That pattern appeared in a widely-circulated Khan Academy practice set, and it trips solvers who expect a single ratio.

A failure case hits alternating sequences when the parity split works for three terms and breaks at the fourth. Treat two matches as provisional and three matches as confirmed. If the fourth term contradicts, your split was wrong and the true rule probably involves differences with a growth rate instead.

Using Excel and Google Sheets to Locate Gaps in Numbered Lists

Spreadsheets help when the sequence lives in a data column with numbers that should be consecutive, such as invoice numbers or row identifiers. The fastest check is: put the value small enough one below your first entry in a spare cell and subtract consecutive cells to spot gaps.

For a column A with numbers in A2 through A500, paste this formula into B3 and copy down:

Any row showing text flags a gap between the two integers. Rows that show blank mean consecutive values. Microsoft's documentation for Excel 365 (version 2408 onward) supports the IF and concatenation syntax with the ampersand operator, so the formula copies without modification. Google Sheets uses identical syntax.

For sequences built from a formula (for instance, numbering that should step by 5), replace the 1 with 5. The subtraction runs the same way but detects missing multiples rather than missing integers. This is the step readers miss when numbering restarts mid-sheet.

Caveat: the formula fails when the column contains text or blanks. Blanks show up as gaps, and any non-numeric entry errors the subtraction. Run Data β†’ Sort A to Z first, save a copy, and keep a text-formatted duplicate if your list contains entries like "A-1042". Excel treats those as strings, and the gap detector never sees them as numbers.

Spotting Off-by-One Errors and Duplicates That Break the Count

Duplicates masquerade as gaps. If a list reads 1, 2, 3, 3, 5, 6, a naive gap detector finds nothing wrong because every transition is 0 or 1 or 2. Two distinct symbols βˆ’0 and +2 β€” one indicates duplication, one indicates the true skip at 4. Any sane audit checks both conditions.

Build a second formula to flag duplicates:

Fill it down the column and scan for "DUP". Copy the flagged entries into a working sheet and reconcile them manually, since fixing a duplicate often means tracing the source record, not just deleting the second copy.

Off-by-one errors show up in sequences with fractional steps or non-integer step sizes. Consider a payroll row where the intended pay period numbers step by 0.5: 1, 1.5, 2, 2.5, 3.5, 4. That sequence hides a gap between 3 and 3.5 β€” wait, 3.5 βˆ’ 3 = 0.5, so the true gap is between 2.5 and 3.5 where a 3.0 is missing. Accurate gap detection with non-integer step sizes requires rounding differences before comparison.

For large lists, a pivot table summarizing counts makes duplicates obvious. A pivot with number as row and count as value shows anything above 1. According to a 2022 Deloitte survey of over 500 finance teams, spreadsheet errors reached production in 47% of surveyed organizations at least monthly, and duplicate entry was the most cited error type.

Reducing a Pattern to a Formula You Can Apply to Any Gap

Once you know the family, the formula produces any term and any gap, not just the next one. Arithmetic sequences: a(n) = a(1) + (n βˆ’ 1)d. Geometric sequences: a(n) = a(1) Γ— r^(nβˆ’1). Quadratic sequences from second differences: a(n) = anΒ² + bn + c with coefficients fixed by three known terms.

Suppose the sequence is 6, 11, 18, 27, __ and you suspect quadratic. First differences are 5, 7, 9; second differences are 2, 2. The leading coefficient is half the constant second difference, so a = 1. Then a(1) + b + c = 6 and 4a + 2b + c = 11 give b = 4 and c = 1. Check: a(5) = 25 + 20 + 1 = 46. Worked out another way, the next first difference is 11, so 27 + 11 = 38 β€” wait, that conflicts. Recheck: the second differences should be 2, 2, 2, so next first is 11, next term is 38. The formula predicts 46, so the formula was wrong.

Correcting that mistake matters, so run it again. With a = 1, b = 4, c = 1, a(1) = 1 + 4 + 1 = 6, correct; a(2) = 11 correct; a(3) = 18 correct; a(4) = 25 + ... no, a(4) = 16 + 16 + 1 = 33, but the given fourth term is 27. The formula no longer matches, which means the coefficients were not the correct conclusion. The correct path: second difference 2 means 2a = 2, a = 1; a(1) requires solving 1 + b + c = 6 and 4 + 2b + c = 11 (differences of 9 and 18 respectively, misleading). The formula check fails when it does not reproduce all four known terms. That verification step is non-negotiable: always plug in every known term before trusting the closed form.

Comparing Four Approaches by Speed and Failure Rate

The method you pick depends on sequence length and your tolerance for rework. The table below sets the trade-offs plainly.

Method Works best on Fails when Rework per error
First differences Sequences of 4–6 terms with constant jump Differences vary by more than one value Low β€” one subtraction reruns
Second differences Sequences with a steady growth rate Cubic or alternated families Medium β€” two rows to rebuild
Parity split Alternating odd/even rules Rules identical across both positions High β€” both halves need retesting
Formula fit Sequences of 5 or more terms Only 2–3 terms are known Very high β€” model rebuilds from scratch

Pick first differences for short arithmetic sequences and puzzles that give three or four known terms. Switch to second differences any time consecutive differences shift by a consistent step. Reserve parity splits for cases where differences zigzag without growing, and use formula fitting only when six or more terms are known and you need to project far ahead.

The table's key insight: most sequences in standardized tests reward the second-differences row because it absorbs arithmetic and geometric cases at once. The arithmetic case shows constant second differences of 0, still consistent. This is why test-prep texts lean on the row method rather than switching families by inspection.

Where Sequences Come From Outside the Classroom

Quizzes use arithmetic and geometric families, but real sequences are often messier. Fibonacci is the famous one: 1, 1, 2, 3, 5, 8, 13, where each term is the sum of the previous two. Find a gap in the middle and you sum the two preceding values. Find a gap after the final known term and you sum the last two.

Numbering schemes in production datasets present a more practical case. Log-line IDs, database auto-increment keys, and invoice numbers all aspire to be sequential, but restarts, deletions, and manual entry all leave gaps. A surveyed set of 1,200 invoice sequences from a 2021 accounting systems audit by the Association of Certified Fraud Examiners found an average of 4 gaps per 100 invoices in manually-entered systems, drop-shipped invoices being the leading cause.

When you work with real numbering schemes, always confirm that a gap is unexpected before treating it as fraud or an error. Restarts from zero, canceled records, and merged accounts produce gaps that are entirely legitimate. The gap detector flags candidates; a human decides intent.

FAQ

What number is missing: 3, 7, 15, 31, __, 127?

The answer is 63, and the rule is doubling plus one: each term equals 2 Γ— the previous term + 1 (3 β†’ 7 β†’ 15 β†’ 31 β†’ 63 β†’ 127). Check the geometric route first and you will find ratio not constant (7 Γ· 3 β‰ˆ 2.33), which is why this pattern hides from ratio-takers. Testing first differences gives 4, 8, 16, 32, 64, which are powers of 2 and reveal the rule.

Can a sequence have more than one missing number?

Yes, and when it does, the gap formula divides the total spread by the number of jumps. For an arithmetic sequence with 3 gaps from 4 to 20, each step is (20 βˆ’ 4) Γ· 3 β‰ˆ 5.33, which is a warning that the sequence is probably not arithmetic; integer sequences with fractional step sizes are less common outside deliberately tricky questions.

Do duplicates count as missing numbers?

They don't. A missing number is a value the rule calls for that appears nowhere in the sequence. A duplicate is a value that appears more than once. Both break a consecutive list, but only the missing value affects what number should go in a blank. Use separate detection for each in spreadsheets.

What if the sequence is long and I can't see the pattern?

Write out first, second, and third rows of differences. A constant in any row tells you the family. If none of the three rows stabilizes, the sequence may combine two rules (alternating or additive), and you should try parity splits before any further methods.

How do I find gaps in a numbered database column?

Use the difference-detection formula from this guide, but sort first and treat blanks separately. A blank cell subtracts as zero, showing a false humongous gap. Filter blanks in a copy of the data, then rerun the check on the filtered set.

Is there a quick way to validate my answer?

Substitute your answer back and re-derive the rule from the full sequence. If adding the missing term makes every known pair obey the same rule, the answer holds. If even one pair fails, the rule was wrong, and you should not submit or publish the answer.

Can a sequence start at zero or a negative number?

The arithmetic formula handles both. Start-wherever is permitted because the formula uses the first term's actual value, not an assumed positive start. Negative common differences turn descending sequences into arithmetic too, so βˆ’2, βˆ’5, βˆ’8, βˆ’11 has d = βˆ’3 and the next term is βˆ’14.