5 min read
Muggles and Base Two

One day, my friend Matt Eschbach asked me, “So you can be 1/2 muggle-born, or 1/4 muggle-born. But can you be any proportion? What about 1/3?” The question turns out to have a really elegant answer, but let’s work our way up to it. (Note: In order to simplify the math, we will not consider squibs as part of the analysis. I hope those readers will not feel too marginalized by this decision.)

A black circle representing a wizard parent and a blue one representing a muggle give way to a half-blue half-black circel representing a 1/2 muggle childA parentage resulting in a 1/4 muggle child

A possible parentage resulting in 1/2 and 1/4 muggles.

It is straightforward to come up with a lineage resulting in someone who is 1/2 muggle, such as Seamus Finnegan, or even 1/4 muggle. In fact, any fraction of the form

a / 2n
, where a is an integer has some lineage that produces it. To see why, consider 13/16.

A lineage resulting in a wizard who is 13/16 muggle
A lineage resulting in a wizard who is 13/16 muggle

This isn’t the only way a person could end up 13/16 muggle. For example, the parentage below would also work. However, it’s not as neat. For one thing, it has more people in the picture. Also, it is repetitive: the grandparent who is 1/4 muggle is the child of two great-grandparents, each 1/4 muggle.

A more complicated lineage, also resulting in a wizard who is 13/16 muggle

A more complicated lineage, also resulting in a wizard who is 13/16 muggle

Since two parents who are each 1/4 muggle will have children who are 1/4 muggle, this can go on and on— farther back than even Bathilda Bagshot can keep track! So let’s stick to the minimal lineage.

A lineage so complicated not even Bathilda Bagshot can keep track.

A lineage so complicated not even Bathilda Bagshot can keep track.

But what (Ron might ask) does any of this have to do with base 2? Well, it’s not much more than the fact that we each have two parents. And each of those parents has two parents. And… so on. At level n, the number of ancestors you have is 2n. So if you’re looking for a person who is 13/16 muggle-born, you need someone for whom 13 of their 16 great-great-grandparents were muggles.

Maybe it’s easier to look at it from another perspective. Let’s go back up the family tree far enough that everyone on that level is either 100% wizard, or 100% muggle. Consider Miracle Max, a wizard at this level on the family tree. Max can see into the future, and wants to calculate what his contribution to his descendants’ wizardliness will be.

Great-great-great grandad Miracle Max and his wife Valerie.

Great-great-great grandad Miracle Max and his wife Valerie.

His children will derive half of the wizardliness from him (and half from his wife Valerie). Those children will pass along half again of that half to their own kids. Miracle Max’s descendants will get 1/2, 1/4, 1/8, … of his wizardliness. Those numbers are all of the form

1 / 2n
.

This is true for each ancestor at this level: they contribute

1 / 2n
to your wizardliness. Your total wizardliness is the sum of all these contributions. If we add up a bunch of
1 / 2n
terms, the result will have the form
a / 2n
, or ‘some number over a power of two’.

A Refresher on Fractional Binary

We’re used to writing numbers in decimal (base 10), where 0.abc would mean

a / 10
+
b / 102
+
c / 103
. In binary (base 2), 0.abc would mean
a / 2
+
b / 22
+
c / 23
. So we could write 5/8 as
1 / 2
+
0 / 4
+
1 / 8
= 0.1012. (The little subscript 2 is saying ‘this number is written in base 2’)

There are some numbers that are hard to write down in decimal form (eg, 1/3 = 0.3333…). We need a dot-dot-dot in order to fully capture the number. Binary also has numbers like this: 2/5 = 0.0110011001100…2. In fact, the only numbers that you can write without a dot-dot-dot in binary are

a / 2n
.

An Easier Way

If you were paying close attention, you may have noticed that I didn’t include 16 great-great-grandparents in the first genealogy tree. To save myself the drawing, I used the trick of writing 13/16 in binary:

13 / 16
= 0.11012 The binary form tells us that in order to be 13/16 muggle-born, we need
1 / 2
+
1 / 4
+
0 / 8
+
1 / 16
of the ancestry to be of muggle origin. In other words, we need 1 parent, 1 additional grandparent, no additional great-grandparents, and 1 additional great-great-grandparent.

The binary representation of 13/16 corresponds to a simple way to draw the
family tree of someone who is 13/16

The binary representation of 13/16 corresponds to a simple way to draw the family tree of someone who is 13/16

So what about 1/3?

We’ll use the trick we’ve developed and look at the binary representation of the fraction. To write 1/3 in binary, we need to keep writing 1s and 0s forever. Specifically,

1 / 3
= 0.01010101010…2 =
0 / 2
+
1 / 4
+
0 / 8
+
1 / 16
+ …

A wizard who was 1/3 muggle-born would need to have an infinite ancestry!