Redundant Radix Enumeration Systems

Size: px
Start display at page:

Download "Redundant Radix Enumeration Systems"

Transcription

1 Redundant Radix Enumeration Systems CS 860: Automatic Sequences Daniel Roche University of Waterloo 21 November 2006 Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

2 Outline Outline 1 Introduction: An Example from Theoretical Definitions and Results Basic Definitions Necessary and Sufficient Conditions Automatic Sequences for Redundant Number Systems Further Results Derived from the Transducer 3 Application: Carry-Free Addition 4 Conclusions and Open Problems Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

3 Introduction Base 10 with negative digits John Colson ( ): A Short Account of Negativo-affirmative Arithmetick Still base 10, but allow any digit to be positive or negative Denote negative digits by over bar, e.g. 7 = 7 To perform arithmetic operation, convert to small figures first. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

4 Introduction Example: The Algorithm 1 Convert to small figures 2 Perform aritmnetic operation 3 Convert back to standard representation Example Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

5 Introduction Example: The Algorithm 1 Convert to small figures 2 Perform aritmnetic operation 3 Convert back to standard representation Example Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

6 Introduction Example: The Algorithm 1 Convert to small figures 2 Perform aritmnetic operation 3 Convert back to standard representation Example Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

7 Introduction Example: The Algorithm 1 Convert to small figures 2 Perform aritmnetic operation 3 Convert back to standard representation Example Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

8 Introduction Colson s arithmetic method Redundant representation (e.g = 2774) No carries in addition with small figures Biggest advantages in multiplication Fast conversion to/from standard representation Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

9 Theory Definitions Number systems and radix polynomials Definition A number system N is a (v + 1)-tuple of integers (r,d 1,d 2,...,d k ) such that v, r 1 and d 1 < d 2 < < d k. We say that r is the base and D = {d 1,d 2,...,d k } is the digit set of N. Definition Let N be a number system with base r and digit set D. The evaluation function of N is E N : D Z given by: E N (a 0 a 1 a 2 a n ) = a 0 r n + a 1 r n a n 1 r + a n. In particular, the empty string always evaluates to zero. That is, E N (ǫ) = 0. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

10 Theory Definitions Completeness and redundancy Definition A number system N = (r,d) is complete for the set S Z iff n S, w D s.t. E N (w) = n. Definition A number system N = (r,d) is redundant iff there exist two words w 1 and w 2 in D, which do not start with 0, such that E N (w 1 ) = E N (w 2 ). Goal We are interested in number systems which are redundant and complete for N or Z. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

11 Theory Definitions Examples of completeness and redundancy Example N = (2,0,1) is non-redundant and complete for N. Example N = (3,6,2) is redundant but not complete for N. Example N = (3, 1, 0, 1, 2, 3) is redundant and complete for Z. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

12 Theory Conditions A necessary condition on D Definition A set S Z is a complete residue system (CRS) mod r iff S = r and {s mod r s S} = {m mod r m Z}. Theorem If N = (r,d) is redundant and complete for N, then D contains a CRS mod r and D > r. Proof Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

13 Theory Conditions A sufficient condition for D Theorem If the following conditions hold, then N = (r,d) is redundant and complete for the set S: Proof. r 2 D D such that N = (r,d ) is complete for S D > r Just need to show that D > r guarantees redundancy. This is done by Mantua (1976), and repeated in our textbook. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

14 Theory Automaticity N-automaticity Definition Let N = (r,d) be some number system which is complete for N. The sequence (a n ) n 0 over a finite alphabet is N-automatic iff there exists a DFAO M = (Q,D,δ,q 0,,τ) such that a n = τ(δ(q 0,w)), for all n 0 and all w with E N (w) = n. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

15 Theory Example of N-automaticity Automaticity Example (The Thue-Morse Sequence is (2,1,0,1)-automatic) 1 1, ,1 1 1 Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

16 Theory Automaticity A General Transducer to (r, Σ r ) Recall that Σ r is defined to be the standard digit set for base r. Let N = (r,d) be any number system complete for N, with r 2. Define the finite-state transducer T N = (Q,D {0},δ,0,Σ r,λ) with: Q = { m, m + 1,...,0,1,...,n 1}, where m and n are the least non-negative integers such that m(r 1) d n(r 1) d D. δ : Q (D {0}) Q λ : Q (D {0}) Σ r Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

17 Theory Automaticity Definitions of Transition and Output Functions for T N Let q Q and a (D {0}) be arbitrary. Since q,a Z and r 2, q + a = br + c, for some b,c Z with 0 c < r. Then define the transition and output functions by: δ(q,a) = b, λ(q,a) = c. Then δ(q,a) Q and λ(q,a) Σ r, so T N is a valid finite-state transducer. Proof Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

18 Theory Automaticity Examples of the transducer T N Example (N = (k,1,2,...,k)) a/a 0 a < k k/0 0 1 a/a+1 0 a < k 1 k/1 k-1/0 Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

19 Example (N = (3,2,3,5)) 0/0 2/0 0/2 5/ /0 5/2 3/2 2/1 0/1 5/0 3/2 2/0 0/2 1 5/1 2,2 1 3/1 Sample Conversion 523

20 Example (N = (3,2,3,5)) 0/0 2/0 0/2 5/ /0 5/2 3/2 2/1 0/1 5/0 3/2 2/0 0/2 1 5/1 2,2 1 3/1 Sample Conversion 523 0

21 Example (N = (3,2,3,5)) 0/0 2/0 0/2 5/ /0 5/2 3/2 2/1 0/1 5/0 3/2 2/0 0/2 1 5/1 2,2 1 3/1 Sample Conversion

22 Example (N = (3,2,3,5)) 0/0 2/0 0/2 5/ /0 5/2 3/2 2/1 0/1 5/0 3/2 2/0 0/2 1 5/1 2,2 1 3/1 Sample Conversion

23 Example (N = (3,2,3,5)) 0/0 2/0 0/2 5/ /0 5/2 3/2 2/1 0/1 5/0 3/2 2/0 0/2 1 5/1 2,2 1 3/1 Sample Conversion

24 Theory Automaticity Proof that T N maps (r, D) to (r, Σ r ) - Part 1 Lemma Let N = (r,d) be some number system and w D n. Then if T(w R ) = u = u 0 u 1 u n and the transducer ends in state q, then E N (w) = q r n+1 + u n r n + u n 1 r n u 1 r + u 0. = q r n+1 + E (r,σr)(u R ) Proof. Induction on the size of w. Detailed proof Corollary E N (w) 0 iff q 0. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

25 Theory Automaticity Proof that T N maps (r, D) to (r, Σ r ) - Part 2 Theorem Let N = (r,d) be any number system complete for N with r 2. Let N = (r,σ r ) be the standard base-r number system. Then, for all w D, E N (w) N implies E N (w) = E N (T N (w R 0 n 1 )). Proof. T N ends in state 0 on reading w R 0 n 1 whenever E N (w) 0. Detailed proof Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

26 Theory Automaticity Equivalence of N-automaticity Theorem If N = (r,d) is any number system with r 2 which is complete for N, then a sequence over a finite alphabet is r-automatic if and only if it is N-automatic. Proof. r-automaticity is the same as (r,σ r )-automaticity. Similar to proof given in class Have to be careful because of redundancy Also must show the language L = {w D E N (w) N} is regular. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

27 Theory Further Results Another sufficient condition Theorem Let N = (r,d) be any number system containing a CRS mod r, with r 2. Let the states of T N be { m,...,0,...,n 1}. Suppose that, for each q { n + 1,...,0,...,m}, there exists a word w D such that E N (w) = q. Then N is complete for N. Proof. Swap the input and output alphabets of T N. So every edge is modified, but remains. Conditions guarantee a path to state 0 with output always 0. Detailed proof Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

28 Theory Further Results A necessary and sufficient condition? Recall the sufficient condition given earlier: Theorem If the following conditions hold, then N = (r,d) is redundant and complete for the set S: r 2 D D such that N = (r,d ) is complete for S D > r Question Is this a necessary condition? Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

29 Theory Further Results Sufficient condition is not necessary Counterexample. Let N = (2,5,3,2). No 2-subset of D forms a complete number system for N with base 2. But: 1 = E N (25) 0 = E N (ǫ) 1 = E N (23) 2 = E N (2) 3 = E N (2325) 4 = E N (232) 5 = E N (2323) Then, from the previous theorem, N is complete for N. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

30 Application What is carry-free addition? Impossible to completely eliminate carries Colson s approach: renormalize before each operation This is inefficient. Instead we eliminate carry propogation. Allows for operations to be performed in parallel Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

31 Application Basic definitions for carry-free addition Definition For any number system (r, α,...,0,...,β), the redundancy index ρ is defined by: ρ = α + β + 1 r. Let N = (r,d) be a number system on which we want to perform carry-free addition. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

32 Application Restrictions for carry-free addition Restriction 1 D = { α, α + 1,...,0,...,β 1,β}, for some non-negative integers α and β. Restriction 2 The base r is strictly greater than 2. Restriction 3 If either α or β is 1, then ρ 3. Otherwise, ρ 2. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

33 Application Carry-free addition algorithm Algorithm: Carry-Free Addition To add the numbers x and y (both in D ), we calculate three sums for each position i: position sum: p i = x i + y i interim sum: w i = p i rt i+1 final sum: s i = w i + t i Each t i+1 is the transfer digit, and we define t 0 = 0. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

34 Transfer digit selection Application Algorithm: Transfer Digit Selection First, define the following two constants: α λ = µ = r 1 Define C λ = and C µ+1 =. For λ < k µ, define C k such that: β r 1 kr (α λ) C k (k 1)r + β µ + 1. Then, for each i, we set t i+1 = k iff C k p i < C k+1. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

35 Application Correctness of carry-free addition algorithm Theorem If the final sum digits are chosen to be s i as described previously, then each s i produces no new carry. That is, α s i β. Proof. Algebraic (sometimes tedious) manipulations based on the restrictions we set and the constants we chose. Detailed proof Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

36 Application Example of carry-free addition Constants ρ = 3 λ = 2 µ = 1 C 2 = C 1 = 8 C 0 = 2 C 1 = 2 C 2 = Example (r = 5,α = 5,β = 3) t i = p i = x i + y i = t i+1 = w i = p i rt i+1 = s i = w i + t i = Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

37 Application Example of carry-free addition Constants ρ = 3 λ = 2 µ = 1 C 2 = C 1 = 8 C 0 = 2 C 1 = 2 C 2 = Example (r = 5,α = 5,β = 3) t i = 0 p i = x i + y i = 3 t i+1 = 1 w i = p i rt i+1 = 2 s i = w i + t i = Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

38 Application Example of carry-free addition Constants ρ = 3 λ = 2 µ = 1 C 2 = C 1 = 8 C 0 = 2 C 1 = 2 C 2 = Example (r = 5,α = 5,β = 3) t i = 1 p i = x i + y i = 9 t i+1 = 2 w i = p i rt i+1 = 1 s i = w i + t i = Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

39 Application Example of carry-free addition Constants ρ = 3 λ = 2 µ = 1 C 2 = C 1 = 8 C 0 = 2 C 1 = 2 C 2 = Example (r = 5,α = 5,β = 3) t i = 2 p i = x i + y i = 5 t i+1 = 1 w i = p i rt i+1 = 0 s i = w i + t i = Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

40 Application Example of carry-free addition Constants ρ = 3 λ = 2 µ = 1 C 2 = C 1 = 8 C 0 = 2 C 1 = 2 C 2 = Example (r = 5,α = 5,β = 3) t i = 1 p i = x i + y i = 0 t i+1 = 0 w i = p i rt i+1 = 0 s i = w i + t i = Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

41 Application Summary of redundant digit set arithmetic Arithmetic can be performed in parallel Biggest advantages come with multiplication Problems: subtraction, comparison Implemented in some chip designs Tradeoff of space versus time, but Higher redundancy does not give better performance Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

42 Conclusion Conclusions and summary Redundant number systems are a relatively old concept Some necessary, sufficient conditions for completeness and redundancy Redundancy preserves automaticity Can be used to perform fast, parallel arithmetic Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

43 Conclusion Open Problems Find a simple necessary and sufficient condition for a number system to be both redundant and complete for some set. Similar conditions exist for nonredundancy and completeness (e.g. Matula - basic digit sets). Is the alternate characterization of k-automaticity useful at all from an automatic sequences standpoint? Are there further applications of redundant number system arithmetic, such as in arbitrary-precision integer arithmetic? Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

44 References Conclusion John Colson. A short account of negativo-affirmative arithmetick. In Philos. Trans. Royal Soc. London, volume Juha Honkala. On number systems with negative digits. Ann. Acad. Sci. Fenn. Ser. A I Math., 14(1): , David W. Matula. Radix arithmetic: digital algorithms for computer architecture. In Applied computation theory: analysis, design, modeling, pages Prentice-Hall, Englewood Cliffs, N.J., B. Parhami. Generalized signed-digit number systems: A unifying framework for redundant number representations. IEEE Transactions on Computers, 39(1):89 98, Jan Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

45 Appendix Proofs 5 Proofs Initial Necessary and Sufficient Conditions N-Automaticity Further Results 6 Carry-Free Addition Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

46 Proofs Initial Necessary and Sufficient Conditions Proof of first necessary condition Theorem statement Proof. Let N = (r,d) be some number system. First note that, for any nonempty word w D, if E N (w) m (mod r), then the last digit in w must also be congruent to m mod r. Then, since each of {1,2,...,r} is in N, it is clear that D must contain a CRS mod r. Now suppose N is complete for N and redundant. Then there exist two different, nonempty words w 1,w 2 D + such that E N (w 1 ) = E N (w 2 ). Let i be the index of the last position in which the two words differ. Then the two digits at position i must be congruent mod r. Then, since D contains a CRS and contains two digits in the same congruency class, D > r. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

47 Proofs N-Automaticity Proof that T N is a valid finite-state transducer Transducer definition Proof. Clearly c Σ r, the output alphabet. Need to show that b is a state, that is, b Q. m m(r 1) q + a (n 1) + n(r 1) mr br + c nr 1 mr (r 1) br nr 1 (m + 1)r < br < nr m b n 1 So b Q, and therefore T N is a valid finite-state transducer. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

48 Proofs N-Automaticity Proof of the lemma on evaluation of transducer output Lemma statement Proof by induction. Base case (ǫ) obvious. So assume true for n = k, k 0. Let w D k+1. Suppose T(w R ) = u 0 u 1 u k u k+1. Write w = aw. Let q be the state of T N after reading (w ) R. Then λ(q,a) = u k+1. And suppose δ(q,a) = b. Then a = br + u k+1 q. So E N (w) = a r k+1 + E N (w ) = (br + u k+1 q)r k+1 + q r k+1 + u k r k u 1 r + u 0 = b r k+2 + u k+1 r k+1 + u k r k u 1 r + u 0 And it follows directly from the definitions that E (r,σr)(u R ) = u n r n + u n 1 r n u 1 r + u 0. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

49 Proofs N-Automaticity Proof that T N maps (r, D) to (r, Σ r ) Theorem statement Proof. From the corollary, we know that T N must be in a non-negative state after reading w R. And from the transducer definition, we can see that δ(q, 0) < q whenever q 0. Then, since there are only n 1 positive states, T N must end in state 0 after reading w R 0 n 1. Now let T N (w R 0 n 1 ) = u 0 u k. Clearly E N (0 w) = E N (w), so, from the lemma, E N (w) = 0 r k+1 u k r k + + u 1 r + u 0 = E N (T N (w R 0 n 1 )) Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

50 Proofs Further Results Proof of new sufficient condition Theorem statement Proof. Define a new transducer T N, which is the same as T N but with the input and output characters swapped on each edge. Then T N maps Σ r to D. Now let n N be arbitrary. Suppose T N on input of (n) r outputs w and ends in state q. Then T N on input of w R outputs (n) R r and ends in state q. So, from the lemma earlier, E N (w) = q r w +1 + n. Let u D be a word with E N (u) = q. We know that such a word exists from the assumption of the theorem. Then Therefore N is complete for N. E N (uw) = ( q)r w +1 + q r w +1 + n = n. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

51 Proofs Carry-Free Addition Correctness proof for carry-free addition Theorem statement Proof. From the way the transfer digits are chosen, we know that λ t i µ and C ti+1 p i < C ti And recall that for each k, kr (α λ) C k (k 1)r + β µ + 1. Then, since s i = w i + t i = p i rt i+1 + t i, we have C ti+1 rt i+1 λ s i < C ti+1 +1 rt i+1 + µ t i+1 r (α λ) rt i+1 λ s i < t i+1 r + β µ + 1 rt i+1 + µ α s i < β + 1 α s i β So s i D, and therefore no new carry is needed. Roche (University of Waterloo) Redundant Radix Enumeration Systems 21 November / 40

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers. MATH 4 Summer 011 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook) Relations Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations Reading (Epp s textbook) 8.-8.3. Cartesian Products The symbol (a, b) denotes the ordered

More information

Games derived from a generalized Thue-Morse word

Games derived from a generalized Thue-Morse word Games derived from a generalized Thue-Morse word Aviezri S. Fraenkel, Dept. of Computer Science and Applied Mathematics, Weizmann Institute of Science, Rehovot 76100, Israel; fraenkel@wisdom.weizmann.ac.il

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Fall CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Determine whether a relation is an equivalence relation by determining whether it is Reflexive Symmetric

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are

More information

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B.

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B. Relations Binary Relation Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation Let R A B be a relation from A to B. If (a, b) R, we write a R b. 1 Binary Relation Example:

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

Regular Language Equivalence and DFA Minimization. Equivalence of Two Regular Languages DFA Minimization

Regular Language Equivalence and DFA Minimization. Equivalence of Two Regular Languages DFA Minimization Regular Language Equivalence and DFA Minimization Equivalence of Two Regular Languages DFA Minimization Decision Property: Equivalence Given regular languages L and M, is L = M? Algorithm involves constructing

More information

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some

More information

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH. Winter CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20-ab/ Today's learning goals Determine whether a relation is an equivalence relation by determining whether it is Reflexive Symmetric

More information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

arxiv: v1 [math.gr] 7 Jan 2019

arxiv: v1 [math.gr] 7 Jan 2019 The ranks of alternating string C-groups Mark Mixer arxiv:1901.01646v1 [math.gr] 7 Jan 019 January 8, 019 Abstract In this paper, string C-groups of all ranks 3 r < n are provided for each alternating

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

Number Representations

Number Representations Computer Arithmetic Algorithms Prof. Dae Hyun Kim School of Electrical Engineering and Computer Science Washington State University Number Representations Information Textbook Israel Koren, Computer Arithmetic

More information

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August SIAM J COMPUT c 1998 Society for Industrial and Applied Mathematics Vol 27, No 4, pp 173 182, August 1998 8 SEPARATING EXPONENTIALLY AMBIGUOUS FINITE AUTOMATA FROM POLYNOMIALLY AMBIGUOUS FINITE AUTOMATA

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively 6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise

More information

Lecture Notes. Advanced Discrete Structures COT S

Lecture Notes. Advanced Discrete Structures COT S Lecture Notes Advanced Discrete Structures COT 4115.001 S15 2015-01-13 Recap Divisibility Prime Number Theorem Euclid s Lemma Fundamental Theorem of Arithmetic Euclidean Algorithm Basic Notions - Section

More information

* 8 Groups, with Appendix containing Rings and Fields.

* 8 Groups, with Appendix containing Rings and Fields. * 8 Groups, with Appendix containing Rings and Fields Binary Operations Definition We say that is a binary operation on a set S if, and only if, a, b, a b S Implicit in this definition is the idea that

More information

Combinatorial Interpretations of a Generalization of the Genocchi Numbers

Combinatorial Interpretations of a Generalization of the Genocchi Numbers 1 2 3 47 6 23 11 Journal of Integer Sequences, Vol. 7 (2004), Article 04.3.6 Combinatorial Interpretations of a Generalization of the Genocchi Numbers Michael Domaratzki Jodrey School of Computer Science

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

However another possibility is

However another possibility is 19. Special Domains Let R be an integral domain. Recall that an element a 0, of R is said to be prime, if the corresponding principal ideal p is prime and a is not a unit. Definition 19.1. Let a and b

More information

Arithmetic and Algebra

Arithmetic and Algebra Arithmetic and Algebra Daniel Butnaru daniel.butnaru@uni-konstanz.de 15. Dezember 2006 Daniel Butnaru daniel.butnaru@uni-konstanz.de Arithmetic and Algebra 1/39 Outline 1 Introduction 2 Big Number Arithmetic

More information

Context-free grammars and languages

Context-free grammars and languages Context-free grammars and languages The next class of languages we will study in the course is the class of context-free languages. They are defined by the notion of a context-free grammar, or a CFG for

More information

NOTES (1) FOR MATH 375, FALL 2012

NOTES (1) FOR MATH 375, FALL 2012 NOTES 1) FOR MATH 375, FALL 2012 1 Vector Spaces 11 Axioms Linear algebra grows out of the problem of solving simultaneous systems of linear equations such as 3x + 2y = 5, 111) x 3y = 9, or 2x + 3y z =

More information

Equivalence of DFAs and NFAs

Equivalence of DFAs and NFAs CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs

More information

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2000 2013 Contents 9 Introduction to Number Theory 63 9.1 Subgroups

More information

CHARACTERIZATION OF NONCORRELATED PATTERN SEQUENCES AND CORRELATION DIMENSIONS. Yu Zheng. Li Peng. Teturo Kamae. (Communicated by Xiangdong Ye)

CHARACTERIZATION OF NONCORRELATED PATTERN SEQUENCES AND CORRELATION DIMENSIONS. Yu Zheng. Li Peng. Teturo Kamae. (Communicated by Xiangdong Ye) DISCRETE AND CONTINUOUS doi:10.3934/dcds.2018223 DYNAMICAL SYSTEMS Volume 38, Number 10, October 2018 pp. 5085 5103 CHARACTERIZATION OF NONCORRELATED PATTERN SEQUENCES AND CORRELATION DIMENSIONS Yu Zheng

More information

The Maximum Dimension of a Subspace of Nilpotent Matrices of Index 2

The Maximum Dimension of a Subspace of Nilpotent Matrices of Index 2 The Maximum Dimension of a Subspace of Nilpotent Matrices of Index L G Sweet Department of Mathematics and Statistics, University of Prince Edward Island Charlottetown, PEI C1A4P, Canada sweet@upeica J

More information

CS 154. Finite Automata, Nondeterminism, Regular Expressions

CS 154. Finite Automata, Nondeterminism, Regular Expressions CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set

More information

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018 MAT246H1S - Concepts In Abstract Mathematics Solutions to Term Test 1 - February 1, 2018 Time allotted: 110 minutes. Aids permitted: None. Comments: Statements of Definitions, Principles or Theorems should

More information

Constructing c-ary Perfect Factors

Constructing c-ary Perfect Factors Constructing c-ary Perfect Factors Chris J. Mitchell Computer Science Department Royal Holloway University of London Egham Hill Egham Surrey TW20 0EX England. Tel.: +44 784 443423 Fax: +44 784 443420 Email:

More information

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element. The first exam will be on Monday, June 8, 202. The syllabus will be sections. and.2 in Lax, and the number theory handout found on the class web site, plus the handout on the method of successive squaring

More information

Notes on Systems of Linear Congruences

Notes on Systems of Linear Congruences MATH 324 Summer 2012 Elementary Number Theory Notes on Systems of Linear Congruences In this note we will discuss systems of linear congruences where the moduli are all different. Definition. Given the

More information

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST JAMES MCIVOR Today we enter Chapter 2, which is the heart of this subject. Before starting, recall that last time we saw the integers have unique factorization

More information

The natural numbers. The natural numbers come with an addition +, a multiplication and an order < p < q, q < p, p = q.

The natural numbers. The natural numbers come with an addition +, a multiplication and an order < p < q, q < p, p = q. The natural numbers N = {0, 1,, 3, } The natural numbers come with an addition +, a multiplication and an order < p, q N, p + q N. p, q N, p q N. p, q N, exactly one of the following holds: p < q, q

More information

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2.

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2. Gaussian integers 1 Units in Z[i] An element x = a + bi Z[i], a, b Z is a unit if there exists y = c + di Z[i] such that xy = 1. This implies 1 = x 2 y 2 = (a 2 + b 2 )(c 2 + d 2 ) But a 2, b 2, c 2, d

More information

5 Set Operations, Functions, and Counting

5 Set Operations, Functions, and Counting 5 Set Operations, Functions, and Counting Let N denote the positive integers, N 0 := N {0} be the non-negative integers and Z = N 0 ( N) the positive and negative integers including 0, Q the rational numbers,

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

. As the binomial coefficients are integers we have that. 2 n(n 1).

. As the binomial coefficients are integers we have that. 2 n(n 1). Math 580 Homework. 1. Divisibility. Definition 1. Let a, b be integers with a 0. Then b divides b iff there is an integer k such that b = ka. In the case we write a b. In this case we also say a is a factor

More information

SOLVABLE GROUPS OF EXPONENTIAL GROWTH AND HNN EXTENSIONS. Roger C. Alperin

SOLVABLE GROUPS OF EXPONENTIAL GROWTH AND HNN EXTENSIONS. Roger C. Alperin SOLVABLE GROUPS OF EXPONENTIAL GROWTH AND HNN EXTENSIONS Roger C. Alperin An extraordinary theorem of Gromov, [Gv], characterizes the finitely generated groups of polynomial growth; a group has polynomial

More information

METRIC HEIGHTS ON AN ABELIAN GROUP

METRIC HEIGHTS ON AN ABELIAN GROUP ROCKY MOUNTAIN JOURNAL OF MATHEMATICS Volume 44, Number 6, 2014 METRIC HEIGHTS ON AN ABELIAN GROUP CHARLES L. SAMUELS ABSTRACT. Suppose mα) denotes the Mahler measure of the non-zero algebraic number α.

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Theory (CS21004) Announcements The slide is just a short summary Follow the discussion and the boardwork Solve problems (apart from those we dish out in class) Table of Contents 1 2 3 Languages that are

More information

BOUNDS ON ZIMIN WORD AVOIDANCE

BOUNDS ON ZIMIN WORD AVOIDANCE BOUNDS ON ZIMIN WORD AVOIDANCE JOSHUA COOPER* AND DANNY RORABAUGH* Abstract. How long can a word be that avoids the unavoidable? Word W encounters word V provided there is a homomorphism φ defined by mapping

More information

Instructor: Bobby Kleinberg Lecture Notes, 25 April The Miller-Rabin Randomized Primality Test

Instructor: Bobby Kleinberg Lecture Notes, 25 April The Miller-Rabin Randomized Primality Test Introduction to Algorithms (CS 482) Cornell University Instructor: Bobby Kleinberg Lecture Notes, 25 April 2008 The Miller-Rabin Randomized Primality Test 1 Introduction Primality testing is an important

More information

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS chapter MORE MATRIX ALGEBRA GOALS In Chapter we studied matrix operations and the algebra of sets and logic. We also made note of the strong resemblance of matrix algebra to elementary algebra. The reader

More information

Notes on State Minimization

Notes on State Minimization U.C. Berkeley CS172: Automata, Computability and Complexity Handout 1 Professor Luca Trevisan 2/3/2015 Notes on State Minimization These notes present a technique to prove a lower bound on the number of

More information

2 so Q[ 2] is closed under both additive and multiplicative inverses. a 2 2b 2 + b

2 so Q[ 2] is closed under both additive and multiplicative inverses. a 2 2b 2 + b . FINITE-DIMENSIONAL VECTOR SPACES.. Fields By now you ll have acquired a fair knowledge of matrices. These are a concrete embodiment of something rather more abstract. Sometimes it is easier to use matrices,

More information

Smith theory. Andrew Putman. Abstract

Smith theory. Andrew Putman. Abstract Smith theory Andrew Putman Abstract We discuss theorems of P. Smith and Floyd connecting the cohomology of a simplicial complex equipped with an action of a finite p-group to the cohomology of its fixed

More information

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II CS 5319 Advanced Discrete Structure Lecture 9: Introduction to Number Theory II Divisibility Outline Greatest Common Divisor Fundamental Theorem of Arithmetic Modular Arithmetic Euler Phi Function RSA

More information

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition)

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition) Vector Space Basics (Remark: these notes are highly formal and may be a useful reference to some students however I am also posting Ray Heitmann's notes to Canvas for students interested in a direct computational

More information

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2006 Contents 9 Introduction to Number Theory and Cryptography 1 9.1 Subgroups

More information

The Banach-Tarski paradox

The Banach-Tarski paradox The Banach-Tarski paradox 1 Non-measurable sets In these notes I want to present a proof of the Banach-Tarski paradox, a consequence of the axiom of choice that shows us that a naive understanding of the

More information

LINEAR EQUATIONS WITH UNKNOWNS FROM A MULTIPLICATIVE GROUP IN A FUNCTION FIELD. To Professor Wolfgang Schmidt on his 75th birthday

LINEAR EQUATIONS WITH UNKNOWNS FROM A MULTIPLICATIVE GROUP IN A FUNCTION FIELD. To Professor Wolfgang Schmidt on his 75th birthday LINEAR EQUATIONS WITH UNKNOWNS FROM A MULTIPLICATIVE GROUP IN A FUNCTION FIELD JAN-HENDRIK EVERTSE AND UMBERTO ZANNIER To Professor Wolfgang Schmidt on his 75th birthday 1. Introduction Let K be a field

More information

Lecture 2: Connecting the Three Models

Lecture 2: Connecting the Three Models IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000

More information

On Supervisory Control of Concurrent Discrete-Event Systems

On Supervisory Control of Concurrent Discrete-Event Systems On Supervisory Control of Concurrent Discrete-Event Systems Yosef Willner Michael Heymann March 27, 2002 Abstract When a discrete-event system P consists of several subsystems P 1,..., P n that operate

More information

Subset construction. We have defined for a DFA L(A) = {x Σ ˆδ(q 0, x) F } and for A NFA. For any NFA A we can build a DFA A D such that L(A) = L(A D )

Subset construction. We have defined for a DFA L(A) = {x Σ ˆδ(q 0, x) F } and for A NFA. For any NFA A we can build a DFA A D such that L(A) = L(A D ) Search algorithm Clever algorithm even for a single word Example: find abac in abaababac See Knuth-Morris-Pratt and String searching algorithm on wikipedia 2 Subset construction We have defined for a DFA

More information

The Fundamental Theorem of Arithmetic

The Fundamental Theorem of Arithmetic Chapter 1 The Fundamental Theorem of Arithmetic 1.1 Primes Definition 1.1. We say that p N is prime if it has just two factors in N, 1 and p itself. Number theory might be described as the study of the

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

More information

BURGESS INEQUALITY IN F p 2. Mei-Chu Chang

BURGESS INEQUALITY IN F p 2. Mei-Chu Chang BURGESS INEQUALITY IN F p 2 Mei-Chu Chang Abstract. Let be a nontrivial multiplicative character of F p 2. We obtain the following results.. Given ε > 0, there is δ > 0 such that if ω F p 2\F p and I,

More information

MATH 2200 Final Review

MATH 2200 Final Review MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 8-10 proofs It will take place on Tuesday, December 11, from 10:30 AM - 1:30 PM, in the usual room Topics

More information

FINITE STATE AUTOMATA

FINITE STATE AUTOMATA FINITE STATE AUTOMATA States An FSA has a finite set of states A system has a limited number of configurations Examples {On, Off}, {1,2,3,4,,k} {TV channels} States can be graphically represented as follows:

More information

A Structure of KK-Algebras and its Properties

A Structure of KK-Algebras and its Properties Int. Journal of Math. Analysis, Vol. 6, 2012, no. 21, 1035-1044 A Structure of KK-Algebras and its Properties S. Asawasamrit Department of Mathematics, Faculty of Applied Science, King Mongkut s University

More information

Mix-Automatic Sequences

Mix-Automatic Sequences Mix-Automatic Sequences Jörg Endrullis 1, Clemens Grabmayer 2, and Dimitri Hendriks 1 1 VU University Amsterdam 2 Utrecht University Abstract. Mix-automatic sequences form a proper extension of the class

More information

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table MAT115A-21 Summer Session 2 2018 Practice Final Solutions Name: Time Limit: 1 Hour 40 Minutes Instructor: Nathaniel Gallup This exam contains 5 pages (including this cover page) and 4 questions. The total

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 4 1 Principle of Mathematical Induction 2 Example 3 Base Case 4 Inductive Hypothesis 5 Inductive Step When Induction Isn t Enough

More information

Constructions for Higher Dimensional Perfect Multifactors

Constructions for Higher Dimensional Perfect Multifactors Constructions for Higher Dimensional Perfect Multifactors Garth Isaak AMS subject 05B99 (94A55) keywords: de Bruijn cycles, perfect maps Abstract Perfect maps, factors and multifactors can be viewed as

More information

MATH 433 Applied Algebra Lecture 19: Subgroups (continued). Error-detecting and error-correcting codes.

MATH 433 Applied Algebra Lecture 19: Subgroups (continued). Error-detecting and error-correcting codes. MATH 433 Applied Algebra Lecture 19: Subgroups (continued). Error-detecting and error-correcting codes. Subgroups Definition. A group H is a called a subgroup of a group G if H is a subset of G and the

More information

A proof of Freiman s Theorem, continued. An analogue of Freiman s Theorem in a bounded torsion group

A proof of Freiman s Theorem, continued. An analogue of Freiman s Theorem in a bounded torsion group A proof of Freiman s Theorem, continued Brad Hannigan-Daley University of Waterloo Freiman s Theorem Recall that a d-dimensional generalized arithmetic progression (GAP) in an abelian group G is a subset

More information

Advanced Automata Theory 2 Finite Automata

Advanced Automata Theory 2 Finite Automata Advanced Automata Theory 2 Finite Automata Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced Automata Theory 2 Finite

More information

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2 8. p-adic numbers 8.1. Motivation: Solving x 2 a (mod p n ). Take an odd prime p, and ( an) integer a coprime to p. Then, as we know, x 2 a (mod p) has a solution x Z iff = 1. In this case we can suppose

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points. 1 2 3 style total Math 415 Examination 3 Please print your name: Answer Key 1 True/false Circle the correct answer; no explanation is required. Each problem in this section counts 5 points. 1. The rings

More information

CS 125 Section #10 (Un)decidability and Probability November 1, 2016

CS 125 Section #10 (Un)decidability and Probability November 1, 2016 CS 125 Section #10 (Un)decidability and Probability November 1, 2016 1 Countability Recall that a set S is countable (either finite or countably infinite) if and only if there exists a surjective mapping

More information

Efficient Enumeration of Regular Languages

Efficient Enumeration of Regular Languages Efficient Enumeration of Regular Languages Margareta Ackerman and Jeffrey Shallit University of Waterloo, Waterloo ON, Canada mackerma@uwaterloo.ca, shallit@graceland.uwaterloo.ca Abstract. The cross-section

More information

Mathematics for Cryptography

Mathematics for Cryptography Mathematics for Cryptography Douglas R. Stinson David R. Cheriton School of Computer Science University of Waterloo Waterloo, Ontario, N2L 3G1, Canada March 15, 2016 1 Groups and Modular Arithmetic 1.1

More information

1.3 Linear Dependence & span K

1.3 Linear Dependence & span K ( ) Conversely, suppose that every vector v V can be expressed uniquely as v = u +w for u U and w W. Then, the existence of this expression for each v V is simply the statement that V = U +W. Moreover,

More information

Graphs and Combinatorics

Graphs and Combinatorics Graphs and Combinatorics (2006) 22:241 249 Digital Object Identifier (DOI) 10.1007/s00373-006-0641-8 Graphs and Combinatorics Springer-Verlag 2006 On n-partite Tournaments with Unique n-cycle Gregory Gutin,

More information

ECEN 5022 Cryptography

ECEN 5022 Cryptography Elementary Algebra and Number Theory University of Colorado Spring 2008 Divisibility, Primes Definition. N denotes the set {1, 2, 3,...} of natural numbers and Z denotes the set of integers {..., 2, 1,

More information

On the vanishing of Tor of the absolute integral closure

On the vanishing of Tor of the absolute integral closure On the vanishing of Tor of the absolute integral closure Hans Schoutens Department of Mathematics NYC College of Technology City University of New York NY, NY 11201 (USA) Abstract Let R be an excellent

More information

State Complexity of Neighbourhoods and Approximate Pattern Matching

State Complexity of Neighbourhoods and Approximate Pattern Matching State Complexity of Neighbourhoods and Approximate Pattern Matching Timothy Ng, David Rappaport, and Kai Salomaa School of Computing, Queen s University, Kingston, Ontario K7L 3N6, Canada {ng, daver, ksalomaa}@cs.queensu.ca

More information

DIVISIBILITY AND DISTRIBUTION OF PARTITIONS INTO DISTINCT PARTS

DIVISIBILITY AND DISTRIBUTION OF PARTITIONS INTO DISTINCT PARTS DIVISIBILITY AND DISTRIBUTION OF PARTITIONS INTO DISTINCT PARTS JEREMY LOVEJOY Abstract. We study the generating function for (n), the number of partitions of a natural number n into distinct parts. Using

More information

Notes on Primitive Roots Dan Klain

Notes on Primitive Roots Dan Klain Notes on Primitive Roots Dan Klain last updated March 22, 2013 Comments and corrections are welcome These supplementary notes summarize the presentation on primitive roots given in class, which differed

More information

Congruences. September 16, 2006

Congruences. September 16, 2006 Congruences September 16, 2006 1 Congruences If m is a given positive integer, then we can de ne an equivalence relation on Z (the set of all integers) by requiring that an integer a is related to an integer

More information

GENERATING SETS KEITH CONRAD

GENERATING SETS KEITH CONRAD GENERATING SETS KEITH CONRAD 1 Introduction In R n, every vector can be written as a unique linear combination of the standard basis e 1,, e n A notion weaker than a basis is a spanning set: a set of vectors

More information

Minimal Number of Steps in the Euclidean Algorithm and its Application to Rational Tangles

Minimal Number of Steps in the Euclidean Algorithm and its Application to Rational Tangles Rose-Hulman Undergraduate Mathematics Journal Volume 16 Issue 1 Article 3 Minimal Number of Steps in the Euclidean Algorithm and its Application to Rational Tangles M. Syafiq Johar University of Oxford

More information

TOPOLOGICAL GROUPS MATH 519

TOPOLOGICAL GROUPS MATH 519 TOPOLOGICAL GROUPS MATH 519 The purpose of these notes is to give a mostly self-contained topological background for the study of the representations of locally compact totally disconnected groups, as

More information

1 Randomized Computation

1 Randomized Computation CS 6743 Lecture 17 1 Fall 2007 1 Randomized Computation Why is randomness useful? Imagine you have a stack of bank notes, with very few counterfeit ones. You want to choose a genuine bank note to pay at

More information

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z: NUMBER SYSTEMS Number theory is the study of the integers. We denote the set of integers by Z: Z = {..., 3, 2, 1, 0, 1, 2, 3,... }. The integers have two operations defined on them, addition and multiplication,

More information

From Satisfiability to Linear Algebra

From Satisfiability to Linear Algebra From Satisfiability to Linear Algebra Fangzhen Lin Department of Computer Science Hong Kong University of Science and Technology Clear Water Bay, Kowloon, Hong Kong Technical Report August 2013 1 Introduction

More information

Theory of Computation 3 Deterministic Finite Automata

Theory of Computation 3 Deterministic Finite Automata Theory of Computation 3 Deterministic Finite Automata Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Theory of Computation

More information

A conjecture on the alphabet size needed to produce all correlation classes of pairs of words

A conjecture on the alphabet size needed to produce all correlation classes of pairs of words A conjecture on the alphabet size needed to produce all correlation classes of pairs of words Paul Leopardi Thanks: Jörg Arndt, Michael Barnsley, Richard Brent, Sylvain Forêt, Judy-anne Osborn. Mathematical

More information

ON MATCHINGS IN GROUPS

ON MATCHINGS IN GROUPS ON MATCHINGS IN GROUPS JOZSEF LOSONCZY Abstract. A matching property conceived for lattices is examined in the context of an arbitrary abelian group. The Dyson e-transform and the Cauchy Davenport inequality

More information

Pair dominating graphs

Pair dominating graphs Pair dominating graphs Paul Balister Béla Bollobás July 25, 2004 Department of Mathematical Sciences, University of Memphis, Memphis, TN 38152 USA Abstract An oriented graph dominates pairs if for every

More information

Explicit solution of a class of quartic Thue equations

Explicit solution of a class of quartic Thue equations ACTA ARITHMETICA LXIV.3 (1993) Explicit solution of a class of quartic Thue equations by Nikos Tzanakis (Iraklion) 1. Introduction. In this paper we deal with the efficient solution of a certain interesting

More information

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2, SOLUTIONS TO PROBLEM SET 1 Section 1.3 Exercise 4. We see that 1 1 2 = 1 2, 1 1 2 + 1 2 3 = 2 3, 1 1 2 + 1 2 3 + 1 3 4 = 3 4, and is reasonable to conjecture n k=1 We will prove this formula by induction.

More information