Almanac Academy · Foundation Phase

The Source Code Math, Logic & Probability

Master the ultimate language of reality. This course teaches numbers as the adjectives of the universe, geometry as nature's engineering, algorithms as recipes for thinking, and probability as the science of luck — so children can navigate a complex world.

Free to play. Earn Potential as you master units, then mint your collectible certificate.

Beginner level Track 1 of 14 20,000 XP Available Ages 5+
Where this fits: part of the Foundation Phase (Tracks 1–7), where learners build the core operating system of the mind. The Source Code is the very first track — the foundation beneath everything else — and is followed by The Building Blocks (Physics & Chemistry).
20
Units
80
Lessons
160
Practice Questions
4
Chapters
20,000
XP Available

What is this course?

The Source Code is the first course in the Almanac Academy journey: a complete introduction to math, logic and probability for young learners. It reframes numbers as a language, not a test — the language the universe uses to write itself. Every unit pairs a memorable story with the real mathematics behind it.

🔢

Numbers as a language

Numbers are not scary symbols on a test — they are adjectives that describe the universe. Children learn to read and speak the universal language of quantity.

🌿

Geometry in nature

Why are soap bubbles round and honeycombs hexagonal? Children discover that nature is a mathematician — circles, triangles, spirals and hexagons are engineering solutions.

🧩

Logic & algorithms

Computers are just fast, obedient assistants. Children learn to think in recipes, conditionals and debugging — the core skills of computational thinking.

🎲

The science of luck

Coins have no memory. Children explore probability, the bell curve and even chaos theory — learning when the world is predictable and when it isn't.

📐

Measurement & scale

From the king's foot to the platinum bar, children learn how humans agree on reality — and why scale changes everything, from atoms to galaxies.

🤖

AI-guided mastery

An adaptive AI tutor narrates each unit, asks questions, and recycles wrong answers with spaced repetition until concepts truly stick.

The curriculum, unit by unit

20 units · 80 lessons. Click any unit to expand its full description and the lessons it contains, or jump straight to a chapter.

Chapter 1

Number Sense: The Language of Reality

The journey begins with the idea that numbers are adjectives — words that describe the world. Children meet the number line, learn to weave numbers into grids, and discover why zero and base-ten are among humanity's greatest inventions.

5 units · 20 lessons · 40 practice questions
What your child will be able to do
  • See numbers as adjectives that describe quantity, not scary symbols on a test
  • Understand the number line as the home of all numbers — and how magnitude relates to the cost of energy
  • Explain why zero is one of the most dangerous and powerful numbers ever invented
  • Understand why we count to ten — a biological accident, not a cosmic law — and how other bases work
Unit 1 Adjectives of the Universe Core8 questions

Welcome. There is no rush here. We are stepping into the library of the universe to learn its language. In this unit, we will not look at numbers as scary symbols on a test. We will look at them as simple words—adjectives—that describe reality. Just as 'blue' tells you the color of the sky, a number simply tells you 'how much' of the sky there is. We are going to learn how to see the quantity hidden inside the world.

The Universal Language
Imagine if we met a lifeform from a distant star. We could not speak to them in English, or Spanish, or Mandarin. Our words for 'water' or 'love' would be just noise to them. But if we showed them a triangle, they would know it has three sides. If we showed them a pile of rocks, they would agree on the count. Math is the only language that the entire universe shares. It is the language nature uses to organize itself.
Numbers are Adjectives
Your brain is a categorization machine. It loves to label things. When you see a lemon, your brain says: 'Yellow. Sour. Round.' These are adjectives. But there is one more label your brain adds: 'One.' If you hold two lemons, the 'yellowness' does not change, but the quantity does. Think of numbers not as nouns, but as adjectives. You cannot hold a 'three' in your hand, just as you cannot hold a 'sour.' You can only hold three lemons. The number is just the description.
The Map is Not the Territory
Humans love to draw. We invented ink marks to record our thoughts. But we must never confuse the drawing with the reality. If I write the word 'CAT' on paper, the paper does not grow fur. It is just a symbol. In the same way, the number '5' is just a scribble we agreed on. The Romans wrote it as 'V'. The meaning—the actual quantity of five things—is real and exists in nature. The symbol is just the map we drew to find it.
A Tool for Survival
Why did our ancestors invent counting? It was not for homework. It was to stay alive. Your brain needs to predict the future to keep you safe. It needs to know: Do we have enough wood for the fire? Is that one wolf or six wolves? Counting is a survival tool. It turns the chaos of the world into data that your brain can process. We count so that we do not have to guess.
Unit 2 The Number Line: Roots and Branches Core8 questions

If numbers are adjectives, where do they live? In school, you might have seen them floating in space. But in nature, they have a home. We call it the Number Line. But do not think of it as a flat line on a page. Think of it as a tree. This unit explores how numbers grow in two directions—up into the sky and down into the earth—and why 'negative' does not mean 'nothing'.

The Tree of Mathematics
Imagine a great tree. The ground, where you stand, is Zero. It is the anchor. The trunk and branches reach up into the sky—these are the positive numbers (+1, +2, +3). The higher you go, the bigger the view. But the tree also has roots. They dig deep into the earth. These are the negative numbers (-1, -2, -3). The roots are not 'fake' or 'less' than the branches. They are just growing in the other direction. Nature needs both to survive.
Walking the Line
Let us turn the tree sideways to make a map. Zero is your home base. If you walk five steps to the right (East), you are at +5. If you walk five steps to the left (West), you are at -5. This helps us understand specific locations. If you owe a friend five dollars, you are not at zero; you are five steps into the 'debt' direction. You have to walk back five steps just to get to zero.
Magnitude: The Cost of Energy
Here is a secret your brain already understands: Distance costs energy. If you walk 5 miles East (+5), you get tired. If you walk 5 miles West (-5), you get just as tired. The direction is different, but the effort is the same. In math, we call this 'Absolute Value' or Magnitude. It ignores the direction (positive or negative) and just asks: 'How big is the step?' The roots are just as long as the branches.
Temperature and Depth
We feel the number line on our skin. When the air is hot, the thermometer climbs up the tree (Positive). When winter comes, it drops below zero into the roots (Negative). A fish swimming 10 meters below the surface is at -10. It is a real place. The universe is not just what we can see above the ground; it is everything below it, too.
Unit 3 The Grid: Weaving Numbers Core8 questions

Welcome back to the library. So far, we have counted things one by one. But the universe is impatient; it likes to do things in big groups. If you look at a honeycomb or a brick wall, you don't see one brick at a time. You see a pattern. In this unit, we learn to stop counting steps and start seeing shapes. We call this Multiplication, but really, it is just a way to weave numbers into a grid.

From Lines to Rectangles
Addition is a line: you walk one step, then another. It is slow. Multiplication is a shape: it is a rectangle. Imagine you are tiling a floor. If you have 3 rows and 4 tiles in each row, you don't need to count them one by one (1, 2, 3...). You just look at the 'grid' and see 12 instantly. Your brain loves this. It stops adding and starts measuring area. Multiplication is just fast-forwarding through addition.
The Commutative Law (The Rotate Rule)
Here is a magic trick of physics. Take that floor of 3 rows and 4 tiles. Now, turn your head sideways. Now it looks like 4 rows of 3 tiles. Did the number of tiles change? No. It is still 12. In math, we say 3x4 is the same as 4x3. We call this the 'Commutative Property,' but you can just call it 'The Rotate Rule.' Nature does not care which side is up; the amount of stuff stays the same.
Patterns are Predictions
Memorizing times tables can feel boring, like a parrot repeating words. But let us look closer. The 5s always end in 0 or 5. The 9s play a game where the digits always add up to 9 (18, 27, 36). These are not rules a teacher invented; they are secret rhythms hidden in the numbers themselves. When you learn these patterns, you are not memorizing; you are predicting the future.
Scaling the World
Why does this matter? Because everything in the universe scales. If you bake one loaf of bread, you need 2 cups of flour. If you need to feed a village of 100 people, you cannot add 2+2+2+2... forever. You need to scale up instantly. Multiplication is the tool engineers and chefs use to resize the world without breaking the recipe.
Unit 4 The Zero Hero 8 questions

For thousands of years, humans counted without Zero. It seems obvious to us now, but to the ancients, writing down 'nothing' felt ridiculous. Why write a symbol for a sheep that isn't there? In this unit, we explore how the invention of Zero changed our species. It is not just an empty hole; it is the most powerful tool in mathematics. It is the placeholder that lets us reach the stars.

The Missing Number
Imagine trying to do math with Roman Numerals. Try adding 'XIV' to 'LXX'. It is a nightmare. The Romans had no Zero. If they had nothing, they just left a space. But spaces are messy. Is that a '1' and a '1', or is it '101'? Without a symbol for emptiness, math was stuck. We could build pyramids, but we could not build computers. We needed a way to mark the empty spot.
The Empty Basket
Think of Zero as an empty basket. It doesn't have apples in it, but the basket itself is real. In our number system, Zero acts as a 'seat saver.' In the number '10', the Zero tells the '1' to move over into the tens column. Without the Zero, the '1' would slide back down to being just a single unit. Zero is the muscle that holds other numbers in their proper place.
The Portal to the Underworld
Remember the tree of numbers? Zero is the ground. Before Zero was invented, negative numbers made no sense. You cannot have 'minus three' apples. But once we marked Zero on the map, suddenly we could go below it. Zero opened the door to the roots—to debt, to freezing temperatures, and to algebra. It is the portal between the positive sky and the negative earth.
The Dangerous Number
Zero is powerful, but it is also dangerous. If you try to divide by Zero, mathematics breaks. Imagine trying to share a pizza with zero people. How much pizza does each person get? The question makes no sense. The answer explodes. In physics, this looks like a Black Hole—a point where gravity is infinite and the rules stop working. Zero is the edge of reality.
Unit 5 Alien Math: Why We Count to Ten 8 questions

Have you ever wondered why we count up to ten before starting over? Why isn't 'one-zero' (10) the number after six? The answer is not in the stars; it is at the end of your arms. We use a 'Base-10' system simply because humans have ten fingers. But what if we met an alien with only eight fingers? In this unit, we step outside our own biology to see that our way of counting is just one of many.

The Biological Accident
Look at your hands. You see ten fingers. This is why our entire civilization counts in 'Decimal' (from the Latin 'decem', meaning ten). When early humans counted, they ran out of fingers at ten, so they made a mark and started over. It is a biological accident. If we were born with three fingers on each hand, our math would look completely different. We do not count in tens because it is the 'best' way; we do it because it is the human way.
The Octopus Problem (Base-8)
Imagine an intelligent Octopus. It has eight tentacles. It counts: 1, 2, 3, 4, 5, 6, 7... but it has no finger for 8. So, when it reaches eight, it writes '10'. In its language, '10' does not mean ten; it means 'one set of tentacles'. This is called Base-8 or Octal. In this alien world, the digits '8' and '9' do not exist. They would think our number system is incredibly weird.
The Two-Fingered Alien
You actually meet an alien every day. It is your computer. Computers do not have ten fingers; they have tiny switches that are either ON or OFF. They are 'two-fingered' creatures. This is why they count in Binary (Base-2). They only know '0' and '1'. When a computer counts to two, it has to write '10'. It is the same math, just written in a language of switches instead of fingers.
The Quantity Never Changes
Here is the most important truth: The universe does not care how you write it down. If you hold a pile of eight rocks, a human calls it '8'. The Octopus writes it as '10'. The Computer writes it as '1000'. But the pile of rocks does not change. The quantity is real; the number system is just the translation. We are all describing the same reality, just with different alphabets.
Chapter 2

Geometry & Measurement: Nature's Engineering

The world is not made of random scribbles — it is built from shapes that solve problems. Children explore circles, triangles and hexagons in nature, learn how humans agree on measurement, and train their spatial reasoning.

5 units · 20 lessons · 40 practice questions
What your child will be able to do
  • Explain why nature chooses specific shapes — circles for storage, triangles for strength — and what pi really is
  • Understand how standardized measurement ended the chaos of the king's foot, and how scale spans atoms to galaxies
  • Train spatial reasoning: rotating objects in the mind's eye, reading bird's-eye views, and packing like Tetris
  • Describe how nature builds skyscrapers and bridges without blueprints — and how humans copy them (biomimicry)
Unit 1 The Geometry of Nature: Circles & Triangles Core8 questions

Look around you. The world is not made of random scribbles. It is built from specific shapes that solve specific problems. Nature does not do 'decoration'; it does 'function.' When nature wants to protect something, it builds a circle. When humans want to build something strong, we build triangles. In this unit, we learn that geometry is not just drawing on paper—it is the engineering blueprint of reality.

The Circle: Nature's Storage Tank
Have you ever seen a square bubble? No. Bubbles are always round. This is because the circle (or sphere) is the most efficient shape in the universe. It holds the most amount of 'stuff' inside with the least amount of 'wall' outside. Nature is lazy; it wants to save energy. Whether it is a planet, a raindrop, or a cell in your body, nature chooses the circle to pack the most volume into the smallest skin.
The Triangle: The Strongest Shape
Now, look at a bridge or a crane. You will not see circles; you will see triangles. Why? Because if you push on the side of a square, it collapses into a diamond shape. It is weak. But if you push on the top of a triangle, the force spreads down the sides to the base. It cannot bend. It is rigid. When humans want to fight gravity and build things that last, we trust the triangle.
Pi: The Secret Code
Circles are beautiful, but they are hard to measure with a straight ruler. If you measure the distance across a circle (diameter) and walk around the outside (circumference), you will always find the same secret number hiding there. The walk around is roughly 3.14 times longer than the walk across. We call this Pi. It is a constant rule of the universe, locked inside every circle from a coin to a star.
Curves vs. Corners
You can tell who built something just by looking at its shape. Nature loves curves—rivers wind, trees twist, eggs round off. Humans love straight lines and corners—bricks, roads, boxes. We build with straight lines because they are easy to stack and pack. Nature builds with curves because they flow and grow. Geometry tells you the author of the object.
Unit 2 The Ruler: Agreement on Reality Core8 questions

Imagine if you bought a rope, and the seller measured it using the length of his own arm. Now imagine the next seller has a shorter arm. You would feel cheated. This was the state of the world for thousands of years. In this unit, we explore how humans invented 'Standardization.' We agreed to use the same ruler so that we could build cities and trade fairly. A ruler is not just a stick; it is a treaty of trust.

The King's Foot
Long ago, we measured the world with our bodies. A 'foot' was literally a human foot. A 'cubit' was the distance from your elbow to your finger. But whose foot? Whose elbow? Often, it was the King's. But when the King died, the measurements changed. This was chaos. We realized that to build big things, we needed a measure that did not die and did not change.
The Platinum Bar
To solve the chaos, humans did something beautiful: we agreed. We created the Metric System. We made a bar of metal, put it in a vault in France, and said, 'This is exactly one meter.' It does not matter how big the King's feet are anymore. We now trust the object, not the person. This allowed scientists in Japan to share blueprints with engineers in Brazil without any confusion.
Scale: The Powers of Ten
A ruler tells you size, but the universe is too big for a single ruler. We need to 'zoom.' This is called Scale. In your mind, you can zoom in to see a red blood cell (micro-scale) or zoom out to see the Milky Way (macro-scale). The laws of physics change depending on your zoom level. Gravity rules the stars, but sticky electric forces rule the atoms. Knowing 'how big' something is tells you how it behaves.
The Map of Size
Think of numbers as a ladder of zeros. One meter (1) is a human. Ten meters (10) is a house. A thousand meters (1,000) is a town. A billion meters (1,000,000,000) is a planet. Each zero is a giant leap in scale. We call these 'Orders of Magnitude.' It is the address system of the universe, telling us if an object is a speck of dust or a galaxy.
Unit 3 Spatial Reasoning: The Simulator Core8 questions

Close your eyes. Picture an apple. Now, in your mind, spin the apple so you can see the bottom. Did you do it? Congratulations. You just used the most advanced virtual reality machine in the universe: your own brain. This skill is called Spatial Reasoning. It is the ability to move, rotate, and build objects in your mind without touching them. It is how we invent the future before it happens.

The Mind's Eye
Your eyes see what is in front of you, but your 'Mind's Eye' sees what could be there. This is a survival tool. Early humans needed to look at a funny-shaped rock and imagine: 'If I chip this side, will it make a spear?' They had to rotate the rock in their imagination before they struck it. If you find mental rotation hard, take a breath. Your brain is burning a lot of sugar to run this 3D simulation.
The Bird's Eye View
Spatial reasoning also lets us float. When you look at a map, you are pretending to be a bird looking down at the earth. You have to translate the flat lines on the paper into the real 3D streets around you. This mental jump—from 2D paper to 3D world—is a workout for your parietal lobe. It is the skill that keeps us from getting lost.
Tetris and Packing
Have you ever packed a car trunk for a trip? You look at a suitcase, then look at the empty space, and your brain says, 'It will fit if I turn it sideways.' You are playing a game of mental Tetris. You are testing reality without moving a muscle. This is engineering. Before we build bridges or skyscrapers, we build them in the empty air of our minds to see if they will stand.
The Blueprint of Everything
Everything humans have ever made—from a spoon to the International Space Station—started as a rotating ghost in someone's mind. We are the only animal that can do this. We dream up a shape, rotate it to check for flaws, and then use our hands to pull it into the physical world. Spatial reasoning is the bridge between the dream and the reality.
Unit 4 The Ant and the Rubber Band 8 questions

This is a story about the impossible. Imagine a tiny ant standing on a rubber band. The ant wants to walk to the other side. But as the ant walks, the rubber band stretches. It gets longer and longer, faster than the ant can walk. It seems like a nightmare—a finish line that runs away from you. But in this unit, math reveals a shocking secret: if the ant never stops, it will actually make it.

The Nightmare Race
Picture the scene. The rubber band is 1 meter long. The ant walks 1 centimeter per second. But every second, someone stretches the band by 1 meter. The road ahead is growing faster than the ant's legs can move. Our intuition screams: 'Give up! You are moving backwards!' But our intuition is wrong. Math sees something our fear does not.
The Power of a Percentage
Here is the trick. Every step the ant takes is a tiny percentage of the total length. Even though the band stretches, that tiny percentage of progress is 'locked in.' It stretches with the band. The math says that if you add up enough tiny percentages—even if they are getting smaller and smaller—they will eventually add up to 100%. It might take billions of years, but the math guarantees the ant will finish.
The Expanding Universe
Why does this matter? because we live on the rubber band. Our universe is expanding. The galaxies are moving away from us, stretching the space in between. Light is the ant. It is trying to travel across a universe that is growing larger every second. Just like the ant, the light from distant stars struggles against the stretch. Understanding this paradox helps astronomers measure the cosmos.
Zeno's Warning
There is another famous puzzle called Zeno's Paradox. It says: 'To cross a room, you must go halfway. Then half of the remaining way. Then half again.' Since you can divide space forever, Zeno thought motion was impossible. But the Ant proves Zeno wrong. We do cross the room. We do reach the end. Infinity is not a wall; it is just a very long path.
Unit 5 Nature's Architects 8 questions

Long before humans stacked the first stone, nature was building skyscrapers, bridges, and cities. But nature does not have cranes or blueprints. It has something better: evolution. Every shape you see in the wild—from the cell of a bee to the web of a spider—is the result of millions of years of testing. In this unit, we look at the master builders of the animal kingdom to see how they solve the hardest problems in engineering.

The Hexagon: The Perfect Warehouse
Bees have a problem. They need to store honey (fuel) and babies (larvae) in a safe place. They build with wax, but wax is expensive to make—it costs the bees energy. If they built circular cells, there would be wasted gaps in between. If they built squares, the walls would be weak. So, they chose the Hexagon (a six-sided shape). It uses the least amount of wax to hold the most amount of honey, and the walls fit together perfectly with zero gaps. It is a mathematical masterpiece.
The Spider: The Tensile Engineer
Have you ever watched a spider build a web? It does not panic. It follows a perfect internal recipe. First, it builds the anchor lines—the strong cables that hold the frame. Then, it spirals inward. A spiderweb is made of silk, which is stronger than steel of the same thickness. It is designed to stretch, not break. When a fly hits it, the web absorbs the energy like a trampoline. The spider understands physics better than most humans.
The Spiral: Growing Without Changing
Look at a snail shell or a nautilus. As the animal inside grows, it needs a bigger house. But it cannot tear down the old house and start over. So, nature invented the Spiral. A spiral allows a shape to grow larger forever without changing its proportions. It is the shape of 'unfolding.' You see this same shape in pinecones, sunflowers, and even hurricanes. It is nature's way of scaling up.
Biomimicry: Stealing from the Best
Humans are smart, but we are new here. Nature has been engineering for billions of years. When we want to solve a hard problem, the smart move is to ask: 'How did nature do it?' This is called Biomimicry. We invented Velcro after looking at burrs sticking to dog fur. We designed stronger airplanes by studying bird bones. We are not just inventing; we are copying the homework of the universe.
Chapter 3

Algorithms & Logic: Recipes for Thinking

Computers are incredibly fast, obedient and literal-minded — they know nothing until we teach them. Children learn to think like programmers: writing recipes, following conditionals, and debugging when things break.

5 units · 20 lessons · 40 practice questions
What your child will be able to do
  • Define an algorithm as a recipe for solving a problem, and understand why order matters
  • Explain if-this-then-that logic as the law of the domino — and trace the invisible chain of causes
  • Apply the golden rule of debugging: change one thing at a time, isolate variables, and talk to the rubber duck
  • Understand functions as saved work, and meet Ada Lovelace — the first programmer
Unit 1 The Recipe: Algorithms Core8 questions

We often think computers are smart. They are not. They are actually incredibly fast, obedient, and literal-minded assistants. They do not 'know' how to do anything until we tell them exactly how. In this unit, we learn the language of instruction. We call it an Algorithm, but that is just a fancy word for a 'Recipe.' Whether you are baking a cake or launching a rocket, the secret is in the steps.

The Spider's Strategy
Have you ever watched a spider build a web? It does not rush. It does not panic. It follows a set of perfect, tiny instructions inside its mind: Spin. Connect. Tighten. Repeat. In mathematics, we call this an Algorithm. It is a fancy word, but it just means 'a recipe for solving a problem'. The spider does not need to guess; it just follows the recipe to build a masterpiece.
The Sandwich Problem
Computers think like spiders. They cannot guess. If you tell a computer, 'Make a sandwich,' it is lost. It does not know what a sandwich is. But if you say, 'Take the bread, put the peanut butter on the knife, spread it on the bread...' then they are geniuses. Writing code is simply the art of breaking a big idea down into steps so small that even a rock could follow them.
Order Matters
In an algorithm, the sequence is everything. Imagine baking a cake. You cannot frost the cake before you bake it. You cannot bake it before you mix the eggs. If you swap the steps, you do not get a cake; you get a mess. Logic requires a timeline. Before you solve a problem, you must organize the events in the single, correct line of time.
Teaching Rocks to Think
A computer chip is essentially a rock (silicon) that we have tricked into doing math. It has no brain, no soul, and no intuition. It only has the list of instructions you give it. When you learn to write algorithms, you are learning a superpower: you are learning how to teach rocks to think. You become the architect of the machine's mind.
Unit 2 If-This-Then-That: The Domino Effect Core8 questions

The universe is not random; it is a giant row of dominoes falling forever. Nothing happens by magic. Everything happens because something else pushed it first. In this unit, we learn the law of 'Causality.' It is the simple rule that says: 'If this happens, then that will follow.' Understanding this chain reaction is the secret to predicting the future and fixing the past.

The Law of the Domino
Imagine a single domino standing on a table. If you do nothing, it stands forever. But if you push it (Cause), it falls (Effect). This is the code of reality: 'If Push, Then Fall.' Every event in your life is an effect caused by something before it. You are not just watching the movie of your life; you are pushing the dominoes that make the next scene happen.
The Fork in the Road
Sometimes, the track splits. Imagine a train coming to a switch. If the switch is Left, the train goes to the city. If the switch is Right, it goes to the mountains. Computers use this logic all the time. It is called a 'Conditional.' It is the machine asking a question: 'If the password is correct, then open the door. Else, keep it locked.' Without this 'If,' computers would be useless calculators.
The Invisible Chain
Causes hold hands. If you skip breakfast (Cause 1), then your blood sugar drops (Effect 1). If your blood sugar drops (Cause 2), then you get grumpy (Effect 2). If you get grumpy (Cause 3), then you snap at your friend (Effect 3). Suddenly, a missing piece of toast has ruined a friendship. Smart people learn to spot these 'Causal Chains' early, before the last domino falls.
The Detective (Debugging)
When something breaks, how do we fix it? We walk the chain backward. If the lights go out, we ask: 'Why?' Maybe the bulb burned out. 'Why?' Maybe the voltage spiked. 'Why?' This is called Debugging. It is what doctors, mechanics, and detectives do. They do not look at the broken pieces and cry; they retrace the steps to find the very first domino that fell.
Unit 3 Debugging: The Art of Repair Core8 questions

In the last unit, we learned that every effect has a cause. But what happens when the effect is 'broken'? What happens when the car won't start or the cake tastes salty? You have to become a detective. You have to find the one broken link in the chain. In computer science, we call this 'Debugging.' It is not about being smart; it is about being methodical. It is the art of fixing the world, one variable at a time.

The First Bug
Why do we call glitches 'bugs'? In 1947, a pioneer named Grace Hopper was working on an early computer. It stopped working. When she opened it up, she found a literal moth trapped in a relay. She taped it into the logbook. Since then, 'debugging' means removing the problems. Remember this: A bug is not a failure of your intelligence. It is just a moth in the machine. It is a physical thing you can find and fix.
The Golden Rule: Change One Thing
Imagine your lamp doesn't turn on. You change the bulb, AND you plug it into a different outlet. It works! But wait—was it the bulb or the outlet? You don't know. You learned nothing. This is bad science. The Golden Rule of debugging is: Change only one thing at a time. If you change two variables, you are guessing. If you change one, you are learning.
Isolating Variables
Scientists call this 'Isolating Variables.' If you want to know why a plant is dying, do not change the water, the soil, and the sunlight all at once. Change just the water. Wait. Watch. If nothing happens, put the water back and change the soil. It is slow. It requires patience. But it is the only way to know the truth. You are isolating the culprit.
Rubber Ducking
Programmers have a funny trick. When they are stuck, they talk to a rubber duck on their desk. They explain the code line by line to the duck. 'Here is where I open the file... here is where I save it...' Often, just by saying it out loud, they hear the mistake. 'Oh! I forgot to save it!' Your brain works differently when it explains things. You don't need a teacher to find the bug; sometimes you just need a duck.
Unit 4 The Sandwich Robot 8 questions

Imagine you have a robot butler. It is strong and fast, but it has zero common sense. If you tell it to 'make a sandwich,' it might stare at you forever. If you tell it to 'put peanut butter on the bread,' it might place the entire glass jar on top of the loaf. In this unit, we play a game called 'The Sandwich Robot.' It teaches us the most important rule of coding: computers do exactly what you say, not what you mean.

The Curse of Being Literal
Humans rely on context. If I say 'open the door,' you know I mean 'turn the knob and pull.' A robot does not know what a knob is. If you write code, you must be explicit. You must say: 'Reach out hand. Grasp knob. Rotate 90 degrees clockwise. Pull backward.' This is the curse of the programmer. You cannot assume the machine knows anything. You have to explain reality from scratch.
The Bug in the Sandwich
Let us try to write the code. Step 1: 'Spread peanut butter on bread.' The robot takes the knife, scoops peanut butter, and wipes it on the crust. You scream, 'No! On the face of the slice!' This is a bug. The robot followed your instruction, but your instruction was vague. Debugging is the process of fixing your words so the robot cannot possibly misunderstand them.
Functions: Saving Your Work
Explaining how to unscrew a jar lid every single morning is boring. Programmers are lazy (in a smart way). Once we write the perfect instructions for 'Open Jar,' we save it. We give it a name, like 'open_jar()'. Now, we don't have to explain the twisting motion ever again. We just use the shortcut. We call these saved instructions 'Functions.' They are the building blocks of complex software.
Hidden Complexity
This game reveals a secret about your own brain. You make sandwiches without thinking. But underneath, your brain is running thousands of micro-algorithms: measuring distance, estimating force, sensing texture. We think AI is smart, but a toddler making a sandwich is actually performing a miracle of computation that the most expensive robots still struggle to copy.
Unit 5 Ada's Note: The First Programmer 8 questions

History often focuses on the people who built the machines—the hardware. But a machine without instructions is just a pile of metal. The person who breathed life into the computer was not an engineer, but a young woman living in Victorian England. Her name was Ada Lovelace. She looked at a clunky calculator and saw a future where machines could compose music. In this unit, we meet the mother of software.

The Poet and the Math
Ada was the daughter of the famous poet Lord Byron, a man of wild emotion. Her mother, terrified Ada would inherit his 'madness,' forced her to study strict mathematics. It didn't suppress her imagination; it focused it. Ada realized that math was not just dry numbers; it was a language that could describe the beauty of the universe. She called her approach 'Poetical Science'—logic fueled by imagination.
The Analytical Engine
Ada became friends with Charles Babbage, who designed a giant mechanical brain called the 'Analytical Engine.' Babbage saw it as a super-calculator for math tables. Ada saw something more. She realized that if the machine could manipulate numbers, and if numbers could represent other things (like musical notes or letters), then the machine could do anything. Babbage built the body; Ada dreamt up the soul.
Note G
In 1843, Ada translated an article about the engine. She added her own notes at the end. These notes were three times longer than the original paper. Deep inside, in 'Note G,' she wrote a step-by-step method for the machine to calculate Bernoulli numbers. This was not just math; it was a recipe for the machine to act on its own. It is recognized today as the very first computer program.
The Loom of the Mind
Ada famously said, 'The Analytical Engine weaves algebraic patterns just as the Jacquard loom weaves flowers and leaves.' She connected the technology of weaving (using punch cards to make patterns) with the future of computing. She predicted that one day, computers would not just count; they would create. It took humanity 100 years to catch up to her vision.
Chapter 4

Probability & Chaos: The Science of Luck

The universe is built on surprises. Children master the mathematics of uncertainty — from coins and dice to the bell curve — and then discover the wild frontier where prediction fails: chaos theory.

5 units · 20 lessons · 40 practice questions
What your child will be able to do
  • Understand probability as the space between impossible and certain — and why the coin has no memory
  • Explain the law of large numbers and the bell curve: how order emerges from a million unpredictable individuals
  • Recognize the Gambler's Fallacy and the Monty Hall problem — where intuition and math disagree
  • Describe the butterfly effect and why some systems, like the weather, resist perfect prediction
Unit 1 The Dice Roll: Controlling Luck Core8 questions

Humans hate not knowing. When we hear a rustle in the bushes, we want to know if it is the wind or a tiger. We want certainty. But the universe is built on surprises. In this unit, we learn to make peace with the unknown. We call this 'Probability.' It is the math of measuring luck. We cannot predict exactly what will happen next, but we can measure how likely it is.

The Coin Has No Memory
Here is a trap your brain falls into. If you flip a coin and it lands on 'Heads' ten times in a row, you feel sure the next one must be 'Tails.' You are wrong. The coin does not have a brain. It does not remember the last ten flips. The odds are still 50/50. This is called the 'Gambler's Fallacy.' The universe does not owe you a balance; every moment is new.
Probability: The Space Between
In math, '0' means Impossible (a square circle). '1' means Certain (the sun will rise). Probability is the messy world in between those two numbers. If the weatherman says there is a 30% chance of rain, he is not guessing. He is saying: 'In 3 out of 10 universes that look like today, it rains.' It is a way of putting a number on our doubt.
The Law of Large Numbers
If you roll one die, it is chaos. Anything can happen. But if you roll a million dice, a pattern emerges. The average will always settle near 3.5. This is the 'Law of Large Numbers.' Individuals are unpredictable, but crowds are obedient. Insurance companies use this law to make money. They don't know if you will crash your car, but they know exactly how many people in your city will crash theirs.
Randomness is Necessary
We fear randomness, but we need it. If the world were perfectly predictable, nothing new would ever happen. Evolution needs randomness (mutation) to create new species. Your immune system shuffles its defenses randomly to fight new viruses. Randomness is not just noise; it is the engine of creativity. It is how nature tries new ideas.
Unit 2 The Bell Curve: The Shape of the Crowd Core8 questions

If you look at one person, they are a mystery. They might be tall or short, genius or average. You cannot predict them. But if you look at a million people, the mystery vanishes. A perfect shape emerges. We call it the Bell Curve (or Normal Distribution). It is the law that says: 'Most things are average, and extreme things are rare.' In this unit, we learn how nature uses this curve to balance the world.

Order from Chaos
Imagine measuring the height of every adult in a city. If you plot the dots on a wall, you will see a shape form. A huge mountain of dots in the middle (average height) and thin tails on the sides (very short or very tall people). No one organized this. No one told the people how to grow. Yet, in every city, for every species, this same bell shape appears. It is the fingerprint of randomness.
Regression to the Mean
Nature loves the middle. A man named Francis Galton noticed something strange: very tall parents usually have children who are slightly shorter than them. Very short parents usually have children who are slightly taller. Nature is always pulling us back to the average. We call this 'Regression to the Mean.' If nature didn't do this, eventually we would have humans as tall as giraffes and as small as ants.
The Six-Sigma Rule
How rare is 'rare'? Mathematicians use a ruler called 'Standard Deviation' (or Sigma) to measure how weird something is. Being within 1 Sigma of the average is normal (like being 5'9" or 5'10"). Being 3 Sigmas away is rare (like being 6'8"). Being 6 Sigmas away is almost impossible. This is how factories work: if a part is 'Six Sigma' perfect, it means a mistake happens only once in a billion tries.
Predicting the Unpredictable
This curve is a crystal ball. A clothing store does not know who will walk in the door tomorrow. But they know exactly how many 'Medium' shirts to buy, and how few 'XXL' or 'XS' shirts to buy. They trust the Bell Curve. They know that even though customers change, the shape of the human population stays the same. We can predict the crowd even if we cannot predict the person.
Unit 3 Chaos Theory: The Butterfly Effect Core8 questions

We like to think the world is like a clock—logical, steady, and predictable. But the real world is messy. Sometimes, a tiny push creates a giant crash. A single spark burns down a forest. This is called 'Chaos Theory' or Non-Linearity. In this unit, we learn why we can predict the orbit of the moon for a thousand years, but we cannot predict the weather for next week.

The Butterfly Effect
In 1961, a meteorologist named Edward Lorenz found a ghost in his computer. He changed a number by a tiny amount—less than the weight of a snowflake—and the entire weather prediction changed from sunny to stormy. He realized that in complex systems, tiny starts lead to huge endings. He famously asked: 'Does the flap of a butterfly's wings in Brazil set off a tornado in Texas?' The answer, unsettlingly, is 'Maybe.'
Linear vs. Non-Linear
Most things are Linear: if you push a box twice as hard, it moves twice as far. This is safe math. But Chaos is Non-Linear. In a non-linear system, you add one straw to a camel's back, and nothing happens. You add one more, and the camel's back breaks. The output does not match the input. This is why traffic jams appear out of nowhere and why stock markets crash overnight.
Fractals: The Shape of Chaos
Chaos is not just noise; it creates art. Look at a fern, a coastline, or a lightning bolt. They are rough and jagged. If you zoom in on a fern leaf, the tiny leaf looks exactly like the big leaf. This is called a Fractal. It is a shape that repeats itself infinitely at every scale. Nature uses fractals to pack huge surface areas (like your lungs) into small spaces.
The Edge of Chaos
Life is a surfer. If the ocean is too calm (Order), the surfer sinks. If the ocean is too stormy (Chaos), the surfer crashes. Life exists on the 'Edge of Chaos.' Your heartbeat is regular, but not perfectly regular—that would mean heart disease. A healthy heart has a little bit of chaos. We need enough order to survive, but enough chaos to adapt and grow.
Unit 4 The Monty Hall Problem 8 questions

Your brain is a survival machine, not a calculator. Sometimes, it tells you things that feel 'right' but are mathematically wrong. There is no better example of this than the Monty Hall Problem. It is a simple game show puzzle that tricked the smartest people in the world. In this unit, we play the game to learn a hard lesson: when new information appears, you must be willing to change your mind.

The Game Show Setup
Imagine three doors. Behind one is a shiny new car. Behind the other two are goats. You pick Door #1. You have a 1 in 3 chance of winning. But wait! The host, Monty Hall, knows what is behind the doors. He opens Door #3 to reveal a goat. Now, only Door #1 (your pick) and Door #2 remain. Monty asks: 'Do you want to switch to Door #2?' What does your gut say?
The Illusion of 50/50
Your gut screams: 'Stay! It doesn't matter! There are two doors left, so it is a 50/50 coin flip.' Your gut is wrong. This is where human intuition fails. When you first picked Door #1, you had a 33% chance of winning, which means there was a 66% chance the car was elsewhere (Door #2 or #3). Monty didn't change the odds; he just gave you a clue about that 'elsewhere' group.
Why You Must Switch
Think of it this way: The car is almost certainly (66%) in the group you didn't pick. Monty just helped you by eliminating the 'dud' from that group. If you stay, you keep your tiny 33% chance. If you switch, you grab the entire 66% chance that was hiding behind the other doors. By switching, you double your luck. It feels like betrayal, but it is logic.
The Million Door Example
If you are still confused, imagine 1,000 doors. You pick Door #1. You have a 1-in-1000 chance. The car is almost certainly behind the other 999 doors. Now Monty opens 998 of those other doors, showing goats, leaving only Door #777 closed. Would you stay with your first lucky guess? Or would you switch to the door that survived the elimination? You would switch. The math is the same for three doors.
Unit 5 Weather Forecasting: The Chaos Engine 8 questions

We check the weather app every morning. It feels like magic, but it is actually the hardest math problem in the world. The atmosphere is a chaotic, swirling ocean of air, and predicting its future requires supercomputers the size of buildings. In this unit, we learn how meteorologists use 'The Grid' to see the future, and why, no matter how smart we get, nature always keeps a few secrets.

The Ocean of Air
First, you must change how you see the sky. It is not empty. It is a fluid, just like water. We live at the bottom of an ocean of air. This fluid is constantly moving, heated by the sun and spun by the Earth's rotation. To predict the weather, scientists have to calculate how every single drop of this 'air water' will flow. It is like trying to predict the shape of every wave in the sea.
The Grid
How do computers handle this huge ocean? They cut it into pieces. Imagine a 3D grid covering the Earth, like a checkerboard stacked into the sky. Inside each box, the computer measures temperature, pressure, and humidity. Then, it uses physics to guess how the air in one box will push the air in the next box. The smaller the boxes, the better the forecast, but the harder the math.
The 10-Day Wall
We can predict the sunrise for a million years, but we cannot predict the rain for two weeks. Why? Because of the Butterfly Effect (Chaos Theory). Tiny errors in our data today—like missing a gust of wind in Ohio—grow bigger every hour. By day 10, the errors are so huge that the prediction becomes useless. This is the hard limit of human knowledge. Chaos always wins in the end.
What '30% Chance of Rain' Means
When the app says '30% Chance of Rain,' it does not mean it will rain for 30% of the day. It means the computer ran the simulation 100 times, and in 30 of those timelines, it rained. It is a peek into the multiverse. The weatherman is telling you: 'We looked at the possible futures, and in most of them, you stayed dry.' It is about probability, not certainty.

How mastery is tested

Every unit ends with practice questions in three formats (80 multiple choice · 40 fill in the blank · 40 order the words). Wrong answers are automatically recycled in later sessions until the learner proves mastery. Try one from each chapter — click an answer to test yourself:

Multiple ChoiceAdjectives of the Universe · Chapter 1

Which of these is considered the 'universal language'?

Fill in the BlankThe Geometry of Nature: Circles & Triangles · Chapter 2

To hold the most volume with the least surface area, nature uses a ____.

Multiple ChoiceThe Recipe: Algorithms · Chapter 3

What is the simple definition of an 'Algorithm'?

Fill in the BlankThe Dice Roll: Controlling Luck · Chapter 4

The belief that a coin or die remembers past results is called the Gambler's ____.

Download as PDF

Print-ready study guide for parents & teachers — the full curriculum unit by unit, chapter outcomes, sample questions and key vocabulary.

Direct Line

Message the founders

We are a tiny, independent team and we read every single message. Whether you have a feature idea, found a bug, or just want to talk about the future of learning, we're here. No support bots.

You must accept the Terms and Conditions

The Source Code (Math, Logic & Probability) | Almanac Academy