=1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is...

66
This story begins from powers of 2; starting from 2 0 = 1, 2 1 = 2, 2 2 = 4, 2 3 = 8, 2 4 = 16, 2 5 = 32, 2 6 = 64, 2 7 = 128, 2 8 = 256, 2 9 = 512, and 2 10 = 1024 are the first few values. The other day I received a chain letter by email that asked me to mail a copy to 10 people whom I know. I patiently explained to the sender (whom, I did not know), that exponential growth is a dangerous thing. within 10 generations (and that send button is easy to hit) everyone in the world would have received a copy of the letter. The standard myth is the emperor of China asking the inventor of chess the price of the game: one grain of rice for the first square, 2 for the second, 4 for the third, and double the number of grains of rice for each successive squares. By the end of the board the emperor owed 1+2+4+ ··· +2 64 =2 65 - 1 grains of rice. Now for a ball-park estimate of this number, remember that 2 10 = 1024. So 10 3 = 1000 < 2 10 . Therefore, 2 65 =2 5 · (2 10 ) 6 > 32 × (10 3 ) 6 = 32 × 10 18 Or 2 65 - 1 > 32, 000, 000, 000, 000, 000, 000. The national debt of the US (the largest negative number of which I can conceive) has absolute value $8, 684, 638, 939, 701.35 > $10 13 . The price of a 25 pound bag of rice is about $10. My very rough estimate is that a pound of rice has about 5, 000 grains. So the price per grain of rice is something like $1/12,500. So the emperor of china owes the chess board inventor about $3 × 10 15 . Chess is an ancient game, and I presume that there should be interest charged on the debt to the inventor. This too, is an exponential growth problem, but I digress. There are many things besides grains of rice distributed that powers of 2 count, and I want to describe some of them. Certainly the whole numbers from 0 to 2 n - 1 can be counted by 2 n . And we have a nice way of doing this. We express a number in its binary notation. Here is a table to help you understand this idea: n Binary representation 0 (000) 2 1 (001) 2 2 (010) 2 3 (011) 2 4 (100) 2 5 (101) 2 6 (110) 2 7 (111) 2 The digits in 6, for example. indicate that 6 = 1 × 2 2 +1 × 2 1 +0 × 2 0 . And I have padded the initial portions with 0 so that we can see that these powers don’t appear. The binary representation of a number indicates which powers of 2 to include to express the number. So the number 6 requires a 4 and a 2. The number 100 requires one 64, one 32, and one 4. So 100 = (1100100) 2 . 1

Transcript of =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is...

Page 1: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

This story begins from powers of 2; starting from 20 = 1, 21 = 2, 22 = 4, 23 = 8, 24 = 16,25 = 32, 26 = 64, 27 = 128, 28 = 256, 29 = 512, and 210 = 1024 are the first few values.

The other day I received a chain letter by email that asked me to mail a copy to 10 peoplewhom I know. I patiently explained to the sender (whom, I did not know), that exponential growthis a dangerous thing. within 10 generations (and that send button is easy to hit) everyone in theworld would have received a copy of the letter.

The standard myth is the emperor of China asking the inventor of chess the price of the game:one grain of rice for the first square, 2 for the second, 4 for the third, and double the number ofgrains of rice for each successive squares. By the end of the board the emperor owed

1 + 2 + 4 + · · ·+ 264 = 265 − 1

grains of rice. Now for a ball-park estimate of this number, remember that 210 = 1024. So103 = 1000 < 210. Therefore,

265 = 25 · (210)6 > 32 × (103)6 = 32× 1018

Or265 − 1 > 32, 000, 000, 000, 000, 000, 000.

The national debt of the US (the largest negative number of which I can conceive) has absolutevalue $8, 684, 638, 939, 701.35 > $1013. The price of a 25 pound bag of rice is about $10. My veryrough estimate is that a pound of rice has about 5, 000 grains. So the price per grain of rice issomething like $1/12,500. So the emperor of china owes the chess board inventor about $3× 1015.

Chess is an ancient game, and I presume that there should be interest charged on the debt to theinventor. This too, is an exponential growth problem, but I digress.

There are many things besides grains of rice distributed that powers of 2 count, and I want todescribe some of them. Certainly the whole numbers from 0 to 2n − 1 can be counted by 2n. Andwe have a nice way of doing this. We express a number in its binary notation. Here is a table tohelp you understand this idea:

n Binary representation

0 (000)21 (001)22 (010)23 (011)24 (100)25 (101)26 (110)27 (111)2

The digits in 6, for example. indicate that 6 = 1 × 22 + 1 × 21 + 0 × 20. And I have padded theinitial portions with 0 so that we can see that these powers don’t appear.

The binary representation of a number indicates which powers of 2 to include to express thenumber. So the number 6 requires a 4 and a 2. The number 100 requires one 64, one 32, and one4. So 100 = (1100100)2.

1

Page 2: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

Another thing that is counted by powers of 2 is the collection of subsets of a set of fixed size. Forexample, if we have a 2 element set, {1, 2}, then we have the following four subsets, {} — the setwith no elements, {1}, {2} — the two sets with one element each, and the two element set {1, 2}.For a three element set, we have the following eight subsets, {} {1}, {2}, {3}, {1, 2},{1, 3},{2, 3}, and {1, 2, 3}. Of course a set with one element has two subsets: {} {1}. And the emptyset has only one subset.

We can group subsets according to their size, and we have the following sequences,(1) (1, 1),(1, 2, 1), (1, 3, 3, 1), (1, 4, 6, 4, 1). Those in the know, recognize this as the sequence of terms inPascal’s triangle. Traditionally, we think of Pascal’s triangle as determining the coeficients of ofxiyj in the expansion of (x + y)n.

Now why does two to a power count the number of subsets of a given set? Why can thesesubsets be arranged in size according to Pascal’s triangle? Is there a convenient way of arrangingthese subsets — to keep track of them and relationships among them?

To answer these questions, I will begin in the most simple cases, and I will gradually build upthe dimension ladder.

2

Page 3: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

3

Page 4: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

4

Page 5: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

5

Page 6: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

6

Page 7: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

7

Page 8: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

8

Page 9: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

9

Page 10: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

10

Page 11: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

11

Page 12: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

12

Page 13: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

13

Page 14: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

0000

1000

0100

0001

0010

0110

1100

1010

1110

0101

10111001

0011

0111

1011

1111

14

Page 15: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

15

Page 16: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

16

Page 17: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

of the hypercube whose edge length is

of each type.

C 2006, J. Scott Carter, all rights reserved.

Pascal’s triangle tells us how many terms

edge lengths are some choice of As and Bs.

12451235

1234 1345

2345

each the hyper-volume of a hypercube whose

The binary sequence summands areA+B.

The Binomial Theorem

of the sum, A+B, as the sum over

expresses the nth power

all binary sequences of As and Bs.

The power of the sum is the hyper-volume

BBAB

BABB

AABB

ABBB

..

.

31 2 3 4 5 . . . n

345

245235

234

145135

134

125

124

123

11

12

1

1

BBBB

1

n-1 n 3n

35

34

2n

25

24

23

1n

15

14

13

12

.

1

1

.

3

.

.

.

.

.

.

.

1

5

10

10

5

1

1

4

6

4

AAA ABA

ABBAAB

BBA

BAA BBA

BBB

(A+B)(A+B)(A+B)

(A+B)(A+B)

BBAB

BAAA

(A+B)(A+B)(A+B)(A+B)

AAAA

BAAA

AABA

ABAA

AAAB

BAAB

BBAA

BABA

ABBA

BBBA

BAAB

17

Page 18: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

18

Page 19: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

19

Page 20: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

20

Page 21: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

21

Page 22: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

22

Page 23: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

23

Page 24: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

Analogous phenomena occur in all finally to (1,y,z,w). Meanwhile, the resulting four copies of the 4-dimensional pyramid fill the 4-cube. Thus the original cone occupies a quarter of the space in the 4-cube. Therefore, the sum of the volumes of cubes whose edge lengths range from 0 to 1 is 1/4.

object. On the right, four triangular faces form a tetrahedron. Either of these figures can be rotated and reflected within the 4-cube, so that four copies of the green objects tile the blue tetrahedron. Under such rigid motions, the cubical base of the red pyramid rotates to (x,y,1,w) then to (x,1,z,w) and

The blue tetrahedron on the right is the smallest convex set that contains the four points (1,1,1,0), (1,1,0,1), (1,0,1,1), and (0,1,1,1). The red cone intersects these two tetrahedra in green solids. On the left is an object that has 2-dimensional faces which are kites and which together form a cube-like

Inside a 4-dimensional cube, the 3-dimensional top cell (x,y,z,1) is coned to the origin, (0,0,0,0). The red pyramids indicate the six pyramidal cells on the various 2-dimensional faces of that cube. The blue tetrahedron on the left is the smallest convex set that contains the unit coordinate vectors. The

dimensions.

24

Page 25: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

25

Page 26: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

26

Page 27: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

27

Page 28: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

28

Page 29: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

29

Page 30: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

30

Page 31: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

31

Page 32: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

32

Page 33: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

33

Page 34: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

34

Page 35: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

123

35

Page 36: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

36

Page 37: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

37

Page 38: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

38

Page 39: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

39

Page 40: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

40

Page 41: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

41

Page 42: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

42

Page 43: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

43

Page 44: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

44

Page 45: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

45

Page 46: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

46

Page 47: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

47

Page 48: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

48

Page 49: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

49

Page 50: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

50

Page 51: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

51

Page 52: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

52

Page 53: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

53

Page 54: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

54

Page 55: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

55

Page 56: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

56

Page 57: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

57

Page 58: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

58

Page 59: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

59

Page 60: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

60

Page 61: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

61

Page 62: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

62

Page 63: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

63

Page 64: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

64

Page 65: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

65

Page 66: =1,2 =2,2 =4,2 =8,2 = 16, - University of South Alabama · 2008-07-24 · Another thing that is counted by powers of 2 is the collectionof subsets of a set of fixed size. For example,

66