# Fractions and Decimals

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Fractions and Decimals Tom Davis December 1, Introduction If you divide 1 by 81, you will find that 1/81 = The first time I did this, I was amazed there was a beautiful pattern, but then instead of going 789, it jumped directly from 7 to 9, and then started repeating. Is this a miracle? Are there any other cool patterns? Can we compose fractions with interesting expansions? Is there anything special about those sorts of fractions? Some fractions come out even when expressed as a decimal: 1/2 = 0.5 and 1/5 = 0.2, for example. Others repeat forever: 1/3 = or 1/7 = Some only repeat after a while: 1/6 = Why do they repeat? Do decimals have to repeat? What is meant by 1 = ? How can you find the fraction corresponding to an infinite decimal or the decimal expansion of a given fraction? How much, if any, of this is caused by the fact that we work in base 10? How do you convert a fraction to a decimal? A decimal to a fraction? What if the decimal is repeating? These are the sorts of problems we ll examine in this paper. Appendix A contains a table of the properties of the decimal expansions of the fractions of the form 1/n for n = 1 to n = 900. Some properties are easy, and some are difficult. In Appendices B, C, D and E are the definitions and simple properties of some number-theoretic concepts and functions that are used in the text. 2 What is a Decimal Number? Almost everyone knows what a decimal number means, but let s review it quickly anyway. Every decimal number has one of the digits from 0 through 9 in each of several positions. As you move from left to right, the digits represent smaller and smaller numbers. For example, what is the meaning of the expression ? The digits to the left of the decimal point ( 134 in this case) represent the size of the integer (whole-number) part of the number. Reading digits from the decimal point to the left, the first represents the one s place, the next, the ten s place, then the hundred s place, and so on. We can rewrite the whole number 134 as: or better, as: , The second expression is better, since we can see the progression of the exponents as we work through the digits. Thus, the original example represents: , 1

2 or better, as: Non-Terminating Decimals The explanation above is fine for decimals that terminate, but what does it mean when the decimal expansion goes on forever, as in 1/3 = ? This is, in fact, probably the first infinite series that most people ever encounter, even if they don t recognize it as an infinite series. The decimal expansion of 1/3 means this: 1 ) 1 ) = ) 10 ) 4 + = i=1 ) i. 3 (1) 10 The sum above must continue forever before it is exactly equal to 1/3. If you stop after any finite number of terms, it is not exact. Let us, in fact, look at the errors for a few approximations: 1/3.3 = 1/3 3/10 = 1/30 1/ = 1/3 3333/10000 = 1/ / = 1/ / = 1/ It is clear that the approximations are better and better, the last one above having an error of only one part in thirty billion, but no finite approximation is exact. For a proof that the infinite decimal expansion in Equation 1 is exactly equal to 1/3, see section 4. A mathematician would say that the limit of the sequence:.3,.33,.333,.3333,.33333, ,... is 1/3. This means that given any error, no matter how small, after a certain point the terms in the sequence above will all be closer to 1/3 than that specified error. 3 How to Convert Fractions to Decimals To convert a fraction of the form i/j to a decimal, all you need to do is a long division where you write the numerator followed by a decimal point and as many zeroes as you want. For example, to convert the fraction 7/27 into a decimal, begin with the long division displayed below:

3 At each stage in the long division, the remainder will have to be less than 27, so in this case there are only 27 possible remainders: 0, 1,..., 26. If the remainder were 27 or more, you could have divided at least one more 27 into it. In the case above, the remainders are 16, 25, 7, 16, and 25. But once we are doing the division in the part of the fraction where all the decimals in the numerator are zero, if a remainder is repeated, the entire sequence of remainders will repeat from that point on, forever. In the case above, as soon as we hit the remainder of 16, the next one will have to be 25 and then the next one will have to be 7, and then 16, 25, 7, 16, and so on, forever. Thus, the infinite decimal expansion becomes: 7/27 = Every fraction will eventually go into a cycle like this. The example above cycles all of its digits. Other fractions may have a non-repeating part followed by a part that repeats forever. For example, the fraction 1/6 = It is also interesting to note that the repeating part of any decimal expansion of a fraction has to be shorter than the denominator. As we saw above, for example, if the denominator is 27, there are only 26 possible remainders in the long division: 1 through 26. A remainder of 0 means it came out even, and all the remainders have to be strictly less than 27. In the two examples above it is pretty obvious from the... what part repeats, but if you wish to be mathematically precise, you can indicate the repeating part with a bar over the part that repeats. Hence: 7/27 =.259 1/6 =.16 It is interesting to make a table of the decimal expansions for the fractions with small denominators. Here s the list of the fractions of the form 1/n: 1/2.5 1/ / /3.3 1/ / /4.25 1/ / /5.2 1/ / /6.16 1/ / / / / / / / /9.1 1/ / /10.1 1/ / / / / There are some interesting patterns to note, even with such a small table. First, the decimals terminate (end with an infinite sequence of zeroes) exactly when the denominator is a multiple of a power of 2 and a power of 5, such as 2 = 2 1, 4 = 2 2, 5 = 5 1, 8 = 2 3, 10 = , 16 = 2 4 and 20 = If you want more data, Appendix A contains the cycle lengths for fractions with denominators up to 900. Fractions with prime numbers as the denominator tend to have longer expansions, many of them having length p 1 where the denominator is the prime number p. 3

4 4 Converting Decimals to Fractions Begin with the familiar expansion: 1 ) 1 ) = ) 10 ) 4 + = i=1 ) i The example above (and all repeating decimals will be similar) is a geometric series. Every term after the first is just a constant multiple of the previous term. The first term in the expansion of 1/3 is 3/10 and each successive term is obtained by multiplying the previous term by 1/10. The general form for a geometric series whose first term is a and whose ratio between terms is r is this: S = a + ar + ar 2 + ar 3 + ar 4 + = ar i. (2) if r < 1 then the series converges. The usual trick to find the sum S is to multiply Equation 2 by r and then to subtract it from the original series to obtain: i=0 S = a + ar + ar 2 + ar 3 + ar 4 rs = (ar + ar 2 + ar 3 + ar 4 + ) S rs = a. Thus S(1 r) = a, or S = a/(1 r). In the case of the fraction 1/3 above, a = 3/10 and r = 1/10 so S = 3/10 (1 1/10) = 3/10 9/10 = 3 9 = 1 3. Exactly the same idea can be applied to decimals that repeat after an initial non-repeating part. For example, to show that the decimal is 1/6, notice that we have = = ( ) ) 2 6 ) ( Thus it is the sum of 1/10 and a geometric series with a = 6/100 and r = 1/10: = / /10 = = 5 30 = 1 6. A very similar trick can be used to convert any non-terminating decimal to a fraction. For example, what is the fractional form for = ? The arithmetic is a bit ugly, but this is just: = ) ) = (7523/ ) = / (1 1/10000) 4 )

5 You may have noticed that there is a trick that can be used with any decimal that repeats from the decimal point. To obtain the fraction, take the repeating part and divide it by a number with the same number of digits, but all of which are 9. For example, to convert.123 to a fraction, the repeating part is three digits long, so the fraction is 123/999 = 41/333. Can you see why this always works? 5 Why is = 1? Many people are disturbed by the fact that the repeating decimal is equal to 1. According to our conversion trick, the repeating part is just 9, so the decimal should be equal to 9/9 = 1. It is also clear that the sum of the infinite series: is 1, since from Equation 2 we obtain a = 9/10 and r = 1/10, so a/(1 r) = 1. The ugly truth is that decimal expansions in our base-10 system are not unique. There are sometimes two different ways to represent the same fraction with different decimal expansions. There is nothing unique about the apparent problem that = 1. The same thing occurs infinitely often: =.35, =.112, et cetera. This problem is not unique to base 10; if you are working in base 8, the number 1 has two octal expansions: and , et cetera. 6 What s with 1/81 = ? We will examine the title question later. Let us begin with a couple of easier examples. We learned in Section 4 how to sum a geometric series and we can use that trick to make a couple of other interesting fractions. As the first example, consider the decimal expansion that begins like this: D = If you look at each pair of digits, each is the double of the previous set of two. But we can also write it as a geometric series: D = ( 2 ) 1 1 ( 2 ) 2 1 ( 2 ) In this series the first term, a = 1/100 and the ratio r = 2/100. Thus the sum should be: D = And sure enough, if we divide out 1/98, we obtain: a 1 r = 1/ /100 = = The doubling pattern seems to fail immediately after the 32: we have a 65 rather than a 64 in the pattern. But it s easy to see why, since the next term, 128, has more than two digits, so the 1 carries over into the next column to the left, turning 64 into 65. 5

6 You can go further with the following fraction: = We ve just written... since this one doesn t repeat for a while its repeating cycle is 498 digits long. Both the examples above are based on the fact that we know how to add up the terms in the geometric series: S = a + ar + ar 2 + ar 3 + = a 1 r. (3) The examples use values of r that have some power of 10 in the denominator and (usually) small integers in the numerator. If you understand this, it should be easy to find the fraction that corresponds to this decimal expansion: , where the numbers in the expansion start out looking like powers of 3. But there are other series we know how to add. For example 1 : If r = 1/10, this formula gives: r + 2r 2 + 3r 3 + 4r 4 + = = = 10/81. r (1 r) 2. (4) If you divide by ten, you obtain 1/81 = The decimal jumps from 7 to 9 because of carries that occur when the terms with 10 and above are added in. More formulas like that above are not too hard to derive if you know a little calculus. For example: from which we can obtain: r + 4r 2 + 9r r r 5 + = = r(1 + r) (1 r) 3 (5) As one final example, consider the Fibonacci numbers, defined as follows: F 0 = 0, F 1 = 1, F n = F n 1 + F n 2, if n > 1. The first few Fibonacci numbers are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, = Can you find a fraction whose value is ? 7 Cycle Lengths In the rest of this paper, we will assume that the fractions we consider have been reduced to lowest terms. In other words, the numerator and denominator have no common factors. The fraction 6/9 is not reduced 1 This formula can be obtained from the formula for the geometric series (Equation 3) by setting a = 1 and then taking the derivative of both sides with respect to r and multiplying the result by r. We can begin with this result and do the same sort of thing to obtain Equation 5. But even without calculus, we can sum it. If S = r + r 2 + r 3 + = r/(1 r), then the sum in Equation 4 is equal to S + rs + r 2 S + = S(1 + r + r 2 + ) = S/(1 r) = r/(1 r) 2. 6

7 to lowest terms, since both 6 and 9 have a common factor of 3. The equivalent fraction 2/3 is reduced to lowest terms. This reduction is easy for small numerators and denominators, but it can be a bit messy with large numerators and denominators. There is a simple algorithm to reduce fractions, and it is explained in Appendix C. A very interesting question is the following. Given a fraction p/q that is reduced to lowest terms, what is the length of the non-repeating part and what is the length of the cycle? Before reading on, you may wish to look at the data in the table in Appendix A and look for patterns. If you do see patterns, try to prove them. We will show later that if p/q is reduced to lowest terms, it will have the same length non-repeating part and repeating part as 1/q. You may wish to check this with a few examples, like 1/7 = , 2/7 = , 3/7 = , et cetera. All have no non-repeating part and a repeating part of 6 digits. Another example is 1/6 =.16 and 5/6 =.83. Both have a single non-repeating digit followed by a single-digit repeating cycle. We will prove this in Section 7.2, but this is the reason that the table in Appendix A only contains the data for fractions of the form 1/N. 7.1 The Non-Repeating Part The next thing to notice is the set of fractions in the list that terminate. It s clear that at least in the examples in Appendix A all and only those fractions with denominators of the form 2 i 5 j terminate. This is related to the fact that we have ten fingers and therefore work in base 10 = 2 5. In fact, if you look at any terminating fraction with denominator 2 i 5 j, the number of digits before the fraction terminates is exactly equal to the larger of i and j. This should be clear, since any decimal that terminates in 1, 2, or 3 places has, by definition, has a denominator of 10, 100, 1000, et cetera. So if we look, for example, at decimals that terminate after 3 places, the fraction has the form N/1000 (or a reduced form of that), where N is a three-digit number. If N contains both a factor of 5 and of 2, we could divide numerator and denominator by 10 and make it terminate in 2 digits. Thus N may have factors of 2 or may have factors of 5, but not both. Thus 7/160 = 7/(2 5 5) should terminate after exactly 5 terms, and it does: 7/160 = Now consider decimals with a repeating and a non-repeating part. Let s just consider an example, and it should be clear how to do a formal proof from the example. What is the fraction that has the expansion: ? Write it like this: = In this case it s obvious that there will be a denominator of the final fraction with at least three 2s or three 5s. But with an appropriate selection of non-repeating and cycle parts, could we have some cancellation? For example, how about ? This would be: = We can divide 10 out of the numerator and denominator of both parts, and only have a fraction of 100, guaranteeing a non-repeating part of only two digits. What s wrong? Well, here s what s wrong: we did not write the original decimal in its simplest form: so it really has only a two-digit non-repeating part =.25075, 7

8 In any case, with a little thought it should be clear that any decimal that repeats after an initial nonrepeating part of k digits must contain at least 2 k or 5 k in the denominator, and no powers of 2 or 5 greater than k. There is an easy way to convert fractions that have a non-repeating as well as a repeating part. We will leave it as an exercise for you to discover the exact rule and proof of the rule, but look at the following conversions, and find the underlying pattern:.137 = (137 1)/990 = 136/ = ( )/99000 = 12249/ = ( )/9000 = 1112/ = ( )/99900 = 13459/ = ( )/ = / Repeating Cycle Length If we look over a bunch of examples in Appendix A, we can find still more patterns. Since we know how to deal with factors of 2 and 5 in the denominators, let s ignore those and look only at denominators that are products of prime numbers other than 2 and 5. Here are a few interesting patterns: 1. Many fractions whose denominator is a prime number p have cycles of length p All fractions whose denominator m is not a prime have cycles of length less than m All fractions whose denominator is a prime number p have cycles whose length divides p There seems to be some sort of relationship between the lengths of the cycles of the prime factors of the denominator and the length of the cycle of the denominator, but it is hard to say what that is, exactly. Let s look at a concrete example: the decimal expansion of i/13: 1/ / / / / / / / / / / / The first thing we notice is that the fractions with numerators 1, 3, 4, 9, 10 and 12 have the same series of digits in the cycle, but rotated by different amounts. Similarly for the ones with numerators 2, 5, 6, 7, 8 and 11. Now look at the values of 10 mod 13, 10 2 mod 13, 10 3 mod 13, and of 2 10 mod 13, mod 13 et cetera. (See Appendix B if you are unfamiliar with the mod function.) 10 0 mod mod mod mod mod mod mod mod mod mod mod mod mod mod 13 2 Finally, consider the two long divisions that produce the decimal expansions of 1/13 and 2/13. The remainders in the division of 1 by 13 are: 1, 10, 9, 12, 3, 4, and finally, 1, where the cycle begins again. 8

9 These are exactly the values of 10 i mod 13 in the previous table. A similar result holds for the remainders when 2 is divided by 13. Do you see why this must be true? In the argument that follows, we ll be considering a denominator N which contains no factors of 2 or 5, but if you refer to the examples above with N = 13, the argument may be easier to follow. What we wish to prove is that if k/n is reduced to lowest terms, its cycle length is the same as the cycle length for 1/N. Consider the n distinct remainders 1 = r 0, r 1,..., r n 1, where r n = r 0 = 1 obtained during the long division of 1/N. If n = N 1 then all the remainders from 1 to N 1 must appear somewhere in the cycle, so the long division of k/n will simply begin in the cycle at the point where r i = k and continue with exactly the same cycle elements around a cycle of exactly the same length n = N 1. If n < N 1 then some of the remainders are omitted. If m is an omitted remainder and m/n is reduced to lowest terms, then in the long division of m/n, we must obtain remainders mr 0, mr 1, mr 2,..., mr n 1, all taken mod N. Clearly the cycle repeats at this point, since mr n = m mod N. It cannot repeat earlier. If it did, and mr 0 = mr j for j < n 1, then r 0 = r j mod N because GCD(m, N) = 1. This cannot occur since r n 1 is the first time the remainders r j return to 1 mod N. Thus every irreducible fraction k/n has the same cycle length as the fraction 1/N. Finally, note that if N is prime, all the fractions k/n are irreducible, so all the remainders fall into equivalence classes determined by which cycle they are in. But all these cycles have the same length, so the cycle lengths must divide N 1. This is only true if N is prime, however. The cycle length of 1/14, for example, is 6, which does not divide The General Problem In general, what we would like to do is given a reduced fraction k/n, find the length of the non-repeating and repeating part of its decimal expansion. We know how to find the non-repeating length: if 2 i and 5 j are the largest powers of 2 and 5 that divide n, then the non-repeating part has a length which is the maximum of i and j. Unfortunately, nobody knows an easy way to find the length of the repeating part, even when n is a prime number. Here are some partial results, where we ll assume that the denominator of k/n is not divisible by 2 or 5, and that k/n is reduced to lowest terms. In what follows, we ll denote by λ(n) the length of the cycle of the fraction k/n. 1. If n is a prime and the cycle length of 1/n is even, then if the first half of the cycle is added to the 9

10 last half as integers, the result is 10 λ(n)/2 1. For example, 1/7 = , and = 999 = Another example: 1/17 = , and = = If n is prime, then the length of the cycle divides n λ(n) = i if i > 0 is the smallest integer such that 10 i = 1 mod n. 4. If 10 is a primitive root of n, then λ(n) = φ(n), where φ is the Euler totient function. See Appendix D for properties of the totient function, and Appendix E for the properties of primitive roots. For example, 10 is a primitive root mod 49 and φ(49) = 42 so the cycle length of 1/49 is λ(n) divides φ(n). 10

11 A Cycle Length Table for 1/1 to 1/900 Pattern: Denominator Non-repeat Repeat. Example: 1/12 = Denominator is 12, the 08 does not repeat, length is 2, the 3 repeats, length is 1. signifies a terminating decimal

12

13

14 B The mod Function In this appendix, we assume that we are dealing only with integers, although the concept is easy to extend to real numbers in some cases. The definition of m mod n is the remainder obtained if m is divided by n. Thus 5 mod 3 = 2, 15 mod 5 = 0, and 17 mod 20 = 17. The value of m mod n is always between 0 and n 1, inclusive. We sometimes write m n (mod k) to mean m mod k = n mod k. In English, we say that m is equivalent to n, mod k. In this case the mod is a congruence relation. Here are some easily proved properties of the mod congruence relation. Some of them involve the function GCD, or greatest common divisor that is dealt with in Appendix C a b (mod n) and c d (mod n) = a + c b + d (mod n) a b (mod n) and c d (mod n) = a c b d (mod n) a b (mod n) and c d (mod n) = ac bd (mod n) a b (mod n) and m 0 = a m b m (mod n) ac bc (mod n) and GCD(c, n) = 0 = a b (mod n) ac bc (mod nc) and c 0 = a b (mod n) a b (mod mn) and GCD(m, n) = 0 = a b (mod m) and a b (mod n) C The GCD and Reducing Fractions If you are given a fraction in the form m/n, where m and n are integers, it is usually far easier to work with if it is reduced to lowest terms. For example, 1/2 = 2/4 = 3/6 = 4/8, but the form 1/2 is usually best, especially for the sorts of analyses done in this paper. To reduce the fraction m/n to lowest terms, you need to find the largest integer r such that m = pr and n = qr where p and q are integers. Then m/n = pr/qr = p/q, and p/q is the reduced form of m/n. The value r in the previous paragraph is called the greatest common divisor or GCD of m and n. Here is how to calculate the GCD for m, n 0: { GCD(m, n) = n : m = 0 GCD(n mod m, m) : m > 0 where n( mod m) is the remainder after dividing n by m. This recursive formula can be applied to calculate relatively quickly the GCD of any pair of numbers. For example, let us find the GCD(197715, 22820): GCD(197715, 22820) = GCD( mod 22820, 22820) = GCD(15155, 22820) = GCD(22820 mod 15155, 15155) = GCD(7665, 15155) = GCD(15155 mod 15155, 7665) = GCD(7490, 7665) = GCD(7665 mod 7490, 7490) = GCD(175, 7490) = GCD(7490 mod 175, 175) = GCD(140, 175) = GCD(175 mod 140, 140) = GCD(35, 140) = GCD(140 mod 35, 35) = GCD(0, 35) = 35 Thus the fraction 22820/ reduced to lowest terms is (22820/35)/(197715/35) = 652/5649. Usually the GCD operation does not require so many steps, but the example above illustrates how it will 14

15 grind down any two numbers, no matter how large. D The Euler Totient Function The function φ(n) is equal to the number of integers in the set {0, 1, 2,..., n 1} that are relatively prime to n. φ(1) = 1, φ(2) = 1, φ(3) = 2, and so on. Here are values of φ(n) for n = 1, 2,...,50: 1, 1, 2, 2, 4, 2, 6, 4, 6, 4, 10, 4, 12, 6, 8, 8, 16, 6, 18, 8, 12, 10, 22, 8, 20, 12, 18, 12, 28, 8, 30, 16, 20, 16, 24, 12, 36, 18, 24, 16, 40, 12, 42, 20, 24, 22, 46, 16, 42, 20. Obviously, if p is prime, φ(p) = p 1 and φ(p k ) = p k 1 (p 1) = p k (1 1/p). If m is composite, φ(m) < m 1. In general, if the prime factorization for an integer n is given by n = p k1 1 pk2 2 pkm m, then ) ( φ(n) = n (1 )(1 1p1 1p2 1 1 ). p m E Primitive Roots mod n If n is an integer then k is a primitive root mod n if k is relatively prime to n, if k 1, k 2,..., k i = 1 mod n are all distinct, and i = φ(n). For example, 3 is a primitive root mod n since 3 1 = 3, 3 2 = 9, 3 3 = 7 and 3 4 = 1, all mod n, and in addition, φ(10) = 4. There are no primitive roots mod 12. The only possibilities are in the set of numbers relatively prime to 12: {1, 5, 7, 11}. φ(12) = 4, and 1 2 = 5 2 = 7 2 = 11 2 = 1 mod 12. Here is a list of the first few integers that have a primitive root: 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 17, 18, 19, 22, 23, 25, 26, 27,

### Course notes on Number Theory

Course notes on Number Theory In Number Theory, we make the decision to work entirely with whole numbers. There are many reasons for this besides just mathematical interest, not the least of which is that

### Continued fractions and good approximations.

Continued fractions and good approximations We will study how to find good approximations for important real life constants A good approximation must be both accurate and easy to use For instance, our

### EULER S THEOREM. 1. Introduction Fermat s little theorem is an important property of integers to a prime modulus. a p 1 1 mod p.

EULER S THEOREM KEITH CONRAD. Introduction Fermat s little theorem is an important property of integers to a prime modulus. Theorem. (Fermat). For prime p and any a Z such that a 0 mod p, a p mod p. If

### Introduction to Diophantine Equations

Introduction to Diophantine Equations Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles September, 2006 Abstract In this article we will only touch on a few tiny parts of the field

### CHAPTER 3 Numbers and Numeral Systems

CHAPTER 3 Numbers and Numeral Systems Numbers play an important role in almost all areas of mathematics, not least in calculus. Virtually all calculus books contain a thorough description of the natural,

### 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,

### Repeating Decimals. where the bar over the six block set of digits indicates that that block repeats indefinitely.

Warm up problems. Repeating Decimals a. Find the decimal expressions for the fractions What interesting things do you notice? b. Repeat the problem for the fractions What is interesting about these answers?

### Session 7 Fractions and Decimals

Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,

### Congruences. Robert Friedman

Congruences Robert Friedman Definition of congruence mod n Congruences are a very handy way to work with the information of divisibility and remainders, and their use permeates number theory. Definition

### Homework 5 Solutions

Homework 5 Solutions 4.2: 2: a. 321 = 256 + 64 + 1 = (01000001) 2 b. 1023 = 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = (1111111111) 2. Note that this is 1 less than the next power of 2, 1024, which

### Euler s Totient Theorem

Euler s Totient Theorem Misha Lavrov ARML Practice 11/11/2012 Example We want to be able to solve the following type of problem: Problem (VTRMC 2012/4.).. 3 What are the last two digits of 3 33. }{{} 2012

### It is time to prove some theorems. There are various strategies for doing

CHAPTER 4 Direct Proof It is time to prove some theorems. There are various strategies for doing this; we now examine the most straightforward approach, a technique called direct proof. As we begin, it

3. QUADRATIC CONGRUENCES 3.1. Quadratics Over a Finite Field We re all familiar with the quadratic equation in the context of real or complex numbers. The formula for the solutions to ax + bx + c = 0 (where

### Decimal Expansion of Rational Numbers

Decimal Expansion of Rational Numbers Helmer Aslaksen Dept. of Teacher Education & Dept. of Mathematics University of Oslo helmer.aslaksen@gmail.com www.math.nus.edu.sg/aslaksen/ Why is 0.999... = 1? We

### 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

### 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.

### Geometric Series. On the other hand, if 0 <r<1, then the exponential function of base r, the function g(x) =r x, has a graph that looks like this:

Geometric Series In the previous chapter we saw that if a>, then the exponential function with base a, the function f(x) =a x, has a graph that looks like this: On the other hand, if 0

### ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

### Our Primitive Roots. Chris Lyons

Our Primitive Roots Chris Lyons Abstract When n is not divisible by 2 or 5, the decimal expansion of the number /n is an infinite repetition of some finite sequence of r digits. For instance, when n =

### 10 k + pm pm. 10 n p q = 2n 5 n p 2 a 5 b q = p

Week 7 Summary Lecture 13 Suppose that p and q are integers with gcd(p, q) = 1 (so that the fraction p/q is in its lowest terms) and 0 < p < q (so that 0 < p/q < 1), and suppose that q is not divisible

### Students in their first advanced mathematics classes are often surprised

CHAPTER 8 Proofs Involving Sets Students in their first advanced mathematics classes are often surprised by the extensive role that sets play and by the fact that most of the proofs they encounter are

### 47 Numerator Denominator

JH WEEKLIES ISSUE #22 2012-2013 Mathematics Fractions Mathematicians often have to deal with numbers that are not whole numbers (1, 2, 3 etc.). The preferred way to represent these partial numbers (rational

### 2 The Euclidean algorithm

2 The Euclidean algorithm Do you understand the number 5? 6? 7? At some point our level of comfort with individual numbers goes down as the numbers get large For some it may be at 43, for others, 4 In

### Pre-Algebra Class 3 - Fractions I

Pre-Algebra Class 3 - Fractions I Contents 1 What is a fraction? 1 1.1 Fractions as division............................... 2 2 Representations of fractions 3 2.1 Improper fractions................................

### Mathematics of Cryptography

CHAPTER 2 Mathematics of Cryptography Part I: Modular Arithmetic, Congruence, and Matrices Objectives This chapter is intended to prepare the reader for the next few chapters in cryptography. The chapter

### Elementary Number Theory We begin with a bit of elementary number theory, which is concerned

CONSTRUCTION OF THE FINITE FIELDS Z p S. R. DOTY Elementary Number Theory We begin with a bit of elementary number theory, which is concerned solely with questions about the set of integers Z = {0, ±1,

### Pythagorean Triples. Chapter 2. a 2 + b 2 = c 2

Chapter Pythagorean Triples The Pythagorean Theorem, that beloved formula of all high school geometry students, says that the sum of the squares of the sides of a right triangle equals the square of the

### 9.2 Summation Notation

9. Summation Notation 66 9. Summation Notation In the previous section, we introduced sequences and now we shall present notation and theorems concerning the sum of terms of a sequence. We begin with a

### Is this number prime? Berkeley Math Circle Kiran Kedlaya

Is this number prime? Berkeley Math Circle 2002 2003 Kiran Kedlaya Given a positive integer, how do you check whether it is prime (has itself and 1 as its only two positive divisors) or composite (not

### MODULAR ARITHMETIC. a smallest member. It is equivalent to the Principle of Mathematical Induction.

MODULAR ARITHMETIC 1 Working With Integers The usual arithmetic operations of addition, subtraction and multiplication can be performed on integers, and the result is always another integer Division, on

### U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory

### Prime Numbers. Chapter Primes and Composites

Chapter 2 Prime Numbers The term factoring or factorization refers to the process of expressing an integer as the product of two or more integers in a nontrivial way, e.g., 42 = 6 7. Prime numbers are

### MTH 382 Number Theory Spring 2003 Practice Problems for the Final

MTH 382 Number Theory Spring 2003 Practice Problems for the Final (1) Find the quotient and remainder in the Division Algorithm, (a) with divisor 16 and dividend 95, (b) with divisor 16 and dividend -95,

### Chapter 6. Number Theory. 6.1 The Division Algorithm

Chapter 6 Number Theory The material in this chapter offers a small glimpse of why a lot of facts that you ve probably nown and used for a long time are true. It also offers some exposure to generalization,

### 5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

MATH 13150: Freshman Seminar Unit 8 1. Prime numbers 1.1. Primes. A number bigger than 1 is called prime if its only divisors are 1 and itself. For example, 3 is prime because the only numbers dividing

### 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

### Problem Set 5. AABB = 11k = (10 + 1)k = (10 + 1)XY Z = XY Z0 + XY Z XYZ0 + XYZ AABB

Problem Set 5 1. (a) Four-digit number S = aabb is a square. Find it; (hint: 11 is a factor of S) (b) If n is a sum of two square, so is 2n. (Frank) Solution: (a) Since (A + B) (A + B) = 0, and 11 0, 11

### COMPASS Numerical Skills/Pre-Algebra Preparation Guide. Introduction Operations with Integers Absolute Value of Numbers 13

COMPASS Numerical Skills/Pre-Algebra Preparation Guide Please note that the guide is for reference only and that it does not represent an exact match with the assessment content. The Assessment Centre

### Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00

18.781 Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00 Throughout this assignment, f(x) always denotes a polynomial with integer coefficients. 1. (a) Show that e 32 (3) = 8, and write down a list

### A fairly quick tempo of solutions discussions can be kept during the arithmetic problems.

Distributivity and related number tricks Notes: No calculators are to be used Each group of exercises is preceded by a short discussion of the concepts involved and one or two examples to be worked out

### Permutation Groups. Rubik s Cube

Permutation Groups and Rubik s Cube Tom Davis tomrdavis@earthlink.net May 6, 2000 Abstract In this paper we ll discuss permutations (rearrangements of objects), how to combine them, and how to construct

### 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

### 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

### a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

### Preliminary Mathematics

Preliminary Mathematics The purpose of this document is to provide you with a refresher over some topics that will be essential for what we do in this class. We will begin with fractions, decimals, and

### Induction Problems. Tom Davis November 7, 2005

Induction Problems Tom Davis tomrdavis@earthlin.net http://www.geometer.org/mathcircles November 7, 2005 All of the following problems should be proved by mathematical induction. The problems are not necessarily

### 1) A very simple example of RSA encryption

Solved Examples 1) A very simple example of RSA encryption This is an extremely simple example using numbers you can work out on a pocket calculator (those of you over the age of 35 45 can probably even

### 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

### Math Circle Beginners Group October 18, 2015

Math Circle Beginners Group October 18, 2015 Warm-up problem 1. Let n be a (positive) integer. Prove that if n 2 is odd, then n is also odd. (Hint: Use a proof by contradiction.) Suppose that n 2 is odd

### Notes on Factoring. MA 206 Kurt Bryan

The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor

### We now explore a third method of proof: proof by contradiction.

CHAPTER 6 Proof by Contradiction We now explore a third method of proof: proof by contradiction. This method is not limited to proving just conditional statements it can be used to prove any kind of statement

### CLASS 3, GIVEN ON 9/27/2010, FOR MATH 25, FALL 2010

CLASS 3, GIVEN ON 9/27/2010, FOR MATH 25, FALL 2010 1. Greatest common divisor Suppose a, b are two integers. If another integer d satisfies d a, d b, we call d a common divisor of a, b. Notice that as

### 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

### Practice Problems for First Test

Mathematicians have tried in vain to this day to discover some order in the sequence of prime numbers, and we have reason to believe that it is a mystery into which the human mind will never penetrate.-

### 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

### MATH 13150: Freshman Seminar Unit 10

MATH 13150: Freshman Seminar Unit 10 1. Relatively prime numbers and Euler s function In this chapter, we are going to discuss when two numbers are relatively prime, and learn how to count the numbers

### b) Find smallest a > 0 such that 2 a 1 (mod 341). Solution: a) Use succesive squarings. We have 85 =

Problem 1. Prove that a b (mod c) if and only if a and b give the same remainders upon division by c. Solution: Let r a, r b be the remainders of a, b upon division by c respectively. Thus a r a (mod c)

### The Laws of Cryptography Cryptographers Favorite Algorithms

2 The Laws of Cryptography Cryptographers Favorite Algorithms 2.1 The Extended Euclidean Algorithm. The previous section introduced the field known as the integers mod p, denoted or. Most of the field

### Lecture 1: Elementary Number Theory

Lecture 1: Elementary Number Theory The integers are the simplest and most fundamental objects in discrete mathematics. All calculations by computers are based on the arithmetical operations with integers

### Mathematical Induction

Mathematical Induction MAT30 Discrete Mathematics Fall 016 MAT30 (Discrete Math) Mathematical Induction Fall 016 1 / 19 Outline 1 Mathematical Induction Strong Mathematical Induction MAT30 (Discrete Math)

### Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition

### Calculus for Middle School Teachers. Problems and Notes for MTHT 466

Calculus for Middle School Teachers Problems and Notes for MTHT 466 Bonnie Saunders Fall 2010 1 I Infinity Week 1 How big is Infinity? Problem of the Week: The Chess Board Problem There once was a humble

### 4. Number Theory (Part 2)

4. Number Theory (Part 2) Terence Sim Mathematics is the queen of the sciences and number theory is the queen of mathematics. Reading Sections 4.8, 5.2 5.4 of Epp. Carl Friedrich Gauss, 1777 1855 4.3.

### Lecture 3. Mathematical Induction

Lecture 3 Mathematical Induction Induction is a fundamental reasoning process in which general conclusion is based on particular cases It contrasts with deduction, the reasoning process in which conclusion

### An Introduction to Number Theory Prime Numbers and Their Applications.

East Tennessee State University Digital Commons @ East Tennessee State University Electronic Theses and Dissertations 8-2006 An Introduction to Number Theory Prime Numbers and Their Applications. Crystal

### Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

Algebra 2 - Chapter Prerequisites Vocabulary Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any. P1 p. 1 1. counting(natural) numbers - {1,2,3,4,...}

### Objectives. Materials

Activity 5 Exploring Infinite Series Objectives Identify a geometric series Determine convergence and sum of geometric series Identify a series that satisfies the alternating series test Use a graphing

### MATH 13150: Freshman Seminar Unit 14

MATH 13150: Freshman Seminar Unit 14 1. Powers in mod p arithmetic In this Unit, we will study powers a n (mod p). It will turn out that these are much easier to compute then one would imagine. Let s recall

### Grade 7/8 Math Circles Sequences and Series

Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Sequences and Series November 30, 2012 What are sequences? A sequence is an ordered

### 1. Sequences as Functions

Geometric Sequences and Series p.. Sequences as Functions A sequence can be thought of as a function, with the input numbers consisting of the natural numbers, and the output numbers being the terms. In

### 1. LINEAR EQUATIONS. A linear equation in n unknowns x 1, x 2,, x n is an equation of the form

1. LINEAR EQUATIONS A linear equation in n unknowns x 1, x 2,, x n is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b, where a 1, a 2,..., a n, b are given real numbers. For example, with x and

### Sequences and Series

Contents 6 Sequences and Series 6. Sequences and Series 6. Infinite Series 3 6.3 The Binomial Series 6 6.4 Power Series 3 6.5 Maclaurin and Taylor Series 40 Learning outcomes In this Workbook you will

### Solutions to Practice Problems

Solutions to Practice Problems March 205. Given n = pq and φ(n = (p (q, we find p and q as the roots of the quadratic equation (x p(x q = x 2 (n φ(n + x + n = 0. The roots are p, q = 2[ n φ(n+ ± (n φ(n+2

### Stupid Divisibility Tricks

Stupid Divisibility Tricks 101 Ways to Stupefy Your Friends Appeared in Math Horizons November, 2006 Marc Renault Shippensburg University Mathematics Department 1871 Old Main Road Shippensburg, PA 17013

### Digital Electronics. 1.0 Introduction to Number Systems. Module

Module 1 www.learnabout-electronics.org Digital Electronics 1.0 Introduction to What you ll learn in Module 1 Section 1.0. Recognise different number systems and their uses. Section 1.1 in Electronics.

### An Interesting Way to Combine Numbers

An Interesting Way to Combine Numbers Joshua Zucker and Tom Davis November 28, 2007 Abstract This exercise can be used for middle school students and older. The original problem seems almost impossibly

### A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions Marcel B. Finan Arkansas Tech University c All Rights Reserved First Draft February 8, 2006 1 Contents 25

### Chapter 10 Expanding Our Number System

Chapter 10 Expanding Our Number System Thus far we have dealt only with positive numbers, and, of course, zero. Yet we use negative numbers to describe such different phenomena as cold temperatures and

### INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS

INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS STEVEN HEILMAN Contents 1. Homework 1 1 2. Homework 2 6 3. Homework 3 10 4. Homework 4 16 5. Homework 5 19 6. Homework 6 21 7. Homework 7 25 8. Homework 8 28

### Algebra I Notes Review Real Numbers and Closure Unit 00a

Big Idea(s): Operations on sets of numbers are performed according to properties or rules. An operation works to change numbers. There are six operations in arithmetic that "work on" numbers: addition,

### Recall that in base 10, the digits of a number are just coefficients of powers of the base (10):

Binary Number System 1 Base 10 digits: 0 1 2 3 4 5 6 7 8 9 Base 2 digits: 0 1 Recall that in base 10, the digits of a number are just coefficients of powers of the base (10): 417 = 4 * 10 2 + 1 * 10 1

### Orders Modulo A Prime

Orders Modulo A Prime Evan Chen March 6, 2015 In this article I develop the notion of the order of an element modulo n, and use it to prove the famous n 2 + 1 lemma as well as a generalization to arbitrary

### THE GOLDEN RATIO AND THE FIBONACCI SEQUENCE

/ 24 THE GOLDEN RATIO AND THE FIBONACCI SEQUENCE Todd Cochrane Everything is Golden 2 / 24 Golden Ratio Golden Proportion Golden Relation Golden Rectangle Golden Spiral Golden Angle Geometric Growth, (Exponential

### 1 Number System. Introduction. Face Value and Place Value of a Digit. Categories of Numbers

RMAT Success Master 3 1 Number System Introduction In the decimal number system, numbers are expressed by means of symbols 0, 1,, 3, 4, 5, 6, 7, 8, 9, called digits. Here, 0 is called an insignificant

### 1 Die hard, once and for all

ENGG 2440A: Discrete Mathematics for Engineers Lecture 4 The Chinese University of Hong Kong, Fall 2014 6 and 7 October 2014 Number theory is the branch of mathematics that studies properties of the integers.

### 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

### 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

### A Prime Investigation with 7, 11, and 13

. Objective To investigate the divisibility of 7, 11, and 13, and discover the divisibility characteristics of certain six-digit numbers A c t i v i t y 3 Materials TI-73 calculator A Prime Investigation

### Math Matters: Why Do I Need To Know This? 1 Amortized loans Monthly mortgage payments

Math Matters: Why Do I Need To Know This? Bruce Kessler, Department of Mathematics Western Kentucky University Episode Eleven 1 Amortized loans Monthly mortgage payments Objective: To illustrate the role

### The Euclidean Algorithm

The Euclidean Algorithm A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS To be successful using this method you have got to know how to divide. If this is something that you have

### CHAPTER 5: MODULAR ARITHMETIC

CHAPTER 5: MODULAR ARITHMETIC LECTURE NOTES FOR MATH 378 (CSUSM, SPRING 2009). WAYNE AITKEN 1. Introduction In this chapter we will consider congruence modulo m, and explore the associated arithmetic called

### 16.1. Sequences and Series. Introduction. Prerequisites. Learning Outcomes. Learning Style

Sequences and Series 16.1 Introduction In this block we develop the ground work for later blocks on infinite series and on power series. We begin with simple sequences of numbers and with finite series

### Kenken For Teachers. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles June 27, 2010. Abstract

Kenken For Teachers Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles June 7, 00 Abstract Kenken is a puzzle whose solution requires a combination of logic and simple arithmetic skills.

### 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

### Generating Functions

Generating Functions If you take f(x =/( x x 2 and expand it as a power series by long division, say, then you get f(x =/( x x 2 =+x+2x 2 +x +5x 4 +8x 5 +x 6 +. It certainly seems as though the coefficient

### 1.6 The Order of Operations

1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative

### Z-TRANSFORMS. 1 Introduction. 2 Review of Sequences

Z-TRANSFORMS. Introduction The Z-transform is a tranform for sequences. Just like the Laplace transform takes a function of t and replaces it with another function of an auxillary variable s, well, the

### Grade 6 Math Circles. Binary and Beyond

Faculty of Mathematics Waterloo, Ontario N2L 3G1 The Decimal System Grade 6 Math Circles October 15/16, 2013 Binary and Beyond The cool reality is that we learn to count in only one of many possible number