Maple Mini-Course, Summer 2001
|
|
|
- Jeffery Simmons
- 9 years ago
- Views:
Transcription
1 Maple Mini-Course, Summer 2001 Jim Carlson June 10, 2001 Contents 1 Introduction 2 2 Loops 4 3 Functions 8 4 Primes 11 5 Diophantine Equations I 14 6 Diophantine Equations II 18 1
2 1 Introduction Maple is a general-purpose computer algebra system. We will learn to use it by doing examples that are relevant to our summer course, mainly number theory. Let s begin with arithmetic: > (2 + 3*4-1)^2; > 5^30; > 12345/321; > evalf(12345/321); > trunc(12345/321); > mod 321; > 30!; > evalf( % ); / Note that Maple tries to do exact arithmetic with integers (whole numbers) and rational numbers (fractions). Maple can deal with very big numbers. Note also the various ways of dealing with the quotient 12345/321. The obvious expression gives the quotient as a fraction in lowest terms. And the expression evalf(12345/321) gives an approximate decimal expansion, while trunc(12345/321) gives the integer quotient. This is what you compute when doing long division. What about the remainder? It is given by mod 321. Consider also the strange expression evalf( % ). The verb evalf means evaluate as a floating point number, and the symbol % stands for the value of previous computation. What we have done is to compute the very large number 30! = in scientific notation. Note also that all Maple expressions end with a semicolon. Grammar and punctuation are even more important in computer programming 2
3 than in English composition. Since cmpturs are not very imaginative, they cnnot understand thngs tht dsobey the rules. Maple has many built-in functions. One of these is sqrt, which computes the square root of a number. Try the following: > sqrt(49); > sqrt(50); You ll note a big difference in the output, since one number is a perfect square, the other is not. Now let s try something fun. We ve listed some myster Maple code below. But try to guess what you will get before you try it, then think about it again after you have tried it. (Reverse-engineering is a time-honored way of learning everything from clock repair to computer programming). > sqrt(2.0); > # etc. The symbol # opens a comment: Maple does ignores the entire line from the first occurence of # onward. Problems 1. Compute 2 2n + 1 for n = Compute 1009 in decimal form. 3. Try this: > A := (7-2*sqrt(5)) / (4 + 3*sqrt(5)); > rationalize(a); > expand( % ); Does the result of this computation express any general pattern? 4. How many ways are there of shuffling a deck of fifty two cards? Find the exact number, and find it also in scientific notation. If you could examine each one of the 52! possible decks in one microsecond, how long would it take to examine them? 5. Compute 1 + 1/2 +1/3 +1/4 +1/5 +1/6 +1/7 as a fraction in lowest terms. Then find the complete decimal expansion. If need be, use code like Digits := 40 to improve the accuracy of your computations. 3
4 6. Find the complete decimal expansion of (a) 1/27, (b) 1/7, (c) 1/13. Can you make some general conclusions about the decimal expansions of rational numbers? Can you prove that these conclusions are true? Calculation = evidence. Proof = certainty + understanding. 7. Consider the number with the repeating decimal expansion Here = , etc. Express the given number as a fraction in lowest terms. Can you make some general conclusions about numbers which have decimal expansions like this? Can you prove that these conclusions are true? 8. Investigate the quantity 2 n mod n for various n. Do you see any patterns? Make a conjecture! Can you prove that your conjecture is true? Conjecture: fancy name for educated guess. 9. Find a number x such that 7x mod 11 = 1. That is, find a number such that when multiplied by 7 and divided by 11 gives a remainder of 1. 2 Loops Now let s consider the following bit of code: > sqrt(2.0); > for i from1 to 10 do sqrt( % ); Before executing it, try to guess what it does. OK, now you ve run the code, and you see that we have done in two lines what the code below does in eleven: > sqrt( 2.0 ); 4
5 A construction like for i from1 to 10 do xxx; where xxx is done over and over again, is called a loop. It is one of the most important computational tools. Our loop does its thing ten times, and uses the loop counter i to keep track of its progress. Let s look at more examples of loops. The next one computes the sum of the first N integers. > N := 10; > S := 0; N := 10 S := 0 > for i from1 to N do S := S + i; S := 1 S := 3 S := 6 S := 10 S := 15 S := 21 S := 28 S := 36 S := 45 S := 55 Of course this example is a little bit silly, since there is a formula for this kind of computation: N(N +1) N = 2 Anyway, despite its silliness, there are lessons to be learned. First, notice that this time we have used variables in our loop. There are three of them, namely i, our loop counter; N, which is the number of terms; and S, which holds the sum which we build up step by step. We assign a value to a variable by an expression like > S := 0; In this case we set the value of S to zero. Now let s try something less silly. We will try to find an approximate value of the sum
6 It is an infinite sum, so the best we can do add up the first N terms: S N = N 2 The S N s are called partial sums. To compute them we tinker with our previous example: > N := 9; S := 0; > for i from1 to N do S := S + 1.0/i^2; The sequence of partial sums S 1, S 2, S 3, etc. is , , , , , , , , , etc. Is there a trend? Is there sum number towards which the S N are getting closer and closer? If there is such a magic number, we call it the limit value, and we write lim S N = L. N What do you think is happening here? Is there really a limit value? If so, can you compute its value accurately to four decimal places? Can you be sure that your computation is correct? Note. If you want to compute S N for N very large, you may not want to display all the intermediate work. Here is a way of doing this: N := 9; S := 0; for i from1 to N do S := S + 1.0/i^2; od: S; We put a colon a the end of the loop instead of a semicolon. This suppress the output. Then we put the statement S; after the loop. It evaluates and displays S so that we can see what the last value of S is. On the other hand, if you want more elaborate intermediate output, you can do this: N := 9; S := 0; for i from1 to N do S := S + 1.0/i^2; print( i, S); Problems 1. You can use a loop to reconsider problem 8 of the previous section. The loop can generate more data if you need it: 6
7 N := 20; for m from 2 to N do print( m, 2^m mod m); What is the pattern? 2. You can generate data to solve equations like 14x = 3 mod 19 by making part of a multiplication table for the numbers modulo 19: N := 19; a := 14; for k from0 to N-1 do print( k, a*k mod N ); What is the solution? Is there a better method for finding it? 3. Investigate the following sums ! + 1 3! + 1 4! + 4. Investigate also the sums ± For the second of these you will need to add some terms, subtract others. Here is a way to do this: > N := 1000; S := 0; for i from1 to N do if type(i,odd) then S := S + 1.0/i; else S := S - 1.0/i; fi; S; Note the use of the conditional statement, if X then P; else Q; fi; If X is true, then we do P. Otherwise we do Q. The else clause is optional. 7
8 Notes Other than simple one-line expressions like evalf( sqrt( 2 ) ), you ve learned only two programming structures: loops (the for-do statement), and conditionals (the if-then-else statement). But you can do a great deal of interesting and useful computing with these two structures and their close relatives. 3 Functions We have seen that Maple has various built-in functions, like sqrt. We can also define our own functions, like the one below: f(x) = 1 ( ) 3 2 x + x (1) The mystery function is defined like this in Maple: f := x -> (1/2)*(3/x + x); Then we can compute its values, e.g., f(2), f(11), f(2.34), etc. We can also compute expressions like f( u + 1/v ). And we can make a graph of f. Here is how we graph f on the interval [0, 5] = { x 0 x 5 }: plot( f(x), x = 0..5 ); If you want to know more about plot, try?plot The graph of f is nice looking, but what is really interesting is to investigate the sequence 1.0, f(1.0), f(f(1.0)), f(f(f(1.0))),... If we compute by hand, we get which we could also write as 1.0, 2.0, 1.75, 1.732,..., x 0,x 1,x 2,x 3,... Note that the sequence satisfies the rule x n+1 = f(x n ), which just says apply f to get the next term of the sequence from the previous one. Of course we have to have a place to start: x 0 =1. 8
9 To investigate the sequence experimentally by hand is tedious. A calculator helps, and a computer helps even more. Here is some Maple code which helps avoid the tedium: x := 1.0; for i from1 to 10 do x := f(x); All we do is repeatedly replace x by f(x). Try the code. How does the sequence { x n } behave? Can you explain its behavior? Can you use this behavior to do something else? Problems 1. Here is a way of getting an approximate root for an equation like x 3 +2x =1. First, note that the related equation x 3 = 1 has an exact root, x =1. Next, rewrite the equation as x = 1 x3 2.0 and use this to generate a sequence with x 0 =1,x 1 = f(x 0 ), x 2 = f(x 1 ), etc. The sequence begins like this: , , ,... In fact, the sequence converges to a limit L: lim x n = L n and the limit is a root of the equation. Use Maple to find a root accurate to six decimal places. 2. Find a root the equation x x = 1. Examine the related equations x 3 + ax = 1 for various a. Describe your findings. 3. Let f(x) =(1/2)(5/x + x). Examine the sequence determined by the equations x 0 =1 and x n+1 = f(x n ) What can you say about the limit (if any) of this sequence? 9
10 4. A value x = c is a fixed point of f if f(c) =c. Does the function defined in (1) have a fixed point? Does this explain anything? 5. Suppose that a sequence { x n } is generated by the rule x n+1 = f(x n ). Suppose that one encounters a repeated value in the sequence, say x M = x N. What happens? 6. Consider the function f(x) =7x mod 11. Study the sequence defined by repeatedly applying f to a given initial value. Investigate the sequences obtained when the moduli are 12 and 13. Do you see any promising areas of investigation? 7. You have already solved equations like 7x = 1 mod 11. (If you haven t go back and do this before going on!) Now suppose hat we want solve an equation of the form f(x) =y, where, for example, f(x) = 531x mod Sometimes (as is the case here), there are elegant and efficient methods, but for now we will consider a brute force method. The idea is that if there is a solution, it will be an integer in the range 0 x (Why is this?) So we can just compute f(0), f(1), f(2), etc., and stop when when we find an x such that f(x) =y. Here is code which does this: isearch := proc(f,y,a,b) local x; x := a; while ( f(x) <> y ) and ( x <= b ) do x := x + 1; if x <= b then RETURN( x ); else RETURN( NO SOLUTION ); fi; end; The name isearch was chosen to stand for search an interval. We ve built in an error message in case no solution is found. Now try this: > f := u -> 531*u mod 1001; > isearch(f, 1, 0, 1000); > g := w -> 530*u mod 1000; > isearch(g, 1, 0, 999); (a) Could you have predicted the result for g(x) = 1 in advance? (b) Use isearch to solve the equation 531x = 1 mod
11 Notes The while - do loop you saw in the last problem is different from the for - do loop: you can t tell by looking at the loop how many times the loop body will be executed. (The body is the part between do and od). 4 Primes Let s use what we have learned so far to design a function which factors an integer into primes. The idea for factoring an integer n is ( ) Set a trial divisor d to 2. If d divides n, write down d, then replace n by n/d. Otherwise increase d by 1. If n = 1, stop. Otherwise go to ( ). Here is a function, nfactor, which does the job. First, an example: > nfactor( 1234 ); > nfactor( ); [2, 617] [17, 751, 967] You can easily check that the factors are correct. Note the asymmetry of the factoring problem: checking factors is easy, but finding them is hard. The heart of nfactor is the code below, which is a new kind of loop: while m> 1 do if m mod d = 0 then print( d ); m:= m/d; else d := d + 1; fi; The part between while and od is the loop body. It is executed (run) as long as the condition n>1 holds. In other words, the loop runs as long as there are factors to be found. The loop sits inside a definition of nfactor which is a function of the variable n. The structure of such a definition is 11
12 < function-name > = proc( < list of variables > ) < definition > end; Putting the loop inside the procedure definition and adding a few other important ingredients, we get the working code: nfactor := proc( n ) local d, m; m:= n; d := 2; end; while m> 1 do if m mod d = 0 then print( d ); m:= m/d; else d := d + 1; fi; The variables d, n are local, and cannot be used or seen outside the procedure definition. Our factoring program can be improved in many ways. One way is to accumulate the factors in a list L, then return the list as the value of nfactor. This is the version of the factoring program used in the examples above: a typical list is [17, 751, 967]. Here is what you need to start using lists. First, we define a list by statements like the ones below: A := []; B := [1, 2, 3, 4]; C := [17, 751, 967]; The first if these lists is the empty list. Second, we can access list elements by expressions like C[1]; In this case, C[1] = 17. For the number of elements in a list, or number of operands, use nops(l). To concatenate two lists, use an expression like [ op(b}, op(c) ]; 12
13 All op does is to strip away the brackets on both sides. Note what happens if you don t do this: > [ A, B ]; [[1,2,3,4],[17, 751, 967]]; What do you think the value of [ op(a), op(b) ] is? Now we can modify our original version of nfactor to produce the improved one: nfactor := proc( n ) local d, m, F; m:= n; d := 2; F := []; while m> 1 do if m mod d = 0 then F := [ op(f), d ]; m:= m/d; else d := d + 1; fi; RETURN( F ); end; Notice the expression RETURN( F ). It determines what value is returned when we say something like nfactor(1234). We could say something else, e.g., RETURN( m), but this would be stupid. Problems 1. Factor the following numbers: 1234, 1235, 1236, Any observations or questions for investigation? 2. Factor the following numbers: , , , Any observations or questions for investigation? 3. Consider numbers of the the form 2 n 1. Any ideas about when these might be prime? 4. Let s consider the factorization of random numbers. The easiest way to do this is to use Maple s rand function: 13
14 for i from1 to 10 do rand(); The result of this bit of code is 10 random numbers. To factor ten random numbers, try this: for i from1 to 10 do nfactor( rand() ); Any observations? Perhaps more experimentation and thought is necessary? 5. To study random numbers in a specified range, say 1000 to 2000, do this: RN := rand( ); for i from1 to 10 do nfactor( RN() ); Any observations? Perhaps more experimentation is necessary? Note: rand is a function of zero arguments, just as sqrt is a function of one argument. That is why we must write rand(), just as we may write sqrt(49), sqrt(11.0), etc. 6. Consider the numbers F n =2 2n +1 On the basis of the evidence for n =1, 2, 3, 4, the French mathematician Pierre Fermat ( ) conjectured that these numbers are prime. What can you say about Fermat s problem? 7. Can nfactor be improved (speeded up)? Notes Diophantine Equations I A Diophantine equation is an equation like x 2 + y 2 = z 2 14
15 with integer equations for which we seek integer (or sometimes rational) solutions. Integer solutions to this equation are Pythagorean triplets: they represent right triangles with integer-length sides. Now it is easy to check whether a proposed solution of a Diophantine equation really is one. For example, the vector (x, y, z) =(3, 4, 5) is a solution, but (x, y, z) =(3, 4, 6) is not. Consequently we can use trial and error to search for solutions. Such a brute force attack is tedious and slow, but can be speeded up enormously with a computer. We ilustrate this with the ptriple search code below. It finds all solutions satsifying the bounds a x y z b. For example, if we say ptriplesearch(2,20), we get the output 3, 4, 5 5, 12, 13 6, 8, 10 8, 15, 17 9, 12, 15 12, 16, 20 6 Thus there are just six triplets in the given range. Here is the code: ptriplesearch := proc(a,b) local i,j,k,count; count := 0; for i froma to b do for j fromi to b do for k fromj to b do if i^2 + j^2 = k^2 then print( i, j, k ); count := count + 1; fi; RETURN( count ); end; Note that in the output of ptriplesearch(2,20), some of the triplets are multiples of others. For example, (6,8,10) is twice the vector (3,4,5). We can exclude these by not recording triples (x, y, z) such that x and y have a common factor. (Why?) The gcd function computes the greatest common divisor of two numbers, e.g., gcd(20,15) = 5. To exclude the uninteresting solutions, we change the line if i^2 + j^2 = k^2 15
16 to if i^2 + j^2 = k^2 and gcd(i,j) = 1 Note that the gcd function is part of Maple. In the next section we will see how to design such a function from scratch. Note. Pythagorean triples like (3,4,5) that have no common factors are called primitive. Brute force attack The kind of brute force attack that we used to find Pythagorean triplets can be mounted against any Diophantine equation. Consider, for example, the cubic equation y 2 = x ; We can look for solutions in the box 0 x a, 0 x b by using the boxsearch(f,a,b) code listed below, where f := (x,y) -> y^2 - x^3-17; For example, to find solutions in the box 0 x 100, 0 y 100, we run the code boxsearch(f,100,100); The solutions in this range are (2, 5), (4, 9), and (8, 23). Anyway, here is the code: boxsearch := proc(f,a,b) local i,j; for i from0 to a do for j from0 to b do if f(i,j) = 0 then print((i,j)); fi; od: end: Problems 1. Modify ptriplesearch as suggested above, and use it to list all primitive Pythagorean triples satisfying 1 x y z 100. How many are there. Do you noitice any patterns? 16
17 2. It is clear that a Pythagorean triple with x y z must actually satisfy y<z. In fact, x<yas well. Try to prove both facts. 3. In view of the previous problem, we ought modify the ptriplesearch code to inspect only triplets such that x<y<z. Here is the needed change: for i froma to b do for j fromi+1 to b do for k fromj+1 to b do Now let s do some counting: (a) how many integer vectors satisfy 1 x< y<z N? (b) let δ(n) be the density of primitive Pythagorean triples in the given search space: the ratio of the number of such triples satisfying the inequality to the number of all integer vectors satisfying the inequality. Compute δ(100). Do the odds favor finding Pythagorean triplets? 4. Its time to talk about running time. We run the following experiment to compute the number of seconds needed to execute the ptriplesearch code for inputs of various sizes: > time( ptriplesearch(1,100) ); > time( ptriplesearch(1,200) ); > time( ptriplesearch(1,400) ); On my computer I found the following: N T Note that when we double N, we multiply the running time by a factor of roughly eight. To be more precise, we find log 2 (35/4) 3.13, log 2 (299/32) 3.09, for an average value of about Thus ( ) 3.11 N T (N) In other words, if we double N we multiply T (N) by a factor of Use this empirical scaling law to determine how long it will take to execute ptriplesearch(1,n) for N = 1000, N = 10, 000, and N = 100, 000. Commment on your results. 17
18 5. Find running times for ptriplesearch(1,n) on your computer, and find the empirical relation between T and N. 6. We ve just spent some effort finding an empirical relation between T and N. Let s go back and see what we can accomplish with pure thought. We ll do a back of the envelope computation. The vectors to be inspected lie in an N N N cube. Moreover, the number of integer vectors in the cube 1 x N, 1 y N, 1 z N is exactly N 3. The number of integer vectors (aka lattice points) satisfying 1 x<y<z N is roughly some fixed fraction of the cube. Thus the number of lattice points to be inspected is roughly cn 3. Therefore if we double N, we multiply the running time by a factor of eight. Our back-of-the-envelope calculation is pretty good agreement with our empirically derived scaling law. Now find the constant c. 7. Find all integer solutions of y 2 = x in the box 0 x 1000, 0 y Research question: Can we determine all integer solutions of the given equation? 8. Does the equation y 2 = x have rational solutions (fractions) which are not integers? If there are such solutions, are they rare or abundant? 9. What does the set of real solutions to y 2 = x look like? You should first try to work the general shape of the solution set by hand. Then experiment with code like > with( plots ); # load plots package > L := 10; # define a box > implicitplot( y^2 - x^3-17, x = -L..L, y = -L..L ); 10. Find a complex solution of y 2 = x which is not real. Research question: what does the set of complex solutions look like? 6 Diophantine Equations II We are now going to show how to compute the greatest common divisor (gcd) of two numbers using what is called recursion, a very powerful programming tool. The goal is a function gcd which such that gcd(6, 15) = 3, gcd(7, 11)=1, etc. As a bonus, we we learn how to very efficiently solve linear Diophantine equations, that is, equations of the form ax + by = c. Before we can design gcd, we must understand the relevant mathematics. The first observation is that given any two positive integers, we can divide one 18
19 by the other, producing an integer quotient and remainder. This is what long division does for us. For example, the quotient of by 321 is 38, and the remainder is 147. In general, if we divide a by b, we obtain a quotient q and a remainder r, where a = bq + r, 0 r<b This is what is called the division algorithm. Now suppose that d divides both a and b. That is, d is a common divisor. Since r = a bq, d also divides r: it divides the right-hand side of the previous equation and so also divides the left-hand side. Therefore divisors of a and b are divisors of b and r. Is the reverse true? Well, if d divides b and r, then it also divides the right-hand side of a = bq + r, and so it divides the left-hand side. We have arrived at the following important result: gcd(a, b) =gcd(b, r). We need just one more observation. Suppose b divides a. Then what is the greatest common divisor? Well, this is clear: if b divides a then gcd(a, b) =b. Now we can design our gcd function. We ll call it xgcd since it is experimental: xgcd := proc(a,b) local r; r := a mod b; # print(a.b,r); if r = 0 then RETURN(b); else xgcd(b,r); fi; end; Our definition is recursive because it curves back on itself: the definition of xgcd refers to xgcd. Notice how we have faithully translated our two mathematical properties of gcd into bits of code. This is generally the way it is with recursively defined functions. Linear Diophantine Equations Let us now take up the problem of solving Diophantine equations of the form ax + by = c These linear equations are completely understood, and there is a very efficient method for finding solutions which works whenever the gcd of a and b divides c. It is an elaboration of the Euclidean algorithm, and operates as follows. Either 19
20 b divides a or it does not. In the first case, b is the gcd of a and b, so it divides c. Then (x, y) =(0, c/b) is a solution. In the second case, write a = bq + r using the division algorithm, and then substitute into the given equation to obtain (bq + r)x + by = c. Rearrange as b(qx + y)+rx = c. Introduce a new variable by u = qx + y, and subsitute this into the previous equation to obtain bu + rx = c Now the gcd of b and r is the same as that of a and b, so the last equation is solvable. We use a solution of this smaller equation to solve the original one using the substitution of variables. And now we embody these ideas in the Maple code below. You should check that the two parts of the then else clause correspond to the two mathematical cases just considered. xsolve := proc(a,b,c) local r, q, s, u, x; r := a m od b; if r = 0 then RETURN( [0,c/b] ); else s := xsolve( b, r, c ); u := s[1]; x := s[2]; q := (a-r)/b; RETURN( [ x, u - q*x ] ); fi; end: Problems 1. Find the gcd of and Check your results with nfactor. 2. Run a contest between nfactor, xgcd, and gcd for finding the gcd of he numbers in the previous problem. 3. Repeat the previous problem with and
21 4. Solve 113x + 301y = 1. Check your solution! 5. Solve x y = 1. Check your solution! Then run a contest between xsolve and boxsearch. Note once again that checking that solutions are indeed solutions easy, while finding solutions is hard. 21
Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)
Chapter 23 Squares Modulo p Revised Version of Chapter 23 We learned long ago how to solve linear congruences ax c (mod m) (see Chapter 8). It s now time to take the plunge and move on to quadratic equations.
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
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
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
Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test
Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important
Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II
Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II Last week: How to find one solution to a linear Diophantine equation This week: How to find all solutions to a linear Diophantine
9. POLYNOMIALS. Example 1: The expression a(x) = x 3 4x 2 + 7x 11 is a polynomial in x. The coefficients of a(x) are the numbers 1, 4, 7, 11.
9. POLYNOMIALS 9.1. Definition of a Polynomial A polynomial is an expression of the form: a(x) = a n x n + a n-1 x n-1 +... + a 1 x + a 0. The symbol x is called an indeterminate and simply plays the role
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
Algebra Unpacked Content For the new Common Core standards that will be effective in all North Carolina schools in the 2012-13 school year.
This document is designed to help North Carolina educators teach the Common Core (Standard Course of Study). NCDPI staff are continually updating and improving these tools to better serve teachers. Algebra
Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.
Math 0980 Chapter Objectives Chapter 1: Introduction to Algebra: The Integers. 1. Identify the place value of a digit. 2. Write a number in words or digits. 3. Write positive and negative numbers used
3.2 The Factor Theorem and The Remainder Theorem
3. The Factor Theorem and The Remainder Theorem 57 3. The Factor Theorem and The Remainder Theorem Suppose we wish to find the zeros of f(x) = x 3 + 4x 5x 4. Setting f(x) = 0 results in the polynomial
Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 [email protected].
Some Polynomial Theorems by John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 [email protected] This paper contains a collection of 31 theorems, lemmas,
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
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
Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson
Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement
JUST THE MATHS UNIT NUMBER 1.8. ALGEBRA 8 (Polynomials) A.J.Hobson
JUST THE MATHS UNIT NUMBER 1.8 ALGEBRA 8 (Polynomials) by A.J.Hobson 1.8.1 The factor theorem 1.8.2 Application to quadratic and cubic expressions 1.8.3 Cubic equations 1.8.4 Long division of polynomials
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.
CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY
January 10, 2010 CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY The set of polynomials over a field F is a ring, whose structure shares with the ring of integers many characteristics.
Factoring Algorithms
Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors
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
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
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks Welcome to Thinkwell s Homeschool Precalculus! We re thrilled that you ve decided to make us part of your homeschool curriculum. This lesson
Copyrighted Material. Chapter 1 DEGREE OF A CURVE
Chapter 1 DEGREE OF A CURVE Road Map The idea of degree is a fundamental concept, which will take us several chapters to explore in depth. We begin by explaining what an algebraic curve is, and offer two
Lecture 3: Finding integer solutions to systems of linear equations
Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture
If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?
Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question
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
CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA
We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical
Factoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen
CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: [email protected] URL: http://home.imf.au.dk/niels/ Contents
Lagrange Interpolation is a method of fitting an equation to a set of points that functions well when there are few points given.
Polynomials (Ch.1) Study Guide by BS, JL, AZ, CC, SH, HL Lagrange Interpolation is a method of fitting an equation to a set of points that functions well when there are few points given. Sasha s method
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS John A. Beachy Northern Illinois University 2014 ii J.A.Beachy This is a supplement to Abstract Algebra, Third Edition by John A. Beachy and William D. Blair
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
Algebra I Vocabulary Cards
Algebra I Vocabulary Cards Table of Contents Expressions and Operations Natural Numbers Whole Numbers Integers Rational Numbers Irrational Numbers Real Numbers Absolute Value Order of Operations Expression
Integer Factorization using the Quadratic Sieve
Integer Factorization using the Quadratic Sieve Chad Seibert* Division of Science and Mathematics University of Minnesota, Morris Morris, MN 56567 [email protected] March 16, 2011 Abstract We give
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
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples Brian Hilley Boston College MT695 Honors Seminar March 3, 2006 1 Introduction 1.1 Mazur s Theorem Let C be a
3.6. The factor theorem
3.6. The factor theorem Example 1. At the right we have drawn the graph of the polynomial y = x 4 9x 3 + 8x 36x + 16. Your problem is to write the polynomial in factored form. Does the geometry of the
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
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
Welcome to Math 19500 Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013
Welcome to Math 19500 Video Lessons Prof. Department of Mathematics The City College of New York Fall 2013 An important feature of the following Beamer slide presentations is that you, the reader, move
Mathematics 31 Pre-calculus and Limits
Mathematics 31 Pre-calculus and Limits Overview After completing this section, students will be epected to have acquired reliability and fluency in the algebraic skills of factoring, operations with radicals
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,...}
Algebra 1 Course Title
Algebra 1 Course Title Course- wide 1. What patterns and methods are being used? Course- wide 1. Students will be adept at solving and graphing linear and quadratic equations 2. Students will be adept
Factoring Polynomials
Factoring Polynomials Hoste, Miller, Murieka September 12, 2011 1 Factoring In the previous section, we discussed how to determine the product of two or more terms. Consider, for instance, the equations
Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures
Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it
Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.
[Chap. ] Pythagorean Triples 6 (b) The table suggests that in every primitive Pythagorean triple, exactly one of a, b,orc is a multiple of 5. To verify this, we use the Pythagorean Triples Theorem to write
Unique Factorization
Unique Factorization Waffle Mathcamp 2010 Throughout these notes, all rings will be assumed to be commutative. 1 Factorization in domains: definitions and examples In this class, we will study the phenomenon
7. Some irreducible polynomials
7. Some irreducible polynomials 7.1 Irreducibles over a finite field 7.2 Worked examples Linear factors x α of a polynomial P (x) with coefficients in a field k correspond precisely to roots α k [1] of
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
SUNY ECC. ACCUPLACER Preparation Workshop. Algebra Skills
SUNY ECC ACCUPLACER Preparation Workshop Algebra Skills Gail A. Butler Ph.D. Evaluating Algebraic Epressions Substitute the value (#) in place of the letter (variable). Follow order of operations!!! E)
PYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
Common Core Unit Summary Grades 6 to 8
Common Core Unit Summary Grades 6 to 8 Grade 8: Unit 1: Congruence and Similarity- 8G1-8G5 rotations reflections and translations,( RRT=congruence) understand congruence of 2 d figures after RRT Dilations
Faster deterministic integer factorisation
David Harvey (joint work with Edgar Costa, NYU) University of New South Wales 25th October 2011 The obvious mathematical breakthrough would be the development of an easy way to factor large prime numbers
Computations in Number Theory Using Python: A Brief Introduction
Computations in Number Theory Using Python: A Brief Introduction Jim Carlson March 2003 Contents 1 Introduction 1 2 Python as a calculator 4 3 Case study: factoring 8 4 Loops and conditionals 11 5 Files
SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me
SYSTEMS OF PYTHAGOREAN TRIPLES CHRISTOPHER TOBIN-CAMPBELL Abstract. This paper explores systems of Pythagorean triples. It describes the generating formulas for primitive Pythagorean triples, determines
SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT
UNIT 3 SQUAREQUARE AND CUBEUBE (A) Main Concepts and Results A natural number is called a perfect square if it is the square of some natural number. i.e., if m = n 2, then m is a perfect square where m
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
Five fundamental operations. mathematics: addition, subtraction, multiplication, division, and modular forms
The five fundamental operations of mathematics: addition, subtraction, multiplication, division, and modular forms UC Berkeley Trinity University March 31, 2008 This talk is about counting, and it s about
DRAFT. Algebra 1 EOC Item Specifications
DRAFT Algebra 1 EOC Item Specifications The draft Florida Standards Assessment (FSA) Test Item Specifications (Specifications) are based upon the Florida Standards and the Florida Course Descriptions as
Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm
MTHSC 412 Section 2.4 Prime Factors and Greatest Common Divisor Greatest Common Divisor Definition Suppose that a, b Z. Then we say that d Z is a greatest common divisor (gcd) of a and b if the following
What are the place values to the left of the decimal point and their associated powers of ten?
The verbal answers to all of the following questions should be memorized before completion of algebra. Answers that are not memorized will hinder your ability to succeed in geometry and algebra. (Everything
Integer roots of quadratic and cubic polynomials with integer coefficients
Integer roots of quadratic and cubic polynomials with integer coefficients Konstantine Zelator Mathematics, Computer Science and Statistics 212 Ben Franklin Hall Bloomsburg University 400 East Second Street
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.
Prentice Hall: Middle School Math, Course 1 2002 Correlated to: New York Mathematics Learning Standards (Intermediate)
New York Mathematics Learning Standards (Intermediate) Mathematical Reasoning Key Idea: Students use MATHEMATICAL REASONING to analyze mathematical situations, make conjectures, gather evidence, and construct
Year 9 set 1 Mathematics notes, to accompany the 9H book.
Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H
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
Sequences and Series
Sequences and Series Consider the following sum: 2 + 4 + 8 + 6 + + 2 i + The dots at the end indicate that the sum goes on forever. Does this make sense? Can we assign a numerical value to an infinite
FACTORISATION YEARS. A guide for teachers - Years 9 10 June 2011. The Improving Mathematics Education in Schools (TIMES) Project
9 10 YEARS The Improving Mathematics Education in Schools (TIMES) Project FACTORISATION NUMBER AND ALGEBRA Module 33 A guide for teachers - Years 9 10 June 2011 Factorisation (Number and Algebra : Module
Prentice Hall Connected Mathematics 2, 7th Grade Units 2009
Prentice Hall Connected Mathematics 2, 7th Grade Units 2009 Grade 7 C O R R E L A T E D T O from March 2009 Grade 7 Problem Solving Build new mathematical knowledge through problem solving. Solve problems
Lesson 9: Radicals and Conjugates
Student Outcomes Students understand that the sum of two square roots (or two cube roots) is not equal to the square root (or cube root) of their sum. Students convert expressions to simplest radical form.
Alex, I will take congruent numbers for one million dollars please
Alex, I will take congruent numbers for one million dollars please Jim L. Brown The Ohio State University Columbus, OH 4310 [email protected] One of the most alluring aspectives of number theory
Lies My Calculator and Computer Told Me
Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing
SOLVING POLYNOMIAL EQUATIONS
C SOLVING POLYNOMIAL EQUATIONS We will assume in this appendix that you know how to divide polynomials using long division and synthetic division. If you need to review those techniques, refer to an algebra
Mathematics. Accelerated GSE Analytic Geometry B/Advanced Algebra Unit 7: Rational and Radical Relationships
Georgia Standards of Excellence Frameworks Mathematics Accelerated GSE Analytic Geometry B/Advanced Algebra Unit 7: Rational and Radical Relationships These materials are for nonprofit educational purposes
On Generalized Fermat Numbers 3 2n +1
Applied Mathematics & Information Sciences 4(3) (010), 307 313 An International Journal c 010 Dixie W Publishing Corporation, U. S. A. On Generalized Fermat Numbers 3 n +1 Amin Witno Department of Basic
FACTORING LARGE NUMBERS, A GREAT WAY TO SPEND A BIRTHDAY
FACTORING LARGE NUMBERS, A GREAT WAY TO SPEND A BIRTHDAY LINDSEY R. BOSKO I would like to acknowledge the assistance of Dr. Michael Singer. His guidance and feedback were instrumental in completing this
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.
11 Ideals. 11.1 Revisiting Z
11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(
This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.
Algebra I Overview View unit yearlong overview here Many of the concepts presented in Algebra I are progressions of concepts that were introduced in grades 6 through 8. The content presented in this course
Polynomial Degree and Finite Differences
CONDENSED LESSON 7.1 Polynomial Degree and Finite Differences In this lesson you will learn the terminology associated with polynomials use the finite differences method to determine the degree of a polynomial
Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.
Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize
3.6 The Real Zeros of a Polynomial Function
SECTION 3.6 The Real Zeros of a Polynomial Function 219 3.6 The Real Zeros of a Polynomial Function PREPARING FOR THIS SECTION Before getting started, review the following: Classification of Numbers (Appendix,
FACTORING. n = 2 25 + 1. fall in the arithmetic sequence
FACTORING The claim that factorization is harder than primality testing (or primality certification) is not currently substantiated rigorously. As some sort of backward evidence that factoring is hard,
Lesson 9: Radicals and Conjugates
Student Outcomes Students understand that the sum of two square roots (or two cube roots) is not equal to the square root (or cube root) of their sum. Students convert expressions to simplest radical form.
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
Higher Education Math Placement
Higher Education Math Placement Placement Assessment Problem Types 1. Whole Numbers, Fractions, and Decimals 1.1 Operations with Whole Numbers Addition with carry Subtraction with borrowing Multiplication
An Innocent Investigation
An Innocent Investigation D. Joyce, Clark University January 2006 The beginning. Have you ever wondered why every number is either even or odd? I don t mean to ask if you ever wondered whether every number
arxiv:1112.0829v1 [math.pr] 5 Dec 2011
How Not to Win a Million Dollars: A Counterexample to a Conjecture of L. Breiman Thomas P. Hayes arxiv:1112.0829v1 [math.pr] 5 Dec 2011 Abstract Consider a gambling game in which we are allowed to repeatedly
Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem.
Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem. Solve word problems that call for addition of three whole numbers
Integrals of Rational Functions
Integrals of Rational Functions Scott R. Fulton Overview A rational function has the form where p and q are polynomials. For example, r(x) = p(x) q(x) f(x) = x2 3 x 4 + 3, g(t) = t6 + 4t 2 3, 7t 5 + 3t
Determinants can be used to solve a linear system of equations using Cramer s Rule.
2.6.2 Cramer s Rule Determinants can be used to solve a linear system of equations using Cramer s Rule. Cramer s Rule for Two Equations in Two Variables Given the system This system has the unique solution
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
Congruent Number Problem
University of Waterloo October 28th, 2015 Number Theory Number theory, can be described as the mathematics of discovering and explaining patterns in numbers. There is nothing in the world which pleases
SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by
SUBGROUPS OF CYCLIC GROUPS KEITH CONRAD 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by g = {g k : k Z}. If G = g, then G itself is cyclic, with g as a generator. Examples
FACTORING LARGE SEMI-PRIMES
FACTORING LARGE SEMI-PRIMES It is well known that it is difficult to factor a large semi-prime number N into its two prime components. We look more into this problem here and show ways to factor such numbers
Florida Math 0028. Correlation of the ALEKS course Florida Math 0028 to the Florida Mathematics Competencies - Upper
Florida Math 0028 Correlation of the ALEKS course Florida Math 0028 to the Florida Mathematics Competencies - Upper Exponents & Polynomials MDECU1: Applies the order of operations to evaluate algebraic
Primes. Name Period Number Theory
Primes Name Period A Prime Number is a whole number whose only factors are 1 and itself. To find all of the prime numbers between 1 and 100, complete the following exercise: 1. Cross out 1 by Shading in
Algebra II End of Course Exam Answer Key Segment I. Scientific Calculator Only
Algebra II End of Course Exam Answer Key Segment I Scientific Calculator Only Question 1 Reporting Category: Algebraic Concepts & Procedures Common Core Standard: A-APR.3: Identify zeros of polynomials
1.7 Graphs of Functions
64 Relations and Functions 1.7 Graphs of Functions In Section 1.4 we defined a function as a special type of relation; one in which each x-coordinate was matched with only one y-coordinate. We spent most
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
