Cracking the Code: Algebra Expressions
1 of 4Maths
Cracking the Code: Algebra Expressions
For grown-ups
Companion summary
Have you ever noticed how a single formula can describe millions of different situations at once? Programmers use algebraic expressions every day to write code that responds to any input a user types. The expression 5n means "five times whatever n is" — swap in any number and it instantly works. When you feel confident, try building your own expression for something you measure in real life, like pocket money or steps walked.
A Mystery Number Machine
A Mystery Number Machine
Imagine a machine. You drop a number in. The machine triples it and adds 4, then spits the result out. If you drop in 2, you get 10. If you drop in 5, you get 19. If you drop in 0, you get 4. Here is the puzzle: can you write a single rule — using a letter for any number you drop in — that describes what this machine always does? That one rule is an algebraic expression, and by the end of this lesson you will write it yourself.
💭 Think about this
If the machine doubles a number and subtracts 3, what comes out when you drop in 6?
Watch this
What Is Algebra?