Mathematical Induction. Part Three

Size: px
Start display at page:

Download "Mathematical Induction. Part Three"

Transcription

1 Mathematical Induction Part Three

2 Announcements Problem Set Two due Friday, October 4 at 2:5PM (just before class) Stop by office hours with questions! us at cs03@cs.stanford.edu with questions! Problem session tonight in at 7:00PM. Hope to see you there! Francisco's office hours moved to Hewlett 20 (here!), 3:30 5:30 today.

3 Strong Induction

4 The Unstacking Game You are given a stack of n boxes. Each turn, you take a stack of at least one box, then split it into two smaller stacks. You then earn points equal to the product of the height of the two stacks. Once every stack has height one, the game is over. Adapted from material by Prof. Dieter van Melkebeek of the University of Wisconsin

5 The Unstacking Game: An Example Score: 0

6 The Unstacking Game: An Example Score: 0

7 The Unstacking Game: An Example Score: 0

8 The Unstacking Game: An Example Score: = 6

9 The Unstacking Game: An Example Score: = 6

10 The Unstacking Game: An Example Score: 6

11 The Unstacking Game: An Example Score: 6

12 The Unstacking Game: An Example Score: 6

13 The Unstacking Game: An Example Score: 6 =

14 The Unstacking Game: An Example Score: 7 =

15 The Unstacking Game: An Example Score: 7

16 The Unstacking Game: An Example Score: 7

17 The Unstacking Game: An Example Score: 7

18 The Unstacking Game: An Example Score: 7 2 = 2

19 The Unstacking Game: An Example Score: 9 2 = 2

20 The Unstacking Game: An Example Score: 9

21 The Unstacking Game: An Example Score: 9

22 The Unstacking Game: An Example Score: 9

23 The Unstacking Game: An Example Score: 9 =

24 The Unstacking Game: An Example Score: 0 =

25 The Unstacking Game: An Example Score: 0

26 Score: 0 Another Example

27 Score: 0 Another Example

28 Score: 0 Another Example

29 Another Example Score: 4 4 = 4

30 Score: 4 Another Example

31 Score: 4 Another Example

32 Score: 4 Another Example

33 Another Example Score: 4 3 = 3

34 Another Example Score: 7 3 = 3

35 Score: 7 Another Example

36 Score: 7 Another Example

37 Score: 7 Another Example

38 Another Example Score: 7 2 = 2

39 Another Example Score: 9 2 = 2

40 Score: 9 Another Example

41 Score: 9 Another Example

42 Score: 9 Another Example

43 Another Example Score: 9 =

44 Another Example Score: 0 =

45 Score: 0 Another Example

46 What is the optimal strategy for the unstacking game?

47 Try it! Play the unstacking game with 6 boxes in the stack. How many points can you get?

48 An Observation It looks like every strategy seems to get fifteen points. The two strategies we adopted for the game with five boxes both ended up giving ten points. Do you get the same number of points, regardless of your strategy, if you start with the same number of boxes?

49

50 0 Points

51 0 Points

52 = 0 Points

53 0 Points Point =

54 0 Points Point =

55 0 Points Point = 2 = 2 =

56 0 Points Point = 3 Points 2 = 2 =

57 0 Points Point = 3 Points 2 = 2 =

58 0 Points Point = 3 Points 2 = 2 = 3 = 3 2 = 2 =

59 0 Points Point = 3 Points 2 = 2 = 3 = 3 2 = 2 =

60 0 Points Point = 3 Points 2 = 2 = 3 = 3 2 = 2 = 2 2 = 4 = =

61 0 Points Point = 3 Points 2 = 2 = 6 Points 3 = 3 2 = 2 = 2 2 = 4 = =

62 Unstacking Game Scores n =, score is 0 n = 2, score is n = 3, score is 3 n = 4, score is 6 n = 5, score is 0 n = 6, score is 5

63 Unstacking Game Scores n =, score is 0 n = 2, score is = n = 3, score is 3 = + 2 n = 4, score is 6 = n = 5, score is 0 = n = 6, score is 5 =

64 Unstacking Game Scores n =, score is 0 n = 2, score is = n = 3, score is 3 = + 2 n = 4, score is 6 = n = 5, score is 0 = n = 6, score is 5 = n = k, score is (?) k

65 Unstacking Game Scores n =, score is 0 n = 2, score is = n = 3, score is 3 = + 2 n = 4, score is 6 = n = 5, score is 0 = n = 6, score is 5 = n = k, score is (?) k(k ) / 2

66 Empirically, it looks like Score for n = n(n ) / 2 How would we prove this?

67 The Intuition

68 The Intuition n blocks

69 The Intuition

70 k blocks The Intuition

71 The Intuition

72 The Intuition

73 The Intuition We are now playing two independent games of the unstacking game!

74 The Intuition

75 The Intuition n k blocks in this game k blocks in this game

76 n k blocks in this game The Intuition Total score: k (n k) for making the split + (score for n k block game) + (score for k block game) k blocks in this game

77 Proof Idea Proceed by induction! Want to show: Score for n blocks is n(n ) / 2. Show that the score for one block is ( )/2 = 0 as a base case. Show that when we split a stack into two pieces, the sum of the score for that move, the total score for the left tower subgame, and the total score for the right tower subgame comes out to n(n ) / 2 regardless of what split we make.

78 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

79 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

80 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

81 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

82 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

83 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

84 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

85 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively.

86 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n the theorem holds and consider a stack with n + blocks in it. Suppose we take k boxes off of the stack, leaving two stacks, one of size k and one of size n + k. The score for this move is k(n + k). By the inductive hypothesis, our score for the two smaller stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Is this legal?

87 Induction, Graphically

88 Induction, Graphically

89 Induction, Graphically block n blocks

90 Induction, Graphically block n blocks We assume P(n) as our inductive hypothesis. This means that if we ever have a stack of exactly n blocks, we know what the total score will be.

91 Induction, Graphically

92 Induction, Graphically

93 Induction, Graphically Neither of these stacks have size n, so we can't assume anything about the total score we'll get!

94 An Important Detail In a proof by induction, the inductive step works by showing, for some n, that P(n) P(n + ). There is no guarantee that P(n') holds for any n' < n. Induction only lets you use the immediately previous result to prove the next result. This is often not desirable.

95 The principle of strong induction states that if for some property P(n), we have that P(0) is true and For any natural number n, if P(n') is true for all n' n, then P(n + ) is true then For any natural number n, P(n) is true.

96 The principle of strong induction states that if for some property P(n), we have that Assume that P(n) holds for n and all smaller n. P(0) is true and For any natural number n, if P(n') is true for all n' n, then P(n + ) is true then For any natural number n, P(n) is true.

97 Induction and Dominoes Weak Induction: The zeroth domino falls. If the nth domino falls, the (n + )st domino falls. Strong induction: The zeroth domino falls. If dominoes 0,, 2,, n all fall, then the (n + )st domino falls.

98 Weak and Strong Induction Weak induction works by assuming that P(n) holds and showing P(n + ). Strong induction works by assuming P(n) is true and that P(n') is true for any n' < n, then showing P(n + ). Weak induction is good for proofs that work by peeling off one piece of a large structure. Fall down from the n + case to the n case. Strong induction is good for proofs that work by splitting a large structure down into one or more smaller pieces. Fall down from the n + case to some number of cases no larger than n.

99 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

100 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

101 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' Note in the range that we n' explicitly n. Consider mention a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the we're using strong induction here, score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The just score as we for this would move say is k(n we + were k). This leaves two stacks, one of size k and proceeding one of size (n + by induction, k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n contradiction, + k)(n k) / 2, or respectively. contrapositive. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

102 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

103 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

104 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, Note respectively. the strong Then the version total score of for the game is the inductive hypothesis. We assume that the theorem is true for all n' from up to some value n, not just that it's true for n. Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

105 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

106 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

107 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. The score for this move is k(n + k). This leaves two stacks, one of size k and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

108 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). and one of size (n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

109 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

110 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

111 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Now we can use the stronger version of the inductive hypothesis to assume we know this is already true. A weak Since our choice of k was arbitrary, the total score for n boxes is the same induction would fail here. regardless of what move we make. So the claim holds for n +, completing the proof.

112 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

113 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k)+ k (k ) (n+ k )(n k) Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

114 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) 2 2 Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

115 = Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

116 = Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

117 = Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k )+k (k )+(n+ k)(n k) = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

118 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k = n2 +n = (n+)n 2 2 Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

119 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k = n2 +n = (n+)n 2 2 Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

120 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k = n2 +n = (n+)n 2 2 Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

121 Theorem: For any n, any sequence of moves in the unstacking game gives a score of n(n ) / 2. Proof: By strong induction. As a base case, if n =, the game is over because all stacks have size one. Our score is then 0 = ( )/2, so the theorem holds for n =. For the inductive step, assume that for some n that the theorem holds for any n' in the range n' n. Consider a stack with n + blocks in it. We need to show that no matter what sequence of moves we make on this stack, the score is (n + )n / 2. Suppose that for arbitrary k, we take k boxes off of the stack. This leaves two stacks, one of size k and one of size (n + k). The score for this move is k(n + k). By the inductive hypothesis, no matter what moves we make on the two stacks, the score for the two stacks are k(k )/2 and (n + k)(n k) / 2, respectively. Then the total score for the game is k (n+ k )+ k (k ) 2 + (n+ k)(n k) 2 = 2 k (n+ k) 2 + k (k ) + (n+ k)(n k) k (n+ k)+k (k )+(n+ k )(n k ) = = 2 kn+2 k 2 k 2 +k 2 k+n 2 +n nk kn k+k = n2 +n = (n+)n 2 2 Since our choice of k was arbitrary, the total score for n boxes is the same regardless of what move we make. So the claim holds for n +, completing the proof.

122 Induction and Intuition Often, a proof by induction can be used to prove a result without giving any intuition for why the result is true. To gain an understanding of why the result is true, you often need to look for a different proof. Extra Credit Opportunity (worth 5 points on the next problem set): Come up with an intuitive explanation for the previous result, then formalize it with a proof. You don't need to use induction.

123 Induction and Intuition Often, a proof by induction can be used to prove a result without giving any intuition for why the result is true. To gain an understanding of why the result is true, you often need to look for a different proof. Extra Credit Opportunity (worth 5 points on the next problem set): Come up with an intuitive explanation for the previous result, then formalize it with a proof. You don't need to use induction if it isn't necessary.

124 Application: Continued Fractions

125 Continued Fractions

126 Continued Fractions

127 Continued Fractions

128 Continued Fractions

129 Continued Fractions

130 Continued Fractions

131 Continued Fractions 4 3

132 Continued Fractions 4 3

133 Continued Fractions 3 4

134 Continued Fractions

135 Continued Fractions

136 Continued Fractions

137 Continued Fractions

138 Continued Fractions

139 Continued Fractions

140 Continued Fractions

141 Continued Fractions

142 Continued Fractions

143 Continued Fractions

144 Continued Fractions

145 Continued Fractions

146 Continued Fractions

147 Continued Fractions

148 Continued Fractions 37 42

149 Continued Fractions A continued fraction is an expression of the form More formally, a continued fraction is either An integer n, or a 0 + a + a 2 + n + /F, where n is an integer and F is a continued fraction. Continued fractions have numerous applications in number theory and computer science. (They're also really fun to write!) a

150 Fun with Continued Fractions Any rational number (including negative numbers) has a continued fraction. Any irrational number has an (infinite) continued fraction. If we truncate an infinite continued fraction for an irrational number, we can get progressively better approximations of that number.

151 Pi as a Continued Fraction π=

152 Approximating Pi

153 Approximating Pi π= =

154 Approximating Pi π= = And he made the Sea of cast bronze, ten cubits from one brim to the other; it was completely round. [ A] line of thirty cubits measured its circumference. Kings 7:23, New King James Translation

155 Approximating Pi π= = /7 =

156 Approximating Pi π= = /7 = Archimedes knew of this approximation, circa 250 BCE

157 Approximating Pi π= = /7 = /06 =

158 Approximating Pi π= = /7 = /06 = /3 =

159 Approximating Pi π= = /7 = /06 = /3 = Chinese mathematician Zu Chongzhi discovered this approximation in the early fifth century; this was the best approximation of pi for over a thousand years

160 Approximating Pi π= = /7 = /06 = /3 = /3302 =

161 More Continued Fractions 4 3

162 More Continued Fractions 4 3

163 More Continued Fractions 2 3

164 More Continued Fractions 2 3

165 More Continued Fractions 2

166 More Continued Fractions 2

167 More Continued Fractions 4 3

168 More Continued Fractions =

169 More Continued Fractions =

170 An Interesting Continued Fraction x=

171 An Interesting Continued Fraction x= /

172 An Interesting Continued Fraction x= / 2 /

173 An Interesting Continued Fraction x= / 2 / 3 / 2

174 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3

175 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3 8 / 5

176 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3 8 / 5 3 / 8

177 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3 8 / 5 3 / 8 2 / 3

178 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3 8 / 5 3 / 8 2 / 3 34 / 2

179 An Interesting Continued Fraction x= / 2 / 3 / 2 5 / 3 8 / 5 3 / 8 2 / 3 34 / 2 Each fraction is the ratio of consecutive Fibonacci numbers!

180 The Golden Ratio ϕ= = ϕ

181 The Golden Ratio 2 34

182 The Golden Ratio 2 34

183 The Golden Ratio 2 3

184 The Golden Ratio 2 3

185 The Golden Ratio 8 3

186 The Golden Ratio 8 3

187 The Golden Ratio 8 5

188 The Golden Ratio 8 5

189 The Golden Ratio 3 5

190 The Golden Ratio 3 5

191 The Golden Ratio 3 2

192 The Golden Ratio 3 2

193 The Golden Ratio 2

194 The Golden Ratio 2

195 The Golden Ratio

196 The Golden Spiral

197 The Golden Spiral

198 How do we prove all rational numbers have continued fractions?

199 Constructing a Continued Fraction 25 9

200 Constructing a Continued Fraction 25 9 =

201 Constructing a Continued Fraction 25 9 =

202 Constructing a Continued Fraction 25 9 =

203 Constructing a Continued Fraction 25 9 = = + 2 7

204 Constructing a Continued Fraction 25 9 = = + 7 2

205 Constructing a Continued Fraction 25 9 = =

206 Constructing a Continued Fraction 25 9 = = = 3 + 2

207 Constructing a Continued Fraction 25 9 = = = 3 + 2

208 Constructing a Continued Fraction 25 9 = =

209 Constructing a Continued Fraction 25 9 = =

210 Constructing a Continued Fraction 25 9 =

211 Constructing a Continued Fraction =

212 Constructing a Continued Fraction =

213 Constructing a Continued Fraction = > 7 > 2 > 2

214 The Golden Ratio 2 34

215 The Golden Ratio 2 34

216 The Golden Ratio 2 3

217 The Golden Ratio 2 3

218 The Golden Ratio 8 3

219 The Golden Ratio 8 3

220 The Golden Ratio 8 5

221 The Golden Ratio 8 5

222 The Golden Ratio 3 5

223 The Golden Ratio 3 5

224 The Golden Ratio 3 2

225 The Golden Ratio 3 2

226 The Golden Ratio 2

227 The Golden Ratio 2

228 The Golden Ratio

229 The Division Algorithm For any integers a and b, with b 0, there exists unique integers q and r such that and a = qb + r 0 r < b q is called the quotient and r is called the remainder. If both a and b are nonnegative, then both q and r are nonnegative. Example: Given a = and b = 4: = Example: Given a = 37 and b = 42: 37 =

230 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative rational number a / (n + ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, write a = q(n + ) + r, with 0 r < n +. If r = 0, then we have that a = q(n + ), so a/(n + ) = q and the rational number a/(n + ) can be written as the trivial continued fraction q. Otherwise, r > 0. Notice that a q(n + ) = r, so Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

231 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative rational number a / (n + ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, write a = q(n + ) + r, with 0 r < n +. If r = 0, then we have that a = q(n + ), so a/(n + ) = q and the rational number a/(n + ) can be written as the trivial continued fraction q. Otherwise, r > 0. Notice that a q(n + ) = r, so Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

232 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative rational number a / (n + ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, write a = q(n + ) + r, with 0 r < n +. If r = 0, then we have that a = q(n + ), so a/(n + ) = q and the rational number a/(n + ) can be written as the trivial continued fraction q. Otherwise, r > 0. Notice that a q(n + ) = r, so Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

233 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative All nonnegative rational number rational a / (n + numbers ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, have write the a = form q(n + a/b ) + for r, with nonnegative 0 r < n +. If r = 0, then we have that a = q(n + ), a so and a/(n b. + ) The = q induction and the rational starts number with a/(n + ) can be written as the trivial continued the denominator fraction q. here Otherwise, because r > 0. this Notice that a q(n + ) = r, so choice works well. Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

234 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative rational number a / (n + ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, write a = q(n + ) + r, with 0 r < n +. If r = 0, then we have that a = q(n + ), so a/(n + ) = q and the rational number a/(n + ) can be written as the trivial continued fraction q. Otherwise, r > 0. Notice that a q(n + ) = r, so Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

235 Theorem: Every nonnegative rational number can be expressed as a continued fraction. Proof: By strong induction. Let P(n) be any nonnegative rational number with denominator n can be represented as a continued fraction. We prove that P(n) is true for positive natural numbers. To show P(), note that any rational number a / can be written as the (trivial) continued fraction a. For the inductive step, assume that for all n' n, P(n') holds. We prove that P(n + ) holds, that is, that any nonnegative rational number a / (n + ) can be written as a continued fraction. Consider any nonnegative rational number a / (n + ). Using the division algorithm, write a = q(n + ) + r, with 0 r < n +. If r = 0, then we have that a = q(n + ), so a/(n + ) = q and the rational number a/(n + ) can be written as the trivial continued fraction q. Otherwise, r > 0. Notice that a q(n + ) = r, so Notice, therefore, that which is well-defined because r > 0. But we know that r < n +, so by the inductive hypothesis the nonnegative rational number (n + )/r can be written as a continued fraction. If we call this continued fraction F, then we have that a / (n + ) can be written as q + /F, which is a continued fraction. Thus P(n + ) holds, completing the proof by induction.

Math 55: Discrete Mathematics

Math 55: Discrete Mathematics Math 55: Discrete Mathematics UC Berkeley, Fall 2011 Homework # 5, due Wednesday, February 22 5.1.4 Let P (n) be the statement that 1 3 + 2 3 + + n 3 = (n(n + 1)/2) 2 for the positive integer n. a) What

More information

3. Mathematical Induction

3. Mathematical Induction 3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)

More information

Assignment 5 - Due Friday March 6

Assignment 5 - Due Friday March 6 Assignment 5 - Due Friday March 6 (1) Discovering Fibonacci Relationships By experimenting with numerous examples in search of a pattern, determine a simple formula for (F n+1 ) 2 + (F n ) 2 that is, a

More information

Homework until Test #2

Homework until Test #2 MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such

More information

Mathematical Induction

Mathematical Induction Mathematical Induction (Handout March 8, 01) The Principle of Mathematical Induction provides a means to prove infinitely many statements all at once The principle is logical rather than strictly mathematical,

More information

6.2 Permutations continued

6.2 Permutations continued 6.2 Permutations continued Theorem A permutation on a finite set A is either a cycle or can be expressed as a product (composition of disjoint cycles. Proof is by (strong induction on the number, r, of

More information

Mathematical Induction. Lecture 10-11

Mathematical Induction. Lecture 10-11 Mathematical Induction Lecture 10-11 Menu Mathematical Induction Strong Induction Recursive Definitions Structural Induction Climbing an Infinite Ladder Suppose we have an infinite ladder: 1. We can reach

More information

CS 103X: Discrete Structures Homework Assignment 3 Solutions

CS 103X: Discrete Structures Homework Assignment 3 Solutions CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering

More information

3 0 + 4 + 3 1 + 1 + 3 9 + 6 + 3 0 + 1 + 3 0 + 1 + 3 2 mod 10 = 4 + 3 + 1 + 27 + 6 + 1 + 1 + 6 mod 10 = 49 mod 10 = 9.

3 0 + 4 + 3 1 + 1 + 3 9 + 6 + 3 0 + 1 + 3 0 + 1 + 3 2 mod 10 = 4 + 3 + 1 + 27 + 6 + 1 + 1 + 6 mod 10 = 49 mod 10 = 9. SOLUTIONS TO HOMEWORK 2 - MATH 170, SUMMER SESSION I (2012) (1) (Exercise 11, Page 107) Which of the following is the correct UPC for Progresso minestrone soup? Show why the other numbers are not valid

More information

Math Workshop October 2010 Fractions and Repeating Decimals

Math Workshop October 2010 Fractions and Repeating Decimals Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,

More information

Basic Proof Techniques

Basic Proof Techniques Basic Proof Techniques David Ferry dsf43@truman.edu September 13, 010 1 Four Fundamental Proof Techniques When one wishes to prove the statement P Q there are four fundamental approaches. This document

More information

Solutions for Practice problems on proofs

Solutions for Practice problems on proofs Solutions for Practice problems on proofs Definition: (even) An integer n Z is even if and only if n = 2m for some number m Z. Definition: (odd) An integer n Z is odd if and only if n = 2m + 1 for some

More information

Introduction. Appendix D Mathematical Induction D1

Introduction. Appendix D Mathematical Induction D1 Appendix D Mathematical Induction D D Mathematical Induction Use mathematical induction to prove a formula. Find a sum of powers of integers. Find a formula for a finite sum. Use finite differences to

More information

Answer Key for California State Standards: Algebra I

Answer Key for California State Standards: Algebra I Algebra I: Symbolic reasoning and calculations with symbols are central in algebra. Through the study of algebra, a student develops an understanding of the symbolic language of mathematics and the sciences.

More information

MATH 289 PROBLEM SET 4: NUMBER THEORY

MATH 289 PROBLEM SET 4: NUMBER THEORY MATH 289 PROBLEM SET 4: NUMBER THEORY 1. The greatest common divisor If d and n are integers, then we say that d divides n if and only if there exists an integer q such that n = qd. Notice that if d divides

More information

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12 CONTINUED FRACTIONS AND PELL S EQUATION SEUNG HYUN YANG Abstract. In this REU paper, I will use some important characteristics of continued fractions to give the complete set of solutions to Pell s equation.

More information

SECTION 10-2 Mathematical Induction

SECTION 10-2 Mathematical Induction 73 0 Sequences and Series 6. Approximate e 0. using the first five terms of the series. Compare this approximation with your calculator evaluation of e 0.. 6. Approximate e 0.5 using the first five terms

More information

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook. Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole

More information

Zeros of a Polynomial Function

Zeros of a Polynomial Function Zeros of a Polynomial Function An important consequence of the Factor Theorem is that finding the zeros of a polynomial is really the same thing as factoring it into linear factors. In this section we

More information

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers. MATHEMATICAL INDUCTION MIGUEL A LERMA (Last updated: February 8, 003) Mathematical Induction This is a powerful method to prove properties of positive integers Principle of Mathematical Induction Let P

More information

STUDENT S SOLUTIONS MANUAL ELEMENTARY NUMBER THEORY. Bart Goddard. Kenneth H. Rosen AND ITS APPLICATIONS FIFTH EDITION. to accompany.

STUDENT S SOLUTIONS MANUAL ELEMENTARY NUMBER THEORY. Bart Goddard. Kenneth H. Rosen AND ITS APPLICATIONS FIFTH EDITION. to accompany. STUDENT S SOLUTIONS MANUAL to accompany ELEMENTARY NUMBER THEORY AND ITS APPLICATIONS FIFTH EDITION Bart Goddard Kenneth H. Rosen AT&T Labs Reproduced by Pearson Addison-Wesley from electronic files supplied

More information

MATH10040 Chapter 2: Prime and relatively prime numbers

MATH10040 Chapter 2: Prime and relatively prime numbers MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive

More information

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material

More information

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

WRITING PROOFS. Christopher Heil Georgia Institute of Technology WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this

More information

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012 Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

More information

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions Stanford Math Circle: Sunday, May 9, 00 Square-Triangular Numbers, Pell s Equation, and Continued Fractions Recall that triangular numbers are numbers of the form T m = numbers that can be arranged in

More information

8 Divisibility and prime numbers

8 Divisibility and prime numbers 8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express

More information

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics An Introductory Single Variable Real Analysis: A Learning Approach through Problem Solving Marcel B. Finan c All Rights

More information

1.2. Successive Differences

1.2. Successive Differences 1. An Application of Inductive Reasoning: Number Patterns In the previous section we introduced inductive reasoning, and we showed how it can be applied in predicting what comes next in a list of numbers

More information

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES

More information

Sample Induction Proofs

Sample Induction Proofs Math 3 Worksheet: Induction Proofs III, Sample Proofs A.J. Hildebrand Sample Induction Proofs Below are model solutions to some of the practice problems on the induction worksheets. The solutions given

More information

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a

More information

Handout #1: Mathematical Reasoning

Handout #1: Mathematical Reasoning Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or

More information

8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem The Chinese Remainder Theorem Evan Chen evanchen@mit.edu February 3, 2015 The Chinese Remainder Theorem is a theorem only in that it is useful and requires proof. When you ask a capable 15-year-old why

More information

Lesson Plan. N.RN.3: Use properties of rational and irrational numbers.

Lesson Plan. N.RN.3: Use properties of rational and irrational numbers. N.RN.3: Use properties of rational irrational numbers. N.RN.3: Use Properties of Rational Irrational Numbers Use properties of rational irrational numbers. 3. Explain why the sum or product of two rational

More information

Section 4.2: The Division Algorithm and Greatest Common Divisors

Section 4.2: The Division Algorithm and Greatest Common Divisors Section 4.2: The Division Algorithm and Greatest Common Divisors The Division Algorithm The Division Algorithm is merely long division restated as an equation. For example, the division 29 r. 20 32 948

More information

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us

More information

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors. The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,

More information

0.8 Rational Expressions and Equations

0.8 Rational Expressions and Equations 96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

More information

x a x 2 (1 + x 2 ) n.

x a x 2 (1 + x 2 ) n. Limits and continuity Suppose that we have a function f : R R. Let a R. We say that f(x) tends to the limit l as x tends to a; lim f(x) = l ; x a if, given any real number ɛ > 0, there exists a real number

More information

Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 rkennedy@ix.netcom.

Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 rkennedy@ix.netcom. Some Polynomial Theorems by John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 rkennedy@ix.netcom.com This paper contains a collection of 31 theorems, lemmas,

More information

23. RATIONAL EXPONENTS

23. RATIONAL EXPONENTS 23. RATIONAL EXPONENTS renaming radicals rational numbers writing radicals with rational exponents When serious work needs to be done with radicals, they are usually changed to a name that uses exponents,

More information

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) Chapter 2 Numbers God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) God created the integers and the rest is the work

More information

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Lights, Camera, Primes! Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions Today, we re going

More information

5.1 Radical Notation and Rational Exponents

5.1 Radical Notation and Rational Exponents Section 5.1 Radical Notation and Rational Exponents 1 5.1 Radical Notation and Rational Exponents We now review how exponents can be used to describe not only powers (such as 5 2 and 2 3 ), but also roots

More information

The last three chapters introduced three major proof techniques: direct,

The last three chapters introduced three major proof techniques: direct, CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements

More information

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce

More information

Chapter 11 Number Theory

Chapter 11 Number Theory Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications

More information

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives 6 EXTENDING ALGEBRA Chapter 6 Extending Algebra Objectives After studying this chapter you should understand techniques whereby equations of cubic degree and higher can be solved; be able to factorise

More information

Chapter 3. Distribution Problems. 3.1 The idea of a distribution. 3.1.1 The twenty-fold way

Chapter 3. Distribution Problems. 3.1 The idea of a distribution. 3.1.1 The twenty-fold way Chapter 3 Distribution Problems 3.1 The idea of a distribution Many of the problems we solved in Chapter 1 may be thought of as problems of distributing objects (such as pieces of fruit or ping-pong balls)

More information

Math 3000 Section 003 Intro to Abstract Math Homework 2

Math 3000 Section 003 Intro to Abstract Math Homework 2 Math 3000 Section 003 Intro to Abstract Math Homework 2 Department of Mathematical and Statistical Sciences University of Colorado Denver, Spring 2012 Solutions (February 13, 2012) Please note that these

More information

4.2 Euclid s Classification of Pythagorean Triples

4.2 Euclid s Classification of Pythagorean Triples 178 4. Number Theory: Fermat s Last Theorem Exercise 4.7: A primitive Pythagorean triple is one in which any two of the three numbers are relatively prime. Show that every multiple of a Pythagorean triple

More information

1. The Fly In The Ointment

1. The Fly In The Ointment Arithmetic Revisited Lesson 5: Decimal Fractions or Place Value Extended Part 5: Dividing Decimal Fractions, Part 2. The Fly In The Ointment The meaning of, say, ƒ 2 doesn't depend on whether we represent

More information

Continued Fractions. Darren C. Collins

Continued Fractions. Darren C. Collins Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history

More information

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

Math 4310 Handout - Quotient Vector Spaces

Math 4310 Handout - Quotient Vector Spaces Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Full and Complete Binary Trees

Full and Complete Binary Trees Full and Complete Binary Trees Binary Tree Theorems 1 Here are two important types of binary trees. Note that the definitions, while similar, are logically independent. Definition: a binary tree T is full

More information

5. Factoring by the QF method

5. Factoring by the QF method 5. Factoring by the QF method 5.0 Preliminaries 5.1 The QF view of factorability 5.2 Illustration of the QF view of factorability 5.3 The QF approach to factorization 5.4 Alternative factorization by the

More information

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Section 1 Real Numbers

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Section 1 Real Numbers Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Please watch Section 1 of this DVD before working these problems. The DVD is located at: http://www.mathtutordvd.com/products/item66.cfm

More information

Activity 1: Using base ten blocks to model operations on decimals

Activity 1: Using base ten blocks to model operations on decimals Rational Numbers 9: Decimal Form of Rational Numbers Objectives To use base ten blocks to model operations on decimal numbers To review the algorithms for addition, subtraction, multiplication and division

More information

arxiv:math/0202219v1 [math.co] 21 Feb 2002

arxiv:math/0202219v1 [math.co] 21 Feb 2002 RESTRICTED PERMUTATIONS BY PATTERNS OF TYPE (2, 1) arxiv:math/0202219v1 [math.co] 21 Feb 2002 TOUFIK MANSOUR LaBRI (UMR 5800), Université Bordeaux 1, 351 cours de la Libération, 33405 Talence Cedex, France

More information

Mathematical Induction

Mathematical Induction Mathematical Induction In logic, we often want to prove that every member of an infinite set has some feature. E.g., we would like to show: N 1 : is a number 1 : has the feature Φ ( x)(n 1 x! 1 x) How

More information

Solving Rational Equations

Solving Rational Equations Lesson M Lesson : Student Outcomes Students solve rational equations, monitoring for the creation of extraneous solutions. Lesson Notes In the preceding lessons, students learned to add, subtract, multiply,

More information

An example of a computable

An example of a computable An example of a computable absolutely normal number Verónica Becher Santiago Figueira Abstract The first example of an absolutely normal number was given by Sierpinski in 96, twenty years before the concept

More information

SCORE SETS IN ORIENTED GRAPHS

SCORE SETS IN ORIENTED GRAPHS Applicable Analysis and Discrete Mathematics, 2 (2008), 107 113. Available electronically at http://pefmath.etf.bg.ac.yu SCORE SETS IN ORIENTED GRAPHS S. Pirzada, T. A. Naikoo The score of a vertex v in

More information

Today s Topics. Primes & Greatest Common Divisors

Today s Topics. Primes & Greatest Common Divisors Today s Topics Primes & Greatest Common Divisors Prime representations Important theorems about primality Greatest Common Divisors Least Common Multiples Euclid s algorithm Once and for all, what are prime

More information

Handout NUMBER THEORY

Handout NUMBER THEORY Handout of NUMBER THEORY by Kus Prihantoso Krisnawan MATHEMATICS DEPARTMENT FACULTY OF MATHEMATICS AND NATURAL SCIENCES YOGYAKARTA STATE UNIVERSITY 2012 Contents Contents i 1 Some Preliminary Considerations

More information

Zeros of Polynomial Functions

Zeros of Polynomial Functions Review: Synthetic Division Find (x 2-5x - 5x 3 + x 4 ) (5 + x). Factor Theorem Solve 2x 3-5x 2 + x + 2 =0 given that 2 is a zero of f(x) = 2x 3-5x 2 + x + 2. Zeros of Polynomial Functions Introduction

More information

AN ANALYSIS OF A WAR-LIKE CARD GAME. Introduction

AN ANALYSIS OF A WAR-LIKE CARD GAME. Introduction AN ANALYSIS OF A WAR-LIKE CARD GAME BORIS ALEXEEV AND JACOB TSIMERMAN Abstract. In his book Mathematical Mind-Benders, Peter Winkler poses the following open problem, originally due to the first author:

More information

2.4 Real Zeros of Polynomial Functions

2.4 Real Zeros of Polynomial Functions SECTION 2.4 Real Zeros of Polynomial Functions 197 What you ll learn about Long Division and the Division Algorithm Remainder and Factor Theorems Synthetic Division Rational Zeros Theorem Upper and Lower

More information

Set theory as a foundation for mathematics

Set theory as a foundation for mathematics V I I I : Set theory as a foundation for mathematics This material is basically supplementary, and it was not covered in the course. In the first section we discuss the basic axioms of set theory and the

More information

On continued fractions of the square root of prime numbers

On continued fractions of the square root of prime numbers On continued fractions of the square root of prime numbers Alexandra Ioana Gliga March 17, 2006 Nota Bene: Conjecture 5.2 of the numerical results at the end of this paper was not correctly derived from

More information

Lecture 13 - Basic Number Theory.

Lecture 13 - Basic Number Theory. Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted

More information

Core Maths C1. Revision Notes

Core Maths C1. Revision Notes Core Maths C Revision Notes November 0 Core Maths C Algebra... Indices... Rules of indices... Surds... 4 Simplifying surds... 4 Rationalising the denominator... 4 Quadratic functions... 4 Completing the

More information

POLYNOMIAL FUNCTIONS

POLYNOMIAL FUNCTIONS POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a

More information

Discrete Structures. Lecture Notes

Discrete Structures. Lecture Notes Discrete Structures Lecture Notes Vladlen Koltun 1 Winter 2008 1 Computer Science Department, 353 Serra Mall, Gates 374, Stanford University, Stanford, CA 94305, USA; vladlen@stanford.edu. Contents 1

More information

Indices and Surds. The Laws on Indices. 1. Multiplication: Mgr. ubomíra Tomková

Indices and Surds. The Laws on Indices. 1. Multiplication: Mgr. ubomíra Tomková Indices and Surds The term indices refers to the power to which a number is raised. Thus x is a number with an index of. People prefer the phrase "x to the power of ". Term surds is not often used, instead

More information

Exponents and Radicals

Exponents and Radicals Exponents and Radicals (a + b) 10 Exponents are a very important part of algebra. An exponent is just a convenient way of writing repeated multiplications of the same number. Radicals involve the use of

More information

3.3 Real Zeros of Polynomials

3.3 Real Zeros of Polynomials 3.3 Real Zeros of Polynomials 69 3.3 Real Zeros of Polynomials In Section 3., we found that we can use synthetic division to determine if a given real number is a zero of a polynomial function. This section

More information

Section IV.1: Recursive Algorithms and Recursion Trees

Section IV.1: Recursive Algorithms and Recursion Trees Section IV.1: Recursive Algorithms and Recursion Trees Definition IV.1.1: A recursive algorithm is an algorithm that solves a problem by (1) reducing it to an instance of the same problem with smaller

More information

3.1. RATIONAL EXPRESSIONS

3.1. RATIONAL EXPRESSIONS 3.1. RATIONAL EXPRESSIONS RATIONAL NUMBERS In previous courses you have learned how to operate (do addition, subtraction, multiplication, and division) on rational numbers (fractions). Rational numbers

More information

Chapter 13: Fibonacci Numbers and the Golden Ratio

Chapter 13: Fibonacci Numbers and the Golden Ratio Chapter 13: Fibonacci Numbers and the Golden Ratio 13.1 Fibonacci Numbers THE FIBONACCI SEQUENCE 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, The sequence of numbers shown above is called the Fibonacci

More information

Connectivity and cuts

Connectivity and cuts Math 104, Graph Theory February 19, 2013 Measure of connectivity How connected are each of these graphs? > increasing connectivity > I G 1 is a tree, so it is a connected graph w/minimum # of edges. Every

More information

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive Chapter 3 Number Theory 159 3.1 Prime Numbers Prime numbers serve as the basic building blocs in the multiplicative structure of the integers. As you may recall, an integer n greater than one is prime

More information

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set. Section 2.5 Cardinality (another) Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted A = B, if and only if there is a bijection from A to B. If there is an injection

More information

3 Some Integer Functions

3 Some Integer Functions 3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple

More information

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: niels@imf.au.dk URL: http://home.imf.au.dk/niels/ Contents

More information

Math 181 Handout 16. Rich Schwartz. March 9, 2010

Math 181 Handout 16. Rich Schwartz. March 9, 2010 Math 8 Handout 6 Rich Schwartz March 9, 200 The purpose of this handout is to describe continued fractions and their connection to hyperbolic geometry. The Gauss Map Given any x (0, ) we define γ(x) =

More information

Math 319 Problem Set #3 Solution 21 February 2002

Math 319 Problem Set #3 Solution 21 February 2002 Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod

More information

Math Released Set 2015. Algebra 1 PBA Item #13 Two Real Numbers Defined M44105

Math Released Set 2015. Algebra 1 PBA Item #13 Two Real Numbers Defined M44105 Math Released Set 2015 Algebra 1 PBA Item #13 Two Real Numbers Defined M44105 Prompt Rubric Task is worth a total of 3 points. M44105 Rubric Score Description 3 Student response includes the following

More information

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS Class Meetings: MW 2:00-3:15 pm in Physics 144, September 7 to December 14 [Thanksgiving break November 23 27; final exam December 21] Instructor:

More information

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003 MATH 22 Lecture R: 10/30/2003 THE FUNDAMENTAL THEOREM of ARITHMETIC You must remember this, A kiss is still a kiss, A sigh is just a sigh; The fundamental things apply, As time goes by. Herman Hupfeld

More information

INCIDENCE-BETWEENNESS GEOMETRY

INCIDENCE-BETWEENNESS GEOMETRY INCIDENCE-BETWEENNESS GEOMETRY MATH 410, CSUSM. SPRING 2008. PROFESSOR AITKEN This document covers the geometry that can be developed with just the axioms related to incidence and betweenness. The full

More information

15-150 Lecture 11: Tail Recursion; Continuations

15-150 Lecture 11: Tail Recursion; Continuations 15-150 Lecture 11: Tail Recursion; Continuations Lecture by Dan Licata February 21, 2011 In this lecture we will discuss space usage: analyzing the memory it takes your program to run tail calls and tail

More information

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes) NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 5 8 Student Outcomes Students know the definition of a number raised to a negative exponent. Students simplify and write equivalent expressions that contain

More information

The Fibonacci Sequence and the Golden Ratio

The Fibonacci Sequence and the Golden Ratio 55 The solution of Fibonacci s rabbit problem is examined in Chapter, pages The Fibonacci Sequence and the Golden Ratio The Fibonacci Sequence One of the most famous problems in elementary mathematics

More information

Negative Integer Exponents

Negative Integer Exponents 7.7 Negative Integer Exponents 7.7 OBJECTIVES. Define the zero exponent 2. Use the definition of a negative exponent to simplify an expression 3. Use the properties of exponents to simplify expressions

More information

0.75 75% ! 3 40% 0.65 65% Percent Cards. This problem gives you the chance to: relate fractions, decimals and percents

0.75 75% ! 3 40% 0.65 65% Percent Cards. This problem gives you the chance to: relate fractions, decimals and percents Percent Cards This problem gives you the chance to: relate fractions, decimals and percents Mrs. Lopez makes sets of cards for her math class. All the cards in a set have the same value. Set A 3 4 0.75

More information