SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
4:-
Chapter 4:-
Number Theory




 By:- Sarthak Patel (www.sarthakpatel.in)
Outline
       Prime And Relative Prime Numbers
       Modular Arithmetic,
       Euler’s Theorem
       Euclid’s Algorithm
       Discrete Logarithm Tics




2   Sarthak Patel (www.sarthakpatel.in)
Prime Numbers
       An integer p > 1 is a prime number if and only if its only
       divisors are ± 1 and ±p. Prime numbers play a critical role in
       number theory and in the techniques like RSA, Deffie-
       Hellman key exchange.




3   Sarthak Patel (www.sarthakpatel.in)
Contd…
    Any integer a > 1 can be factored in a unique way as

    where p1 < p2 < ... < pt are prime numbers and where each is
    a positive integer. This is known as the fundamental theorem of
    arithmetic.




4   Sarthak Patel (www.sarthakpatel.in)
Contd...
       If a and b are two prime numbers then this condition will
       always satisfy:

          gcd(a, b) = 1

       Relatively Prime
          Two integers are relatively prime if their only common positive
          integer factor is 1.
          gcd(a, b) =1                 ex: 8 and 15



5   Sarthak Patel (www.sarthakpatel.in)
Divisibility & The Division Algorithm
       Divisibility
          We say that a nonzero b divides a b|a
          If b|a, we say that b is a divisor of a.

                  The positive divisors of 24 are 1,2,3,4,6,8,12, and 24.

                                   13|182 ; -5|30; 17|289




6   Sarthak Patel (www.sarthakpatel.in)
Properties of Divisibility integers
       If a|1, then a= ±1
       If a|b and b|c, then a|c
          Ex: 11|66 and 66|198= 11|198
       Any b ≠ 0 then, b|a




7   Sarthak Patel (www.sarthakpatel.in)
Division Algorithm
       Given any positive integer n and any nonnegative integer a, if
       we divide a by n, we get an integer quotient q and an integer
       remainder r that obey the following relationship:
               a = qn + r




8   Sarthak Patel (www.sarthakpatel.in)
Modular Arithmetic
      Modular arithmetic properties:
    1. [(a mod n) + (b mod n)] mod n = (a+b) mod n
    2. [(a mod n) - (b mod n)] mod n = (a-b) mod n
    3. [(a mod n) × (b mod n)] mod n = (a×b) mod n

             11 mod 8 = 3; 15 mod 8 = 7
             [(11 mod 8) + (15 mod 8)] mod 8 = 10 mod 8 = 2
             (11 + 15) mod 8 = 26 mod 8 = 2
             [(11 mod 8) - (15 mod 8)] mod 8 = - 4 mod 8 = - 4
             (11 -15) mod 8 = - 4 mod 8 = - 4
             [(11 mod 8) x (15 mod 8)] mod 8 = 21 mod 8 = 5
             (11 x 15) mod 8 = 165 mod 8 = 5


9   Sarthak Patel (www.sarthakpatel.in)
Laws for Modular Arithmetic




10   Sarthak Patel (www.sarthakpatel.in)
Euler's Totient Function
        Before presenting Euler's theorem, we need to introduce
        an important quantity in number theory, referred to as
        Euler's totient function and written Ø(n), defined as the
        number of positive integers less than n and relatively
        prime to n. By convention, Ø(1) = 1.




11   Sarthak Patel (www.sarthakpatel.in)
Euler's Theorem
       Euler’s play important roles in public-key cryptography .

     Euler’s Theorem:
       Euler’s theorem states that for every a and n that are
       relatively prime:                         ( Congruences )
     Proof: Equation is true if n is prime, because in that case Ø(n) =
       (n -1) and Fermat's theorem holds. However, it also holds for
       any integer n. Recall that f(n) is the number of positive integers
       less than n that are relatively prime to n. Consider the set of
       such integers, labeled as follows:
                              R {x1, x2,..., xØ(n)}


12     Sarthak Patel (www.sarthakpatel.in)
Contd...
        That is, each element xi of R is a unique positive integer less
        than n with gcd(xi, n) = 1. Now multiply each element by a,
        modulo n:
           S = {(ax1 mod n), (ax2 mod n),..., (axØ(n) mod n)}
        If axi mod n = xi




13   Sarthak Patel (www.sarthakpatel.in)
Contd…




14   Sarthak Patel (www.sarthakpatel.in)
a=3; n=10; Ø(10) =4 aØ(n) =34 =81= 1(mod 10) = 1 (mod n)

     a=2; n=11; Ø(11)=10 aØ(n) =210=1024=1(mod 11) = 1(mod n)




15     Sarthak Patel (www.sarthakpatel.in)
The Euclid’s Algorithm
        One of the basic techniques of number theory is the
        Euclidean algorithm, which is a simple procedure for
        determining the greatest common divisor of two positive
        integers.




16   Sarthak Patel (www.sarthakpatel.in)
Contd…
     We will use the notation gcd(a, b) to mean the greatest
     common divisor of a and b. The positive integer c is said
     to be the greatest common divisor of a and b if
     1.    c is a divisor of a and of b;
     2.    any divisor of a and b is a divisor of c.
     An equivalent definition is the following:
     gcd(a, b) = max[k, such that k|a and k|b]


                         gcd(60, 24) = gcd(60, 24) = 12

17   Sarthak Patel (www.sarthakpatel.in)
Finding the Greatest Common Divisor
     Euclid’s Theorem:
       For any nonnegative integer a and any positive integer b,

     Proof:
       The algorithm assumes a > b > 0. It is acceptable to restrict the
       algorithm to positive integers because gcd(a, b) = gcd(|a|,
       |b|).




18    Sarthak Patel (www.sarthakpatel.in)
Euclid’s Algorithm




19   Sarthak Patel (www.sarthakpatel.in)
Discrete Logarithm Tics
        Discrete logarithms are fundamental to a number of public-
        key algorithms, including Diffie-Hellman key exchange and
        the digital signature algorithm (DSA).
        Logarithms for Modular Arithmetic
        Calculation of Discrete Logarithms




20   Sarthak Patel (www.sarthakpatel.in)
Logarithms for Modular Arithmetic
      The properties of logarithms include the following:
       logx(1) = 0
       logx(x) = 1




21    Sarthak Patel (www.sarthakpatel.in)
Contd…

     This exponent i is referred to as the discrete logarithm of the
     number b for the base a (mod p). We denote this value as
     dloga.p(b).




22   Sarthak Patel (www.sarthakpatel.in)
Example




23   Sarthak Patel (www.sarthakpatel.in)
Calculation of Discrete Logarithms

         Consider the equation
         y = gx mod p
         Given g, x, and p, it is a straightforward matter to calculate y.
         At the worst, we must perform x repeated multiplications,
         and algorithms exist for achieving greater efficiency.
         However, given y, g, and p, it is, in general, very difficult to
         calculate x (take the discrete logarithm).
         Time complexity O(e(ln p)1/3(ln ln p)2/3)



24    Sarthak Patel (www.sarthakpatel.in)
THE END
25   Sarthak Patel (www.sarthakpatel.in)

Mais conteúdo relacionado

Mais procurados

Algebra formulae
Algebra formulaeAlgebra formulae
Algebra formulaeTamizhmuhil
 
Integration
IntegrationIntegration
Integrationsuefee
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final reportJamesMa54
 
Algebra Presentation on Topic Modulus Function and Polynomials
Algebra Presentation on Topic Modulus Function and PolynomialsAlgebra Presentation on Topic Modulus Function and Polynomials
Algebra Presentation on Topic Modulus Function and PolynomialsAnzaLubis
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theoremJamesMa54
 
Dynamic programming (dp) in Algorithm
Dynamic programming (dp) in AlgorithmDynamic programming (dp) in Algorithm
Dynamic programming (dp) in AlgorithmRaihanIslamSonet
 
Greatest integer function
Greatest integer functionGreatest integer function
Greatest integer functionNeil MacIntosh
 
Number theoretic-rsa-chailos-new
Number theoretic-rsa-chailos-newNumber theoretic-rsa-chailos-new
Number theoretic-rsa-chailos-newChristos Loizos
 
Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables MariannaPatacnMosque
 

Mais procurados (16)

Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
Integration SPM
Integration SPMIntegration SPM
Integration SPM
 
Math academy-partial-fractions-notes
Math academy-partial-fractions-notesMath academy-partial-fractions-notes
Math academy-partial-fractions-notes
 
Algebra formulae
Algebra formulaeAlgebra formulae
Algebra formulae
 
Number theory
Number theoryNumber theory
Number theory
 
Integration
IntegrationIntegration
Integration
 
Cat Quant Cheat Sheet
Cat Quant Cheat SheetCat Quant Cheat Sheet
Cat Quant Cheat Sheet
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final report
 
Algebra Presentation on Topic Modulus Function and Polynomials
Algebra Presentation on Topic Modulus Function and PolynomialsAlgebra Presentation on Topic Modulus Function and Polynomials
Algebra Presentation on Topic Modulus Function and Polynomials
 
Number theory
Number theoryNumber theory
Number theory
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theorem
 
Dynamic programming (dp) in Algorithm
Dynamic programming (dp) in AlgorithmDynamic programming (dp) in Algorithm
Dynamic programming (dp) in Algorithm
 
Greatest integer function
Greatest integer functionGreatest integer function
Greatest integer function
 
Number theoretic-rsa-chailos-new
Number theoretic-rsa-chailos-newNumber theoretic-rsa-chailos-new
Number theoretic-rsa-chailos-new
 
Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables
 
Number theory lecture (part 2)
Number theory lecture (part 2)Number theory lecture (part 2)
Number theory lecture (part 2)
 

Destaque

Divisibility
DivisibilityDivisibility
Divisibilitymstf mstf
 
Module 2 lesson 19
Module 2 lesson 19Module 2 lesson 19
Module 2 lesson 19mlabuski
 
number theory
number theorynumber theory
number theoryklawdet
 
the division algorithm
the division algorithmthe division algorithm
the division algorithmJeneva Clark
 
ERATOSTHENES SIEVE
ERATOSTHENES SIEVEERATOSTHENES SIEVE
ERATOSTHENES SIEVEIES EUROPA
 
Factor slides and prime number info
Factor slides and prime number infoFactor slides and prime number info
Factor slides and prime number infoMrs Seo
 
Prime and composite numbers
Prime and composite numbersPrime and composite numbers
Prime and composite numbersMOHAMED NAVEED
 
Factorise toprimes
Factorise toprimesFactorise toprimes
Factorise toprimesharlie90
 
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...Real numbers - Fundamental theorem of arithmetic real number for class 10th m...
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...Let's Tute
 
Fundamental theorem of arithmatic
Fundamental theorem of arithmaticFundamental theorem of arithmatic
Fundamental theorem of arithmaticSubhrajeet Praharaj
 
Euclid's division algorithm
Euclid's division algorithmEuclid's division algorithm
Euclid's division algorithmShubham Kumar
 
euler's theorem
euler's theoremeuler's theorem
euler's theoremmihir jain
 
Prime Numbers
Prime NumbersPrime Numbers
Prime NumbersTaleese
 
Dgym as media for enhanchment dental public health (presented in seaade hongk...
Dgym as media for enhanchment dental public health (presented in seaade hongk...Dgym as media for enhanchment dental public health (presented in seaade hongk...
Dgym as media for enhanchment dental public health (presented in seaade hongk...Tiarisna Hidayatun Nisa
 

Destaque (20)

Divisibility
DivisibilityDivisibility
Divisibility
 
Module 2 lesson 19
Module 2 lesson 19Module 2 lesson 19
Module 2 lesson 19
 
number theory
number theorynumber theory
number theory
 
Circles
CirclesCircles
Circles
 
the division algorithm
the division algorithmthe division algorithm
the division algorithm
 
Prime numbers
Prime numbersPrime numbers
Prime numbers
 
ERATOSTHENES SIEVE
ERATOSTHENES SIEVEERATOSTHENES SIEVE
ERATOSTHENES SIEVE
 
Factor slides and prime number info
Factor slides and prime number infoFactor slides and prime number info
Factor slides and prime number info
 
Prime and composite numbers
Prime and composite numbersPrime and composite numbers
Prime and composite numbers
 
Factorise toprimes
Factorise toprimesFactorise toprimes
Factorise toprimes
 
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...Real numbers - Fundamental theorem of arithmetic real number for class 10th m...
Real numbers - Fundamental theorem of arithmetic real number for class 10th m...
 
Fundamental theorem of arithmatic
Fundamental theorem of arithmaticFundamental theorem of arithmatic
Fundamental theorem of arithmatic
 
Euclid's division algorithm
Euclid's division algorithmEuclid's division algorithm
Euclid's division algorithm
 
Prime Number
Prime NumberPrime Number
Prime Number
 
Cryptography
Cryptography Cryptography
Cryptography
 
euler's theorem
euler's theoremeuler's theorem
euler's theorem
 
Prime Numbers
Prime NumbersPrime Numbers
Prime Numbers
 
Remainder theorem
Remainder theoremRemainder theorem
Remainder theorem
 
Virus and worms
Virus and wormsVirus and worms
Virus and worms
 
Dgym as media for enhanchment dental public health (presented in seaade hongk...
Dgym as media for enhanchment dental public health (presented in seaade hongk...Dgym as media for enhanchment dental public health (presented in seaade hongk...
Dgym as media for enhanchment dental public health (presented in seaade hongk...
 

Semelhante a Is unit 4_number_theory

Cs6402 design and analysis of algorithms may june 2016 answer key
Cs6402 design and analysis of algorithms may june 2016 answer keyCs6402 design and analysis of algorithms may june 2016 answer key
Cs6402 design and analysis of algorithms may june 2016 answer keyappasami
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 
DAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptxDAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptxvaishnavi339314
 
lecture 1
lecture 1lecture 1
lecture 1sajinsc
 
A Level Set Method For Multiobjective Combinatorial Optimization Application...
A Level Set Method For Multiobjective Combinatorial Optimization  Application...A Level Set Method For Multiobjective Combinatorial Optimization  Application...
A Level Set Method For Multiobjective Combinatorial Optimization Application...Scott Faria
 
A common random fixed point theorem for rational inequality in hilbert space
A common random fixed point theorem for rational inequality in hilbert spaceA common random fixed point theorem for rational inequality in hilbert space
A common random fixed point theorem for rational inequality in hilbert spaceAlexander Decker
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.pptSnehSinha6
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksStratio
 
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...mathsjournal
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and ComplexityRajandeep Gill
 
A common unique random fixed point theorem in hilbert space using integral ty...
A common unique random fixed point theorem in hilbert space using integral ty...A common unique random fixed point theorem in hilbert space using integral ty...
A common unique random fixed point theorem in hilbert space using integral ty...Alexander Decker
 
DISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMDISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMMANISH KUMAR
 
Complexity Analysis
Complexity Analysis Complexity Analysis
Complexity Analysis Shaista Qadir
 

Semelhante a Is unit 4_number_theory (20)

Cs6402 design and analysis of algorithms may june 2016 answer key
Cs6402 design and analysis of algorithms may june 2016 answer keyCs6402 design and analysis of algorithms may june 2016 answer key
Cs6402 design and analysis of algorithms may june 2016 answer key
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 
Algorithm.ppt
Algorithm.pptAlgorithm.ppt
Algorithm.ppt
 
2.ppt
2.ppt2.ppt
2.ppt
 
DAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptxDAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptx
 
lecture 1
lecture 1lecture 1
lecture 1
 
A Level Set Method For Multiobjective Combinatorial Optimization Application...
A Level Set Method For Multiobjective Combinatorial Optimization  Application...A Level Set Method For Multiobjective Combinatorial Optimization  Application...
A Level Set Method For Multiobjective Combinatorial Optimization Application...
 
A common random fixed point theorem for rational inequality in hilbert space
A common random fixed point theorem for rational inequality in hilbert spaceA common random fixed point theorem for rational inequality in hilbert space
A common random fixed point theorem for rational inequality in hilbert space
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.ppt
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural Networks
 
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and Complexity
 
Algorithms DM
Algorithms DMAlgorithms DM
Algorithms DM
 
A common unique random fixed point theorem in hilbert space using integral ty...
A common unique random fixed point theorem in hilbert space using integral ty...A common unique random fixed point theorem in hilbert space using integral ty...
A common unique random fixed point theorem in hilbert space using integral ty...
 
Cis435 week02
Cis435 week02Cis435 week02
Cis435 week02
 
3 analysis.gtm
3 analysis.gtm3 analysis.gtm
3 analysis.gtm
 
DISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMDISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEM
 
Complexity Analysis
Complexity Analysis Complexity Analysis
Complexity Analysis
 

Mais de Sarthak Patel

IS Unit 9_Web Security
IS Unit 9_Web SecurityIS Unit 9_Web Security
IS Unit 9_Web SecuritySarthak Patel
 
IS Unit 8_IP Security and Email Security
IS Unit 8_IP Security and Email SecurityIS Unit 8_IP Security and Email Security
IS Unit 8_IP Security and Email SecuritySarthak Patel
 
IS Unit 7_Network Security
IS Unit 7_Network SecurityIS Unit 7_Network Security
IS Unit 7_Network SecuritySarthak Patel
 
Is unit 5_message authentication and hash functions
Is unit 5_message authentication and hash functionsIs unit 5_message authentication and hash functions
Is unit 5_message authentication and hash functionsSarthak Patel
 
IS Unit 3_Public Key Cryptography
IS Unit 3_Public Key CryptographyIS Unit 3_Public Key Cryptography
IS Unit 3_Public Key CryptographySarthak Patel
 
Is unit 2_conventional encryption techniques
Is unit 2_conventional encryption techniquesIs unit 2_conventional encryption techniques
Is unit 2_conventional encryption techniquesSarthak Patel
 
IS Unit 1_Conventional Encryption_Classical Encryption Techniques
IS Unit 1_Conventional Encryption_Classical Encryption TechniquesIS Unit 1_Conventional Encryption_Classical Encryption Techniques
IS Unit 1_Conventional Encryption_Classical Encryption TechniquesSarthak Patel
 

Mais de Sarthak Patel (7)

IS Unit 9_Web Security
IS Unit 9_Web SecurityIS Unit 9_Web Security
IS Unit 9_Web Security
 
IS Unit 8_IP Security and Email Security
IS Unit 8_IP Security and Email SecurityIS Unit 8_IP Security and Email Security
IS Unit 8_IP Security and Email Security
 
IS Unit 7_Network Security
IS Unit 7_Network SecurityIS Unit 7_Network Security
IS Unit 7_Network Security
 
Is unit 5_message authentication and hash functions
Is unit 5_message authentication and hash functionsIs unit 5_message authentication and hash functions
Is unit 5_message authentication and hash functions
 
IS Unit 3_Public Key Cryptography
IS Unit 3_Public Key CryptographyIS Unit 3_Public Key Cryptography
IS Unit 3_Public Key Cryptography
 
Is unit 2_conventional encryption techniques
Is unit 2_conventional encryption techniquesIs unit 2_conventional encryption techniques
Is unit 2_conventional encryption techniques
 
IS Unit 1_Conventional Encryption_Classical Encryption Techniques
IS Unit 1_Conventional Encryption_Classical Encryption TechniquesIS Unit 1_Conventional Encryption_Classical Encryption Techniques
IS Unit 1_Conventional Encryption_Classical Encryption Techniques
 

Último

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Is unit 4_number_theory

  • 1. 4:- Chapter 4:- Number Theory By:- Sarthak Patel (www.sarthakpatel.in)
  • 2. Outline Prime And Relative Prime Numbers Modular Arithmetic, Euler’s Theorem Euclid’s Algorithm Discrete Logarithm Tics 2 Sarthak Patel (www.sarthakpatel.in)
  • 3. Prime Numbers An integer p > 1 is a prime number if and only if its only divisors are ± 1 and ±p. Prime numbers play a critical role in number theory and in the techniques like RSA, Deffie- Hellman key exchange. 3 Sarthak Patel (www.sarthakpatel.in)
  • 4. Contd… Any integer a > 1 can be factored in a unique way as where p1 < p2 < ... < pt are prime numbers and where each is a positive integer. This is known as the fundamental theorem of arithmetic. 4 Sarthak Patel (www.sarthakpatel.in)
  • 5. Contd... If a and b are two prime numbers then this condition will always satisfy: gcd(a, b) = 1 Relatively Prime Two integers are relatively prime if their only common positive integer factor is 1. gcd(a, b) =1 ex: 8 and 15 5 Sarthak Patel (www.sarthakpatel.in)
  • 6. Divisibility & The Division Algorithm Divisibility We say that a nonzero b divides a b|a If b|a, we say that b is a divisor of a. The positive divisors of 24 are 1,2,3,4,6,8,12, and 24. 13|182 ; -5|30; 17|289 6 Sarthak Patel (www.sarthakpatel.in)
  • 7. Properties of Divisibility integers If a|1, then a= ±1 If a|b and b|c, then a|c Ex: 11|66 and 66|198= 11|198 Any b ≠ 0 then, b|a 7 Sarthak Patel (www.sarthakpatel.in)
  • 8. Division Algorithm Given any positive integer n and any nonnegative integer a, if we divide a by n, we get an integer quotient q and an integer remainder r that obey the following relationship: a = qn + r 8 Sarthak Patel (www.sarthakpatel.in)
  • 9. Modular Arithmetic Modular arithmetic properties: 1. [(a mod n) + (b mod n)] mod n = (a+b) mod n 2. [(a mod n) - (b mod n)] mod n = (a-b) mod n 3. [(a mod n) × (b mod n)] mod n = (a×b) mod n 11 mod 8 = 3; 15 mod 8 = 7 [(11 mod 8) + (15 mod 8)] mod 8 = 10 mod 8 = 2 (11 + 15) mod 8 = 26 mod 8 = 2 [(11 mod 8) - (15 mod 8)] mod 8 = - 4 mod 8 = - 4 (11 -15) mod 8 = - 4 mod 8 = - 4 [(11 mod 8) x (15 mod 8)] mod 8 = 21 mod 8 = 5 (11 x 15) mod 8 = 165 mod 8 = 5 9 Sarthak Patel (www.sarthakpatel.in)
  • 10. Laws for Modular Arithmetic 10 Sarthak Patel (www.sarthakpatel.in)
  • 11. Euler's Totient Function Before presenting Euler's theorem, we need to introduce an important quantity in number theory, referred to as Euler's totient function and written Ø(n), defined as the number of positive integers less than n and relatively prime to n. By convention, Ø(1) = 1. 11 Sarthak Patel (www.sarthakpatel.in)
  • 12. Euler's Theorem Euler’s play important roles in public-key cryptography . Euler’s Theorem: Euler’s theorem states that for every a and n that are relatively prime: ( Congruences ) Proof: Equation is true if n is prime, because in that case Ø(n) = (n -1) and Fermat's theorem holds. However, it also holds for any integer n. Recall that f(n) is the number of positive integers less than n that are relatively prime to n. Consider the set of such integers, labeled as follows: R {x1, x2,..., xØ(n)} 12 Sarthak Patel (www.sarthakpatel.in)
  • 13. Contd... That is, each element xi of R is a unique positive integer less than n with gcd(xi, n) = 1. Now multiply each element by a, modulo n: S = {(ax1 mod n), (ax2 mod n),..., (axØ(n) mod n)} If axi mod n = xi 13 Sarthak Patel (www.sarthakpatel.in)
  • 14. Contd… 14 Sarthak Patel (www.sarthakpatel.in)
  • 15. a=3; n=10; Ø(10) =4 aØ(n) =34 =81= 1(mod 10) = 1 (mod n) a=2; n=11; Ø(11)=10 aØ(n) =210=1024=1(mod 11) = 1(mod n) 15 Sarthak Patel (www.sarthakpatel.in)
  • 16. The Euclid’s Algorithm One of the basic techniques of number theory is the Euclidean algorithm, which is a simple procedure for determining the greatest common divisor of two positive integers. 16 Sarthak Patel (www.sarthakpatel.in)
  • 17. Contd… We will use the notation gcd(a, b) to mean the greatest common divisor of a and b. The positive integer c is said to be the greatest common divisor of a and b if 1. c is a divisor of a and of b; 2. any divisor of a and b is a divisor of c. An equivalent definition is the following: gcd(a, b) = max[k, such that k|a and k|b] gcd(60, 24) = gcd(60, 24) = 12 17 Sarthak Patel (www.sarthakpatel.in)
  • 18. Finding the Greatest Common Divisor Euclid’s Theorem: For any nonnegative integer a and any positive integer b, Proof: The algorithm assumes a > b > 0. It is acceptable to restrict the algorithm to positive integers because gcd(a, b) = gcd(|a|, |b|). 18 Sarthak Patel (www.sarthakpatel.in)
  • 19. Euclid’s Algorithm 19 Sarthak Patel (www.sarthakpatel.in)
  • 20. Discrete Logarithm Tics Discrete logarithms are fundamental to a number of public- key algorithms, including Diffie-Hellman key exchange and the digital signature algorithm (DSA). Logarithms for Modular Arithmetic Calculation of Discrete Logarithms 20 Sarthak Patel (www.sarthakpatel.in)
  • 21. Logarithms for Modular Arithmetic The properties of logarithms include the following: logx(1) = 0 logx(x) = 1 21 Sarthak Patel (www.sarthakpatel.in)
  • 22. Contd… This exponent i is referred to as the discrete logarithm of the number b for the base a (mod p). We denote this value as dloga.p(b). 22 Sarthak Patel (www.sarthakpatel.in)
  • 23. Example 23 Sarthak Patel (www.sarthakpatel.in)
  • 24. Calculation of Discrete Logarithms Consider the equation y = gx mod p Given g, x, and p, it is a straightforward matter to calculate y. At the worst, we must perform x repeated multiplications, and algorithms exist for achieving greater efficiency. However, given y, g, and p, it is, in general, very difficult to calculate x (take the discrete logarithm). Time complexity O(e(ln p)1/3(ln ln p)2/3) 24 Sarthak Patel (www.sarthakpatel.in)
  • 25. THE END 25 Sarthak Patel (www.sarthakpatel.in)