Nepedia
Back to Discover
Fluent Reader
🔢

Binary logarithm

math Maturity 7-9 Next article →

Imagine you have a large pile of blocks. You want to know how many times you can split that pile into two equal groups. Each time you split them, the pile gets smaller. The binary logarithm is the math tool that tells you how many of these splits are needed to reach a single block. For example, if you start with eight blocks, you split them into four, then two, then one. That took three splits, so the binary logarithm of eight is three. It is the opposite of doubling a number.

Binary logarithm plot with ticks
Binary logarithm plot with ticks

This math idea works by looking at powers of two. A power of two is what you get when you multiply two by itself many times. The binary logarithm simply finds the position of a number in that growing list. If you have a number like sixteen, the binary logarithm tells you that sixteen is the fourth power of two. Scientists and engineers use this to find the length of messages in computer code. It also helps them figure out how many bits are needed to store information.

SixteenPlayerSingleEliminationTournamentBracket
SixteenPlayerSingleEliminationTournamentBracket

People have explored these patterns for a very long time. Long ago, a mathematician named Virasena used a similar idea in the 8th century. He looked at how many times a number could be divided by two. Later, in 1544, Michael Stifel published a table of these numbers in his book Arithmetica Integra. A very famous mathematician named Leonhard Euler used these ideas in 1739. He applied them to music to study how different notes sound together.

Leonhard Euler - Jakob Emanuel Handmann (Kunstmuseum Basel)
Leonhard Euler - Jakob Emanuel Handmann (Kunstmuseum Basel)

Today, we see this math in many different places. In computer science, it helps with something called a binary search. This is a fast way for a computer to find an item in a sorted list by splitting the choices in half each time. It is also used in biology to study genes. Scientists use microarrays to see how genes behave in living things. They use the binary logarithm to compare how much a gene's activity has changed.

Mouse cdna microarray
Mouse cdna microarray

You can even find this math in a sports tournament. If you have a sixteen-player tournament where players leave after one loss, the number of rounds is the binary logarithm of sixteen. This is because the number of players is cut in half every round. You can also find it in the way we shuffle a deck of cards. Math shows that shuffling a deck seven times makes it very random. It is amazing how one simple idea about splitting things helps us understand so much.

Binary search into array - example
Binary search into array - example
423 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (6)
File:Binary logarithm plot with ticks.svg
Binary logarithm plot with ticks.svg
File:Leonhard Euler - Jakob Emanuel Handmann (Kunstmuseum Basel).jpg
Leonhard Euler - Jakob Emanuel Handmann...
File:SixteenPlayerSingleEliminationTournamentBracket.svg
SixteenPlayerSingleEliminationTournamentBr...
File:Binary search into array - example.svg
Binary search into array - example.svg
File:Mouse cdna microarray.jpg
Mouse cdna microarray.jpg
File:HP-35 Red Dot.jpg
HP-35 Red Dot.jpg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.