Numeration and Computer Arithmetic Some Examples

Size: px
Start display at page:

Download "Numeration and Computer Arithmetic Some Examples"

Transcription

1 Numeration and Computer Arithmetic 1/31 Numeration and Computer Arithmetic Some Examples JC Bajard LIRMM, CNRS UM2 161 rue Ada, Montpellier cedex 5, France April 27

2 Numeration and Computer Arithmetic 2/31 Computer Arithmetic Compromise: Speed Accuracy Cost Heart: Number representations Associated algorithms Approaches: Theory Software Hardware

3 Numeration and Computer Arithmetic 3/31 Contents Function Evaluation Redundant Number Systems Number Systems for Modular Arithmetic Conclusion Annexes

4 Numeration and Computer Arithmetic 4/31 Function Evaluation Function Evaluation an example of numeration

5 Numeration and Computer Arithmetic 5/31 Function Evaluation Briggs Algorithm ( ) Evaluation of the logarithm, constructions of the first tables (15 decimal digits, 1624). In radix 2: digits d k = 1,, 1, such that for a given x we have n x (1 + d k 2 k ) 1 The logarithm of x is k=1 ln(x) n ln(1 + d k 2 k ) k=1

6 Numeration and Computer Arithmetic 6/31 Function Evaluation CORDIC Algorithm (COrdinate Rotation DIgital Computer, VOLDER 1959) Basic step d n { 1, 1} (sign of z). x n+1 = x n d n y n 2 n y n+1 = y n + d n x n 2 n z n+1 = z n d n arctan(2 n ) K sinθ θ K cos θ For cosine and sine: x = 1, y =, z = θ(= n d n arctan(2 n )) Constant factor K = n= n =

7 Numeration and Computer Arithmetic 7/31 Function Evaluation Complex algorithm (BKM 1993) Basic step of the complex algorithm: { Ek+1 = E k (1 + d k 2 k ) L k+1 = L k ln(1 + d k 2 k ) with d k = dk r + id k i, and d k r, d k i = 1,, 1. Two evaluation modes L-mode : E n 1 L n L 1 + ln(e 1 ) E-mode : L n E n E 1 e L 1

8 Numeration and Computer Arithmetic 8/31 Function Evaluation 1 E 1 = n (1 + d i 2 i ) L n = i=1 n ln(1 + d i 2 i ) = ln(e 1 ) i=1

9 Numeration and Computer Arithmetic 9/31 Redundant Number Systems Redundant Number Systems

10 Numeration and Computer Arithmetic 1/31 Redundant Number Systems Avizienis (1961) Redundant Number Systems Signed digits: x i { a,..., 1,, 1,..., a} Radix β with a β 1. Properties If 2a + 1 β, then each integer has at least one representation. An integer X, with a βn 1 β 1 X < a βn 1 β 1, admits a unique representation n 1 X = x i β i with x i { a, 1,, 1,..., a} i= If 2a β + 1, then we have a carry free algorithm. 25 Borrow-save (Duprat, Muller 1989): extension to radix 2.

11 Numeration and Computer Arithmetic 11/31 Redundant Number Systems Example: radix 1, a = (= ) (= 4647) 1111 (= t) 2711 (= w) (= s = 11891)

12 Numeration and Computer Arithmetic 12/31 Redundant Number Systems Properties of the signed digits redundant systems Advantages: Constant time carry-free addition Large radix: parallelisation Small radix: fast circuits Increasing of the performances of the algorithms based on the addition 7 Drawbacks: comparisons, sign...

13 Numeration and Computer Arithmetic 13/31 Redundant Number Systems Non-Adjacent Form This representation is inspired from Booth recoding (1951) used in multipliers. Definition of NAF w recoding: (Reitwiesner 196) Let k be an integer and w 2. The non-adjacent form of weight w of l 1 k is given by k = k i 2 i where k i < 2 w 1, k l 1 and i= each w-bit word contains at most one non-zero digit. 1. For a given k, NAF w (k) is unique. 2. For a given w 2, the length of NAF w (k) is at most equal to the length of k plus one. 3. The average density of non-zero digits is 1/(w + 1)

14 Numeration and Computer Arithmetic 14/31 Redundant Number Systems NAF w Examples We consider k = k 2 = NAF 2 (k) = NAF 3 (k) = NAF 4 (k) = NAF 5 (k) = NAF 6 (k) =

15 Numeration and Computer Arithmetic 15/31 Number Systems for Modular Arithmetic Number Systems for Modular Arithmetic

16 Numeration and Computer Arithmetic 16/31 Number Systems for Modular Arithmetic Lattices and Modular Systems Number system: radix β and a set of digits {,..., β 1}. n 1 A < β n is expanded as: A = a i β i. i= We denote by P the modulo, with P < β n, n 1 β n (mod P) = ɛ i β i with ɛ i {,..., β 1} i= A modular operation (for example: a modular multiplication): 1. Polynomial operation: W (X ) = A(X ) B(X ) n 1 2. Polynomial reduction : V (X ) = W (X ) mod (X n ɛ i X i ) 3. Coefficient reduction : M(X ) = Reductcoeff(V (X )) i=

17 Numeration and Computer Arithmetic 17/31 Number Systems for Modular Arithmetic Lattices and Modular Systems Lattice approach In a classical system Reductcoeff is equivalent to a combination of the carry propagation and the modular reduction: β 1... β β 1 P... lattice sublattice β 1... β β 1 ɛ ɛ 1... ɛ n 2 (ɛ n 1 β)

18 Numeration and Computer Arithmetic 18/31 Number Systems for Modular Arithmetic Lattices and Modular Systems Example For P = 97 and β = 1, we have (mod P). We consider the lattice: ( ) ( ) B 1 1 = 3 1 B 1 Let V (25, 12) = β. For reducing V, we determine G(17, 8) = 2B B 1 a vector of the lattice close to V. Thus, V (25, 12) M(8, 4) = V (25, 12) G(17, 8). We verify that = (mod 97)

19 Numeration and Computer Arithmetic 19/31 Number Systems for Modular Arithmetic Lattices and Modular Systems Example The reduction is equivalent with finding a close vector. Let G(X ) be this vector, then M(X ) = V (x) G(X ) V(25,12) G M P = 97 β = 1

20 Numeration and Computer Arithmetic 2/31 Number Systems for Modular Arithmetic Lattices and Modular Systems A new system Polynomial reduction depends of the representation of β n (mod P) In Thomas Plantard s PhD (25), β can be as large as P, but with a set of digits {,..., ρ 1} where ρ is small. Example: Let us consider a MNS defined with P = 17, n = 3, β = 7, ρ = 2. Over this system, we represent the elements of Z 17 as polynomials in β, of degree at most 2, with coefficients in { 1,, 1}

21 Numeration and Computer Arithmetic 21/31 Number Systems for Modular Arithmetic Lattices and Modular Systems A new system β 2 1 β β + β 2 β + β β β 1 + β 1 β β 1 β β β 2 1 β β β 2 β β 2 The system is clearly redundant. For example: 6 = 1 + β + β 2 = 1 + β, or 9 = 1 β + β 2 = 1 β.

22 Numeration and Computer Arithmetic 22/31 Number Systems for Modular Arithmetic Lattices and Modular Systems Construction of Plantard Systems In a first approach, n and ρ = 2 k are fixed. The lattice is constructed from the representation of ρ in the number system. P and β are deduced. Efficient algorithm for finding a close vector. 31 In a general approach, where P, β and n are given, the determination of ρ is obtained by reducing with LLL (Lenstra Lenstra Lovasz, 1982). No efficient algorithm for finding a close vector. 29

23 Numeration and Computer Arithmetic 23/31 Conclusion Conclusion Thank you!

24 Numeration and Computer Arithmetic 24/31 Annexes Annexes

25 Numeration and Computer Arithmetic 25/31 Annexes Annexe: Avizienis Algorithm 1 We note S = X + Y with X = x n 1...x Y = y n 1...y S = s n...s Step 1: For i = 1 to n in parallel, t i+1 = 1 if, x i + y i < a if, x i + y i > a 1 if, a + 1 x i + y i a 1 and w i = x i + y i β t i+1 with w n = t = Step 2: for i = to n in parallel, s i = w i + t i

26 Numeration and Computer Arithmetic 26/31 Annexes Annexe: Functions computable using one mode of BKM 7 b E x 1 E x n be a 1 cos θ a E x 1 E x n E x 1 E x n c a E y 1 L x 1 E-mode En y L x n E y 1 L x 1 E-mode En y L x n sin θ b E y 1 L x 1 E-mode En y L x n d L y 1 L y n θ L y 1 L y n θ L y 1 L y n a E x 1 E x n 1 a E x 1 E x n 1 E y 1 L x 1 L-mode En y L x n ln a b E y 1 L x 1 L-mode En y L x n ln a 2 + b 2 L y 1 L y n L y 1 L y n arctan b a ( d c ) = ( ) cos θ sin θ sin θ cos θ ( a b )

27 Numeration and Computer Arithmetic 27/31 Annexes Annexe: NAF w Computing 13 Data: Two integers k and w 2. Result: NAF w (k) = (k l 1 k l 2... k 1 k ). l ; while k 1 do if k is odd then k l k mod 2 w ; if k l > 2 w 1 then k l k l 2 w ; end k k k l ; else k l ; end k k/2, l l + 1; end

28 Numeration and Computer Arithmetic 28/31 Annexes Annexe: Double and Add with NAF w 13 Data: P E, k = N et w 2, NAF w (k) = (k l 1 k l 2... k 1 k ) P i = [i]p pour i {1, 3, 5,..., 2 w 1 1} Result: Q = [k]p E. begin Q P kl 1 ; pour i = l 2... faire Q [2]Q; si k i alors si k i > alors Q Q + P ki ; sinon Q Q P ki fin fin fin end

29 Numeration and Computer Arithmetic 29/31 Annexes Lattices and Modular Systems Annexe: Examples of Plantard System 22 Example1: P = 53, n = 7, β = 14, ρ = 2. We have β 7 2 (mod P). In this number system, integers have at least two representations, the total number of representations is 128. The lattice could be defined by (vectors in row): V 1 V 2 V 3 V 4 V 5 V 6 V 7 =

30 Numeration and Computer Arithmetic 3/31 Annexes Lattices and Modular Systems Annexe: Examples of Plantard System 22 We can remark that there is a short vector : (1, 1,,,,, 1) = V V V V V 2 + ( ) V 1 + V 7. From this vector we can construct a reduced basis of a sublattice, using that: β 7 2 (mod P)

31 Numeration and Computer Arithmetic 31/31 Annexes Lattices and Modular Systems Annexe: Examples of Plantard System 22 Example #2: This example is proposed in PhD of Thomas Plantard. He gives some conditions that number system must verify: β 8 2 (mod P) and ρ = P is the determined: P = Then β is deduced β =

On-Line Hardware Implementation for Complex Exponential and Logarithm

On-Line Hardware Implementation for Complex Exponential and Logarithm On-Line Hardware Implementation for Complex Exponential and Logarithm Ali SKAF, Jean-Michel MULLER * and Alain GUYOT Laboratoire TIMA / INPG - 46, Av. Félix Viallet, 3831 Grenoble Cedex * Laboratoire LIP

More information

Outline. Computer Arithmetic for Cryptography in the Arith Group. LIRMM Montpellier Laboratory of Computer Science, Robotics, and Microelectronics

Outline. Computer Arithmetic for Cryptography in the Arith Group. LIRMM Montpellier Laboratory of Computer Science, Robotics, and Microelectronics Outline Computer Arithmetic for Cryptography in the Arith Group Arnaud Tisserand LIRMM, CNRS Univ. Montpellier 2 Arith Group Crypto Puces Porquerolles, April 16 18, 2007 Introduction LIRMM Laboratory Arith

More information

Power Consumption Analysis. Arithmetic Level Countermeasures for ECC Coprocessor. Arithmetic Operators for Cryptography.

Power Consumption Analysis. Arithmetic Level Countermeasures for ECC Coprocessor. Arithmetic Operators for Cryptography. Power Consumption Analysis General principle: measure the current I in the circuit Arithmetic Level Countermeasures for ECC Coprocessor Arnaud Tisserand, Thomas Chabrier, Danuta Pamula I V DD circuit traces

More information

Hardware Operator for Simultaneous Sine and Cosine Evaluation

Hardware Operator for Simultaneous Sine and Cosine Evaluation Hardware Operator for Simultaneous Sine and Cosine Evaluation Arnaud Tisserand To cite this version: Arnaud Tisserand. Hardware Operator for Simultaneous Sine and Cosine Evaluation. ICASSP 6: International

More information

Lecture 8: Sequential Multipliers

Lecture 8: Sequential Multipliers Lecture 8: Sequential Multipliers ECE 645 Computer Arithmetic 3/25/08 ECE 645 Computer Arithmetic Lecture Roadmap Sequential Multipliers Unsigned Signed Radix-2 Booth Recoding High-Radix Multiplication

More information

Modular Multiplication in GF (p k ) using Lagrange Representation

Modular Multiplication in GF (p k ) using Lagrange Representation Modular Multiplication in GF (p k ) using Lagrange Representation Jean-Claude Bajard, Laurent Imbert, and Christophe Nègre Laboratoire d Informatique, de Robotique et de Microélectronique de Montpellier

More information

Lecture 8. Sequential Multipliers

Lecture 8. Sequential Multipliers Lecture 8 Sequential Multipliers Required Reading Behrooz Parhami, Computer Arithmetic: Algorithms and Hardware Design Chapter 9, Basic Multiplication Scheme Chapter 10, High-Radix Multipliers Chapter

More information

Accelerated Shift-and-Add algorithms

Accelerated Shift-and-Add algorithms c,, 1 12 () Kluwer Academic Publishers, Boston. Manufactured in The Netherlands. Accelerated Shift-and-Add algorithms N. REVOL AND J.-C. YAKOUBSOHN nathalie.revol@univ-lille1.fr, yak@cict.fr Lab. ANO,

More information

On-line Algorithms for Computing Exponentials and Logarithms. Asger Munk Nielsen. Dept. of Mathematics and Computer Science

On-line Algorithms for Computing Exponentials and Logarithms. Asger Munk Nielsen. Dept. of Mathematics and Computer Science On-line Algorithms for Computing Exponentials and Logarithms Asger Munk Nielsen Dept. of Mathematics and Computer Science Odense University, Denmark asger@imada.ou.dk Jean-Michel Muller Laboratoire LIP

More information

A Library of Functions

A Library of Functions LibraryofFunctions.nb 1 A Library of Functions Any study of calculus must start with the study of functions. Functions are fundamental to mathematics. In its everyday use the word function conveys to us

More information

SET 1. (1) Solve for x: (a) e 2x = 5 3x

SET 1. (1) Solve for x: (a) e 2x = 5 3x () Solve for x: (a) e x = 5 3x SET We take natural log on both sides: ln(e x ) = ln(5 3x ) x = 3 x ln(5) Now we take log base on both sides: log ( x ) = log (3 x ln 5) x = log (3 x ) + log (ln(5)) x x

More information

MATH 32 FALL 2013 FINAL EXAM SOLUTIONS. 1 cos( 2. is in the first quadrant, so its sine is positive. Finally, csc( π 8 ) = 2 2.

MATH 32 FALL 2013 FINAL EXAM SOLUTIONS. 1 cos( 2. is in the first quadrant, so its sine is positive. Finally, csc( π 8 ) = 2 2. MATH FALL 01 FINAL EXAM SOLUTIONS (1) (1 points) Evalute the following (a) tan(0) Solution: tan(0) = 0. (b) csc( π 8 ) Solution: csc( π 8 ) = 1 sin( π 8 ) To find sin( π 8 ), we ll use the half angle formula:

More information

Finite Fields. SOLUTIONS Network Coding - Prof. Frank H.P. Fitzek

Finite Fields. SOLUTIONS Network Coding - Prof. Frank H.P. Fitzek Finite Fields In practice most finite field applications e.g. cryptography and error correcting codes utilizes a specific type of finite fields, namely the binary extension fields. The following exercises

More information

Computing Machine-Efficient Polynomial Approximations

Computing Machine-Efficient Polynomial Approximations Computing Machine-Efficient Polynomial Approximations N. Brisebarre, S. Chevillard, G. Hanrot, J.-M. Muller, D. Stehlé, A. Tisserand and S. Torres Arénaire, LIP, É.N.S. Lyon Journées du GDR et du réseau

More information

Hybrid Binary-Ternary Joint Sparse Form and its Application in Elliptic Curve Cryptography

Hybrid Binary-Ternary Joint Sparse Form and its Application in Elliptic Curve Cryptography Hybrid Binary-Ternary Joint Sparse Form and its Application in Elliptic Curve Cryptography Jithra Adikari, Student Member, IEEE, Vassil Dimitrov, and Laurent Imbert Abstract Multi-exponentiation is a common

More information

A VLSI Algorithm for Modular Multiplication/Division

A VLSI Algorithm for Modular Multiplication/Division A VLSI Algorithm for Modular Multiplication/Division Marcelo E. Kaihara and Naofumi Takagi Department of Information Engineering Nagoya University Nagoya, 464-8603, Japan mkaihara@takagi.nuie.nagoya-u.ac.jp

More information

Chapter 7: Techniques of Integration

Chapter 7: Techniques of Integration Chapter 7: Techniques of Integration MATH 206-01: Calculus II Department of Mathematics University of Louisville last corrected September 14, 2013 1 / 43 Chapter 7: Techniques of Integration 7.1. Integration

More information

Continuing discussion of CRC s, especially looking at two-bit errors

Continuing discussion of CRC s, especially looking at two-bit errors Continuing discussion of CRC s, especially looking at two-bit errors The definition of primitive binary polynomials Brute force checking for primitivity A theorem giving a better test for primitivity Fast

More information

Solutions to Practice Final

Solutions to Practice Final s to Practice Final 1. (a) What is φ(0 100 ) where φ is Euler s φ-function? (b) Find an integer x such that 140x 1 (mod 01). Hint: gcd(140, 01) = 7. (a) φ(0 100 ) = φ(4 100 5 100 ) = φ( 00 5 100 ) = (

More information

Lone Star College-CyFair Formula Sheet

Lone Star College-CyFair Formula Sheet Lone Star College-CyFair Formula Sheet The following formulas are critical for success in the indicated course. Student CANNOT bring these formulas on a formula sheet or card to tests and instructors MUST

More information

t 2 + 2t dt = (t + 1) dt + 1 = arctan t x + 6 x(x 3)(x + 2) = A x +

t 2 + 2t dt = (t + 1) dt + 1 = arctan t x + 6 x(x 3)(x + 2) = A x + MATH 06 0 Practice Exam #. (0 points) Evaluate the following integrals: (a) (0 points). t +t+7 This is an irreducible quadratic; its denominator can thus be rephrased via completion of the square as a

More information

Arithmétique et Cryptographie Asymétrique

Arithmétique et Cryptographie Asymétrique Arithmétique et Cryptographie Asymétrique Laurent Imbert CNRS, LIRMM, Université Montpellier 2 Journée d inauguration groupe Sécurité 23 mars 2010 This talk is about public-key cryptography Why did mathematicians

More information

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions. Partial Fractions June 7, 04 In this section, we will learn to integrate another class of functions: the rational functions. Definition. A rational function is a fraction of two polynomials. For example,

More information

Part 3.3 Differentiation Taylor Polynomials

Part 3.3 Differentiation Taylor Polynomials Part 3.3 Differentiation 3..3.1 Taylor Polynomials Definition 3.3.1 Taylor 1715 and Maclaurin 1742) If a is a fixed number, and f is a function whose first n derivatives exist at a then the Taylor polynomial

More information

Svoboda-Tung Division With No Compensation

Svoboda-Tung Division With No Compensation Svoboda-Tung Division With No Compensation Luis MONTALVO (IEEE Student Member), Alain GUYOT Integrated Systems Design Group, TIMA/INPG 46, Av. Félix Viallet, 38031 Grenoble Cedex, France. E-mail: montalvo@archi.imag.fr

More information

Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients

Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients Consider an nth-order nonhomogeneous linear differential equation with constant coefficients:

More information

Essential Mathematics

Essential Mathematics Appendix B 1211 Appendix B Essential Mathematics Exponential Arithmetic Exponential notation is used to express very large and very small numbers as a product of two numbers. The first number of the product,

More information

Montgomery Reduction Algorithm for Modular Multiplication Using Low-Weight Polynomial Form Integers

Montgomery Reduction Algorithm for Modular Multiplication Using Low-Weight Polynomial Form Integers Montgomery Reduction Algorithm for Modular Multiplication Using Low-Weight Polynomial Form Integers Jaewook Chung and M Anwar Hasan j4chung@uwaterlooca ahasan@secureuwaterlooca Department of Electrical

More information

Subquadratic Space Complexity Multiplication over Binary Fields with Dickson Polynomial Representation

Subquadratic Space Complexity Multiplication over Binary Fields with Dickson Polynomial Representation Subquadratic Space Complexity Multiplication over Binary Fields with Dickson Polynomial Representation M A Hasan and C Negre Abstract We study Dickson bases for binary field representation Such representation

More information

STEP Support Programme. Hints and Partial Solutions for Assignment 17

STEP Support Programme. Hints and Partial Solutions for Assignment 17 STEP Support Programme Hints and Partial Solutions for Assignment 7 Warm-up You need to be quite careful with these proofs to ensure that you are not assuming something that should not be assumed. For

More information

SUMMATION TECHNIQUES

SUMMATION TECHNIQUES SUMMATION TECHNIQUES MATH 53, SECTION 55 (VIPUL NAIK) Corresponding material in the book: Scattered around, but the most cutting-edge parts are in Sections 2.8 and 2.9. What students should definitely

More information

2014 Summer Review for Students Entering Algebra 2. TI-84 Plus Graphing Calculator is required for this course.

2014 Summer Review for Students Entering Algebra 2. TI-84 Plus Graphing Calculator is required for this course. 1. Solving Linear Equations 2. Solving Linear Systems of Equations 3. Multiplying Polynomials and Solving Quadratics 4. Writing the Equation of a Line 5. Laws of Exponents and Scientific Notation 6. Solving

More information

RN-coding of numbers: definition and some properties

RN-coding of numbers: definition and some properties Laboratoire de l Informatique du Parallélisme École Normale Supérieure de Lyon Unité Mixte de Recherche CNRS-INRIA-ENS LYON-UCBL n o 5668 RN-coding of numbers: definition and some properties Peter Kornerup,

More information

Chapter 5: Solutions to Exercises

Chapter 5: Solutions to Exercises 1 DIGITAL ARITHMETIC Miloš D. Ercegovac and Tomás Lang Morgan Kaufmann Publishers, an imprint of Elsevier Science, c 2004 Updated: September 9, 2003 Chapter 5: Solutions to Selected Exercises With contributions

More information

Find: sinθ. Name: Date:

Find: sinθ. Name: Date: Name: Date: 1. Find the exact value of the given trigonometric function of the angle θ shown in the figure. (Use the Pythagorean Theorem to find the third side of the triangle.) Find: sinθ c a θ a a =

More information

NUMBERS AND CODES CHAPTER Numbers

NUMBERS AND CODES CHAPTER Numbers CHAPTER 2 NUMBERS AND CODES 2.1 Numbers When a number such as 101 is given, it is impossible to determine its numerical value. Some may say it is five. Others may say it is one hundred and one. Could it

More information

Section 2.1: Lehmer Random Number Generators: Introduction

Section 2.1: Lehmer Random Number Generators: Introduction Section 21: Lehmer Random Number Generators: Introduction Discrete-Event Simulation: A First Course c 2006 Pearson Ed, Inc 0-13-142917-5 Discrete-Event Simulation: A First Course Section 21: Lehmer Random

More information

Efficient Subquadratic Space Complexity Binary Polynomial Multipliers Based On Block Recombination

Efficient Subquadratic Space Complexity Binary Polynomial Multipliers Based On Block Recombination Efficient Subquadratic Space Complexity Binary Polynomial Multipliers Based On Block Recombination Murat Cenk, Anwar Hasan, Christophe Negre To cite this version: Murat Cenk, Anwar Hasan, Christophe Negre.

More information

A High-Speed Realization of Chinese Remainder Theorem

A High-Speed Realization of Chinese Remainder Theorem Proceedings of the 2007 WSEAS Int. Conference on Circuits, Systems, Signal and Telecommunications, Gold Coast, Australia, January 17-19, 2007 97 A High-Speed Realization of Chinese Remainder Theorem Shuangching

More information

FUNCTIONS AND MODELS

FUNCTIONS AND MODELS 1 FUNCTIONS AND MODELS FUNCTIONS AND MODELS 1.6 Inverse Functions and Logarithms In this section, we will learn about: Inverse functions and logarithms. INVERSE FUNCTIONS The table gives data from an experiment

More information

A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations

A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations James A. Muir School of Computer Science Carleton University, Ottawa, Canada http://www.scs.carleton.ca/ jamuir 23 October

More information

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

Math 312/ AMS 351 (Fall 17) Sample Questions for Final Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply

More information

Chapter Six. Polynomials. Properties of Exponents Algebraic Expressions Addition, Subtraction, and Multiplication Factoring Solving by Factoring

Chapter Six. Polynomials. Properties of Exponents Algebraic Expressions Addition, Subtraction, and Multiplication Factoring Solving by Factoring Chapter Six Polynomials Properties of Exponents Algebraic Expressions Addition, Subtraction, and Multiplication Factoring Solving by Factoring Properties of Exponents The properties below form the basis

More information

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES Notes. x n+ = ax n has the general solution x n = x a n. 2. x n+ = x n + b has the general solution x n = x + (n )b. 3. x n+ = ax n + b (with a ) can be

More information

Dual-Field Arithmetic Unit for GF(p) and GF(2 m ) *

Dual-Field Arithmetic Unit for GF(p) and GF(2 m ) * Institute for Applied Information Processing and Communications Graz University of Technology Dual-Field Arithmetic Unit for GF(p) and GF(2 m ) * CHES 2002 Workshop on Cryptographic Hardware and Embedded

More information

Core Mathematics C1 (AS) Unit C1

Core Mathematics C1 (AS) Unit C1 Core Mathematics C1 (AS) Unit C1 Algebraic manipulation of polynomials, including expanding brackets and collecting like terms, factorisation. Graphs of functions; sketching curves defined by simple equations.

More information

PELL S EQUATION, II KEITH CONRAD

PELL S EQUATION, II KEITH CONRAD PELL S EQUATION, II KEITH CONRAD 1. Introduction In Part I we met Pell s equation x dy = 1 for nonsquare positive integers d. We stated Lagrange s theorem that every Pell equation has a nontrivial solution

More information

cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications

cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications arithmetic mod 7 a + 7 b = (a + b) mod 7 a 7 b = (a b) mod 7 5 6 0 1 2 4 3 + 0 1 2 3 4 5 6 0 0 1 2 3 4 5 6 1

More information

REQUIRED MATHEMATICAL SKILLS FOR ENTERING CADETS

REQUIRED MATHEMATICAL SKILLS FOR ENTERING CADETS REQUIRED MATHEMATICAL SKILLS FOR ENTERING CADETS The Department of Applied Mathematics administers a Math Placement test to assess fundamental skills in mathematics that are necessary to begin the study

More information

High School Math Contest

High School Math Contest High School Math Contest University of South Carolina February th, 017 Problem 1. If (x y) = 11 and (x + y) = 169, what is xy? (a) 11 (b) 1 (c) 1 (d) (e) 8 Solution: Note that xy = (x + y) (x y) = 169

More information

Jim Lambers Math 1B Fall Quarter Final Exam Solution (Version A)

Jim Lambers Math 1B Fall Quarter Final Exam Solution (Version A) Jim Lambers Math 1B Fall Quarter 004-05 Final Exam Solution (Version A) 1. Suppose that a culture initially contains 500 bacteria, and that the population doubles every hours. What is the population after

More information

APPENDIX : PARTIAL FRACTIONS

APPENDIX : PARTIAL FRACTIONS APPENDIX : PARTIAL FRACTIONS Appendix : Partial Fractions Given the expression x 2 and asked to find its integral, x + you can use work from Section. to give x 2 =ln( x 2) ln( x + )+c x + = ln k x 2 x+

More information

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri MATH 1101 haalshehri@ksu.edu.sa 1 Introduction To Number Systems First Section: Binary System Second Section: Octal Number System Third Section: Hexadecimal System 2 Binary System 3 Binary System The binary

More information

In fact, 3 2. It is not known whether 3 1. All three problems seem hard, although Shor showed that one can solve 3 quickly on a quantum computer.

In fact, 3 2. It is not known whether 3 1. All three problems seem hard, although Shor showed that one can solve 3 quickly on a quantum computer. Attacks on RSA, some using LLL Recall RSA: N = pq hard to factor. Choose e with gcd(e,φ(n)) = 1, where φ(n) = (p 1)(q 1). Via extended Euclid, find d with ed 1 (mod φ(n)). Discard p and q. Public key is

More information

A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations

A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. XX, NO. X, MONTH 2007 1 A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations James A. Muir Abstract We present a simple algorithm

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

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162 COMPUTER ARITHMETIC 13/05/2010 cryptography - math background pp. 1 / 162 RECALL OF COMPUTER ARITHMETIC computers implement some types of arithmetic for instance, addition, subtratction, multiplication

More information

Algebraic. techniques1

Algebraic. techniques1 techniques Algebraic An electrician, a bank worker, a plumber and so on all have tools of their trade. Without these tools, and a good working knowledge of how to use them, it would be impossible for them

More information

Examples 2: Composite Functions, Piecewise Functions, Partial Fractions

Examples 2: Composite Functions, Piecewise Functions, Partial Fractions Examples 2: Composite Functions, Piecewise Functions, Partial Fractions September 26, 206 The following are a set of examples to designed to complement a first-year calculus course. objectives are listed

More information

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3 Partial Fractions Combining fractions over a common denominator is a familiar operation from algebra: x 3 + 3 x + x + 3x 7 () x 3 3x + x 3 From the standpoint of integration, the left side of Equation

More information

Looking back at lattice-based cryptanalysis

Looking back at lattice-based cryptanalysis September 2009 Lattices A lattice is a discrete subgroup of R n Equivalently, set of integral linear combinations: α 1 b1 + + α n bm with m n Lattice reduction Lattice reduction looks for a good basis

More information

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory. CSS322: Security and Cryptography Sirindhorn International Institute of Technology Thammasat University Prepared by Steven Gordon on 29 December 2011 CSS322Y11S2L06, Steve/Courses/2011/S2/CSS322/Lectures/number.tex,

More information

Candidates are expected to have available a calculator. Only division by (x + a) or (x a) will be required.

Candidates are expected to have available a calculator. Only division by (x + a) or (x a) will be required. Revision Checklist Unit C2: Core Mathematics 2 Unit description Algebra and functions; coordinate geometry in the (x, y) plane; sequences and series; trigonometry; exponentials and logarithms; differentiation;

More information

Elliptic Curves Cryptography and factorization. Part VIII. Elliptic curves cryptography and factorization. Historical Remarks.

Elliptic Curves Cryptography and factorization. Part VIII. Elliptic curves cryptography and factorization. Historical Remarks. Elliptic Curves Cryptography and factorization Part VIII Elliptic curves cryptography and factorization Cryptography based on manipulation of points of so called elliptic curves is getting momentum and

More information

Math 205, Winter 2018, Assignment 3

Math 205, Winter 2018, Assignment 3 Math 05, Winter 08, Assignment 3 Solutions. Calculate the following integrals. Show your steps and reasoning. () a) ( + + )e = ( + + )e ( + )e = ( + + )e ( + )e + e = ( )e + e + c = ( + )e + c This uses

More information

State Precalculus/Trigonometry Contest 2008

State Precalculus/Trigonometry Contest 2008 State Precalculus/Trigonometry Contest 008 Select the best answer for each of the following questions and mark it on the answer sheet provided. Be sure to read all the answer choices before making your

More information

Techniques of Integration

Techniques of Integration Chapter 8 Techniques of Integration 8. Trigonometric Integrals Summary (a) Integrals of the form sin m x cos n x. () sin k+ x cos n x = ( cos x) k cos n x (sin x ), then apply the substitution u = cos

More information

Efficient Modular Exponentiation Based on Multiple Multiplications by a Common Operand

Efficient Modular Exponentiation Based on Multiple Multiplications by a Common Operand Efficient Modular Exponentiation Based on Multiple Multiplications by a Common Operand Christophe Negre, Thomas Plantard, Jean-Marc Robert Team DALI (UPVD) and LIRMM (UM2, CNRS), France CCISR, SCIT, (University

More information

INSTRUCTIONS USEFUL FORMULAS

INSTRUCTIONS USEFUL FORMULAS MATH 1100 College Algebra Spring 18 Exam 1 February 15, 2018 Name Student ID Instructor Class time INSTRUCTIONS 1. Do not open until you are told to do so. 2. Do not ask questions during the exam. 3. CAREFULLY

More information

New Minimal Weight Representations for Left-to-Right Window Methods

New Minimal Weight Representations for Left-to-Right Window Methods New Minimal Weight Representations for Left-to-Right Window Methods James A. Muir 1 and Douglas R. Stinson 2 1 Department of Combinatorics and Optimization 2 School of Computer Science University of Waterloo

More information

CHAPTER EIGHT: SOLVING QUADRATIC EQUATIONS Review April 9 Test April 17 The most important equations at this level of mathematics are quadratic

CHAPTER EIGHT: SOLVING QUADRATIC EQUATIONS Review April 9 Test April 17 The most important equations at this level of mathematics are quadratic CHAPTER EIGHT: SOLVING QUADRATIC EQUATIONS Review April 9 Test April 17 The most important equations at this level of mathematics are quadratic equations. They can be solved using a graph, a perfect square,

More information

Notes on Radian Measure

Notes on Radian Measure MAT 170 Pre-Calculus Notes on Radian Measure Radian Angles Terri L. Miller Spring 009 revised April 17, 009 1. Radian Measure Recall that a unit circle is the circle centered at the origin with a radius

More information

Course Notes for Calculus , Spring 2015

Course Notes for Calculus , Spring 2015 Course Notes for Calculus 110.109, Spring 2015 Nishanth Gudapati In the previous course (Calculus 110.108) we introduced the notion of integration and a few basic techniques of integration like substitution

More information

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. Congruences Let n be a postive integer. The integers a and b are called congruent modulo n if they have the same

More information

3 The fundamentals: Algorithms, the integers, and matrices

3 The fundamentals: Algorithms, the integers, and matrices 3 The fundamentals: Algorithms, the integers, and matrices 3.4 The integers and division This section introduces the basics of number theory number theory is the part of mathematics involving integers

More information

Chapter 4 Finite Fields

Chapter 4 Finite Fields Chapter 4 Finite Fields Introduction will now introduce finite fields of increasing importance in cryptography AES, Elliptic Curve, IDEA, Public Key concern operations on numbers what constitutes a number

More information

1.5 Inverse Trigonometric Functions

1.5 Inverse Trigonometric Functions 1.5 Inverse Trigonometric Functions Remember that only one-to-one functions have inverses. So, in order to find the inverse functions for sine, cosine, and tangent, we must restrict their domains to intervals

More information

a = a i 2 i a = All such series are automatically convergent with respect to the standard norm, but note that this representation is not unique: i<0

a = a i 2 i a = All such series are automatically convergent with respect to the standard norm, but note that this representation is not unique: i<0 p-adic Numbers K. Sutner v0.4 1 Modular Arithmetic rings integral domains integers gcd, extended Euclidean algorithm factorization modular numbers add Lemma 1.1 (Chinese Remainder Theorem) Let a b. Then

More information

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document Background knowledge: (a) The arithmetic of integers (including HCFs and LCMs), of fractions, and of real numbers.

More information

Laboratoire de l Informatique du Parallélisme. École Normale Supérieure de Lyon Unité Mixte de Recherche CNRS-INRIA-ENS LYON n o 8512

Laboratoire de l Informatique du Parallélisme. École Normale Supérieure de Lyon Unité Mixte de Recherche CNRS-INRIA-ENS LYON n o 8512 Laboratoire de l Informatique du Parallélisme École Normale Supérieure de Lyon Unité Mixte de Recherche CNRS-INRIA-ENS LYON n o 8512 SPI A few results on table-based methods Jean-Michel Muller October

More information

Algorithms (II) Yu Yu. Shanghai Jiaotong University

Algorithms (II) Yu Yu. Shanghai Jiaotong University Algorithms (II) Yu Yu Shanghai Jiaotong University Chapter 1. Algorithms with Numbers Two seemingly similar problems Factoring: Given a number N, express it as a product of its prime factors. Primality:

More information

CS 140 Lecture 14 Standard Combinational Modules

CS 140 Lecture 14 Standard Combinational Modules CS 14 Lecture 14 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego Some slides from Harris and Harris 1 Part III. Standard Modules A. Interconnect B. Operators. Adders Multiplier

More information

Chapter P: Preliminaries

Chapter P: Preliminaries Chapter P: Preliminaries Winter 2016 Department of Mathematics Hong Kong Baptist University 1 / 59 Preliminaries The preliminary chapter reviews the most important things that you should know before beginning

More information

Exponentiation and Point Multiplication. Çetin Kaya Koç Spring / 70

Exponentiation and Point Multiplication.   Çetin Kaya Koç Spring / 70 Exponentiation and Point Multiplication 1 2 3 4 5 6 8 7 10 9 12 16 14 11 13 15 20 http://koclab.org Çetin Kaya Koç Spring 2018 1 / 70 Contents Exponentiation and Point Multiplication Exponentiation and

More information

CSE 20: Discrete Mathematics

CSE 20: Discrete Mathematics Spring 2018 Summary So far: Today: Logic and proofs Divisibility, modular arithmetics Number Systems More logic definitions and proofs Reading: All of Chap. 1 + Chap 4.1, 4.2. Divisibility P = 5 divides

More information

Addition of QSD intermediat e carry and sum. Carry/Sum Generation. Fig:1 Block Diagram of QSD Addition

Addition of QSD intermediat e carry and sum. Carry/Sum Generation. Fig:1 Block Diagram of QSD Addition 1216 DESIGN AND ANALYSIS OF FAST ADDITION MECHANISM FOR INTEGERS USING QUATERNARY SIGNED DIGIT NUMBER SYSTEM G.MANASA 1, M.DAMODHAR RAO 2, K.MIRANJI 3 1 PG Student, ECE Department, Gudlavalleru Engineering

More information

KEYWORDS: Multiple Valued Logic (MVL), Residue Number System (RNS), Quinary Logic (Q uin), Quinary Full Adder, QFA, Quinary Half Adder, QHA.

KEYWORDS: Multiple Valued Logic (MVL), Residue Number System (RNS), Quinary Logic (Q uin), Quinary Full Adder, QFA, Quinary Half Adder, QHA. GLOBAL JOURNAL OF ADVANCED ENGINEERING TECHNOLOGIES AND SCIENCES DESIGN OF A QUINARY TO RESIDUE NUMBER SYSTEM CONVERTER USING MULTI-LEVELS OF CONVERSION Hassan Amin Osseily Electrical and Electronics Department,

More information

NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018

NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018 NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018 A] Refer to your pre-calculus notebook, the internet, or the sheets/links provided for assistance. B] Do not wait until the last minute to complete this

More information

How Do Calculators Calculate? Helmut Knaust Department of Mathematical Sciences University of Texas at El Paso

How Do Calculators Calculate? Helmut Knaust Department of Mathematical Sciences University of Texas at El Paso How Do Calculators Calculate? Helmut Knaust Department of Mathematical Sciences University of Texas at El Paso Helmut Knaust How Do Calculators Calculate? April 25, 1997 1 / 18 History We give an introduction

More information

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016 6 EF Exam Texas A&M High School Students Contest Solutions October, 6. Assume that p and q are real numbers such that the polynomial x + is divisible by x + px + q. Find q. p Answer Solution (without knowledge

More information

Spring 06/MAT 140/Worksheet 1 Name: Show all your work.

Spring 06/MAT 140/Worksheet 1 Name: Show all your work. Spring 06/MAT 140/Worksheet 1 Name: Show all your work. 1. (4pts) Write two examples of each kind of number: natural integer rational irrational 2. (12pts) Simplify: ( a) 3 4 2 + 4 2 ) = 3 b) 3 20 7 15

More information

Common Core State Standards. Clusters and Instructional Notes Perform arithmetic operations with complex numbers. 5.6

Common Core State Standards. Clusters and Instructional Notes Perform arithmetic operations with complex numbers. 5.6 Algebra II Unit 1: Polynomial, Rational, and Radical Relationships This unit develops the structural similarities between the system of polynomials and the system of integers. Students draw on analogies

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

EECS Components and Design Techniques for Digital Systems. Lec 26 CRCs, LFSRs (and a little power)

EECS Components and Design Techniques for Digital Systems. Lec 26 CRCs, LFSRs (and a little power) EECS 150 - Components and esign Techniques for igital Systems Lec 26 CRCs, LFSRs (and a little power) avid Culler Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~culler

More information

VLSI Arithmetic. Lecture 9: Carry-Save and Multi-Operand Addition. Prof. Vojin G. Oklobdzija University of California

VLSI Arithmetic. Lecture 9: Carry-Save and Multi-Operand Addition. Prof. Vojin G. Oklobdzija University of California VLSI Arithmetic Lecture 9: Carry-Save and Multi-Operand Addition Prof. Vojin G. Oklobdzija University of California http://www.ece.ucdavis.edu/acsel Carry-Save Addition* *from Parhami 2 June 18, 2003 Carry-Save

More information

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits Logic and Computer Design Fundamentals Chapter 5 Arithmetic Functions and Circuits Arithmetic functions Operate on binary vectors Use the same subfunction in each bit position Can design functional block

More information

Welcome to AP Calculus!!!

Welcome to AP Calculus!!! Welcome to AP Calculus!!! In preparation for next year, you need to complete this summer packet. This packet reviews & expands upon the concepts you studied in Algebra II and Pre-calculus. Make sure you

More information

Software implementation of Koblitz curves over quadratic fields

Software implementation of Koblitz curves over quadratic fields Software implementation of Koblitz curves over quadratic fields Thomaz Oliveira 1, Julio López 2 and Francisco Rodríguez-Henríquez 1 1 Computer Science Department, Cinvestav-IPN 2 Institute of Computing,

More information

Computer Architecture, IFE CS and T&CS, 4 th sem. Representation of Integer Numbers in Computer Systems

Computer Architecture, IFE CS and T&CS, 4 th sem. Representation of Integer Numbers in Computer Systems Representation of Integer Numbers in Computer Systems Positional Numbering System Additive Systems history but... Roman numerals Positional Systems: r system base (radix) A number value a - digit i digit

More information

Improving NFS for the discrete logarithm problem in non-prime nite elds

Improving NFS for the discrete logarithm problem in non-prime nite elds Improving NFS for the discrete logarithm problem in non-prime nite elds Razvan Barbulescu, Pierrick Gaudry, Aurore Guillevic, Francois Morain Institut national de recherche en informatique et en automatique

More information