Maths IA · Algebra and functions · topic 8 of 97
Bitcoin's 21 million cap: a geometric series in code · IB Maths IA idea: guide, sample graph and step-by-step plan
endless halving, finite totalEvery four years or so, the reward for adding a block to Bitcoin's chain is cut in half. That sounds like it should never end, yet the total can never pass 21 million. Your job is to explain why an endless process has a finite total.
- ✓ you have heard the number 21 million and want to know where it comes from
- ✓ you like a sum you can check both by formula and by code
- ✓ you want to explain a piece of crypto without promoting it
The big idea
The protocol pays a reward for each block: 50 coins at first, halved after every 210,000 blocks. The coins issued in each stretch form a geometric sequence, so the total is a geometric series with a limit. Write it, sum it and get the famous 21 million. Then look closer. The software counts in whole units of 0.00000001 coin and rounds down at each halving, so the true total is slightly below 21 million. From the same schedule you can find the issuance per year, the annual inflation rate, and the date by which 99% of coins exist. The marks come from checking the formula against an exact count and from saying what the model leaves out, such as block times that are not exactly ten minutes.
Make it yours: pick one twist
Copying a classic won't show your choices. Pick one of these (or invent your own) and your IA becomes yours.
Swipe for more twists →
Find the total with the infinite geometric formula, then with a loop that rounds the reward down to whole units.
→ You get an ideal total and an exact one. The gap between them is a small, precise number that you must explain.Solve for the number of halvings after which a chosen share of the final supply exists.
→ An exponential inequality solved with logarithms. Then turn halvings into calendar years and say how reliable that conversion is.Divide each year's new coins by the coins already existing, and plot it against time.
→ A ratio that falls in steps. Use a log scale to see that it falls faster than the reward does.Halve every 100,000 blocks, or cut the reward by 25% each time, and find the new limit.
→ The common ratio and the block interval change, so you test whether the limit depends on the ratio only or on both.Compare the ten-minute model with real halving dates from a public block explorer.
→ The model meets data. Measure the error in years and explain what causes it.Approximate the staircase of rewards with an exponential function of time and test the fit.
→ A continuous model for a discrete rule. Discuss what you gain, and where the approximation is poor.Your Maths IA research question: run the check
which rule? which number?Write your own question first. Then make sure it ticks every box:
- Names the rule you model: the starting reward, the halving interval and the unit of account.
- Names the quantity you find: the total supply, a date, or an inflation rate.
- Says what the formula is tested against: an exact count in code or published block data.
- Goes beyond quoting 21 million: there is a series to sum and a gap or an error to explain.
- States what you leave out: lost coins, fees, block-time variation and any future change to the rules.
The model
One reward per block, halved after each fixed stretch of blocks. Each bar is one stretch. Draw the bars for your own rule and label the areas.
How your Maths IA could be laid out
The usual order for a topic like this, what each part needs to show, and roughly how much of your 12 to 20 pages it takes. The words are all yours.
What the protocol rule is, where you found it, and what you predict the total will be before summing.
Every symbol defined. The coins issued in each stretch of blocks as a geometric sequence, with its first term and common ratio.
The infinite series summed, then the exact total from code with rounding, and the gap between them.
Cumulative supply by year, and the number of halvings needed to reach a chosen percentage.
The inflation rate as a function of time, its graph on a log scale and what it says about the long run.
Your schedule beside real halving dates. A number for the error and a reason for it.
Back to your aim: the limit, the gap, the dates and the rate, with numbers.
Lost coins, changing block times, fees and rule changes. Say which assumption matters most and what the model cannot tell you.
Where every rule, date and figure came from.
What your Maths IA graph could look like
mark the limit!Made-up values to show the form of a strong graph, not the answer: coins in existence against years since the first block, with the limit marked. Yours will use your own rule. example only
- The model curve and your exact values on one set of axes, so the match or the gap is visible.
- Axis labels give units: years, and coins in millions.
- Draw the limit as a dashed line and say what it is.
- A smooth curve is an approximation. The real schedule is a staircase of straight sections.
- Another graph to consider: annual inflation rate on a log scale.
The maths in action
worked through, not sketched!The graph above was a sketch with made-up numbers. This figure works the idea through from the model itself, so you can see what a finished figure looks like. The source line under it says where every number comes from.
How fast does the supply fill up?
After each halving, what share of the final total has been issued? Compute it for your own rule and explain the pattern in the gaps.
Your game plan
Tick steps off as you go. We'll remember on this device.
0 of 10 done
- Read and predictRead the rule in the original paper and in the protocol documentation. Before any sums, guess whether the total is finite and roughly how big.
- Define the sequenceWrite the coins issued in each stretch of blocks. State the first term, the common ratio and why it is geometric.
- Sum the seriesUse the infinite sum formula for the ideal total. State the condition on the ratio that makes the series converge.
- Trial run (1 lesson)Code a loop that adds up the first ten stretches and compare it with your formula. Fix any mismatch now: off-by-one errors, units, rounding.
- Count in whole unitsRound each reward down to the smallest unit, sum exactly and find the gap from 21 million. Explain where it comes from.
- Find the datesSolve for the halving after which 99% of coins exist. Convert blocks to years and compare with the real halving dates.
- Inflation rateCompute new coins per year divided by coins existing, and graph it with a log axis. Describe the shape in words.
- Go further, with a reasonChange the rule (a different ratio or interval) or fit a smooth curve to the staircase. HL: prove your limit claims rather than only checking them.
- Reflect as you goAfter every result, write one line on what it means and what it assumes. These lines become your evaluation.
- Cut, check, then sendCheck every graph has labelled axes with units, every symbol is defined once and the conclusion answers your aim. Then send your teacher one draft.
The maths you'll use
- Geometric sequence – Write the coins issued in stretch as and identify the first term and common ratio.
- Infinite geometric series – Sum the series to get and state the condition for convergence.
- Exponential inequality and logarithms – Solve for the number of halvings .
- Rounding and exactness – Round each reward down to a whole unit, sum exactly in code and bound the gap from the ideal limit.
- Rates on a log scale – Compute annual issuance divided by supply and plot it on a logarithmic axis to see the steps.
Key equations
Syllabus links
- 1.3Geometric sequences and series
- 1.5Exponents and an introduction to logarithms
- 1.7Rational exponents and laws of logarithms
- 1.8Infinite geometric series
- 2.9Exponential and logarithmic functions
- 1.3Geometric sequences and series
- 1.6Approximation, bounds and percentage error
- 1.11Infinite geometric seriesHL
- 2.10Log scales, linearising data, log-log and semi-log graphsHL
Read up first
Data and sources to start from
The protocol rule from the original paper and documentation, plus real halving dates and block heights from a public block explorer, compared with the model.
References to cite
- Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system.
- Antonopoulos, A. M. (2017). Mastering Bitcoin: Programming the open blockchain (2nd ed.). O'Reilly Media.
Cite what you actually use, in your own format, and say where each number came from.
Traps to avoid in this Maths IA
state why it converges- Saying the series 'adds up to 21 million' without stating the first term, the ratio and why the sum converges.
- Mixing up the number of blocks in a stretch with the number of years it takes.
- Treating ten minutes per block as exact. Real halving dates drift from it, and you should measure by how much.
- Ignoring the whole-unit rounding and then being unable to explain why a code total is slightly below 21 million.
- Plotting the inflation rate on a linear axis, where everything after the first few years is a flat line.
- Writing as if the aim is to judge whether Bitcoin is a good investment. The task is the mathematics of the rule.
More Maths IA ideas like this
How many confirmations are safe? The double-spend race●●●
The birthday problem: how safe are hash codes?●●○
The rule of 72: how good is it, and why 72?●●○
Is Moore's law over? Fitting exponential growth●●○
This guide shows how a topic like this is usually approached. It is not an IA. Your question, choices, data, analysis and words must be your own: change something, tell your teacher where the idea came from, and follow your school's rules on outside help.