Special Case Laws of Exponents for Powers of Two

In my article “Composing Powers of Two Using The Laws of Exponents” I showed how to combine powers of two using the standard laws of exponents. There are two other rules I use when combining powers of two; I call them the add duplicate power of two rule and the subtract half power of two rule. These are nonstandard rules, applying only to powers of two. Although these are special cases of the existing multiplication and division rules, I’ve found value in recognizing them in addition and subtraction form. I’ll state these rules and show examples of their usage.

Add Duplicate Power of Two Rule

Here’s the rule I call the add duplicate power of two rule:

2a + 2a = 2a+1

(2a+1 is the power of two following 2a; that is, double 2a.)

For example, 24 + 24 = 25, and 2-2 + 2-2 = 2-1.

You don’t normally think of the laws of exponents as applying across addition, but in this case they do. Adding something to itself is the same as doubling it, which is multiplying it by 2 — a power of two. This makes this rule a form of the product of powers of two rule in disguise. Here’s the math:

2a + 2a = 2a · 2 = 2a · 21 = 2a+1

Example of Usage

One example where this comes up is when summing binary numbers represented as powers of two. For example, to add 101 and 1100, you add 22 + 20 to 23 + 22, getting 23 + 22 + 22 + 20. You want to combine those to eliminate duplicate powers of two. We know by the add duplicate power of two rule that 22 + 22 = 23. Now with two copies of 23, we have 23 + 23 = 24. This gives the final sum 24 + 20 = 10001 in binary.

Subtract Half Power of Two Rule

Here’s the rule I call the subtract half power of two rule:

2a – 2a-1 = 2a-1

(2a-1 is the power of two preceding 2a; that is, half of 2a.)

For example, 24 – 23 = 23, and 2-2 – 2-3 = 2-3.

Again, you don’t normally think of the laws of exponents as applying across subtraction, but it works here. Subtracting half of something is the same as halving it, which is multiplying by 1/2 or dividing by 2 — both powers of two. This makes this rule a form of the product of powers of two rule or quotient of powers of two rule (respectively) in disguise. Here’s the math:

2a – 2a-1 = 2a – 2a/2 = (2·2a – 2a)/2 = (2a(2-1))/2 = 2a/2 = 2a-1 .

That was the long way of doing it, because I wanted to show the halving explicitly; here’s a more direct way:

2a – 2a-1 = 2a-1(2-1) = 2a-1

Example of Usage

I used this rule when trying to solve this infinite geometric series:

1/2 − 1/4 + 1/8 − 1/16 + 1/32 – 1/64 + …

Wikipedia solves it by first factoring out 1/2:

1/2 − 1/4 + 1/8 − 1/16 + 1/32 – 1/64 + …

= 1/2 (1 – 1/2 + 1/4 – 1/8 + …)

\mbox{\footnotesize{\displaystyle = \frac{1}{2}\sum_{i=0}^\infty \left(-\frac{1}{2}\right)^{i}}}

It then uses this formula to replace the summation:

\mbox{\footnotesize{\displaystyle\sum_{i=0}^\infty r^{i} = \frac{1}{1-r}}}

Using r = -1/2, the series simplifies to

\mbox{\footnotesize{\displaystyle \frac{1}{2} \cdot \frac{1}{\frac{3}{2}} = 1/3}}}

I solved it differently. Instead of factoring out 1/2, I started by replacing adjacent terms of the series using the subtract half power of two rule:

1/2 − 1/4 = 1/4, 1/8 − 1/16 = 1/16, 1/32 – 1/64 = 1/64, …

That left me with the series 1/4 + 1/16 + 1/64 + 1/256 + 1/1024, which is written

\mbox{\footnotesize{\displaystyle \sum_{i=1}^\infty \left(\frac{1}{4}\right)^{i}}}

I then used this formula to replace the summation:

\mbox{\footnotesize{\displaystyle\sum_{i=1}^\infty r^{i} = \frac{r}{1-r}}}}

With r = 1/4, this simplifies to

\mbox{\footnotesize{\displaystyle \frac{\frac{1}{4}}{\frac{3}{4}} = 1/3}}}

I like my proof because it uses a positive r, which is easier to conceptualize; you can think of the series as a binary number (0.01).

Dingbat

Copyright © 2008-2024 Exploring Binary

Privacy policy

Powered by WordPress

css.php