Elementary Number Theory with Programming

Book description

A highly successful presentation of the fundamental concepts of number theory and computer programming

Bridging an existing gap between mathematics and programming, Elementary Number Theory with Programming provides a unique introduction to elementary number theory with fundamental coverage of computer programming. Written by highly-qualified experts in the fields of computer science and mathematics, the book features accessible coverage for readers with various levels of experience and explores number theory in the context of programming without relying on advanced prerequisite knowledge and concepts in either area.

Elementary Number Theory with Programming features comprehensive coverage of the methodology and applications of the most well-known theorems, problems, and concepts in number theory. Using standard mathematical applications within the programming field, the book presents modular arithmetic and prime decomposition, which are the basis of the public-private key system of cryptography. In addition, the book includes:

  • Numerous examples, exercises, and research challenges in each chapter to encourage readers to work through the discussed concepts and ideas

  • Select solutions to the chapter exercises in an appendix

  • Plentiful sample computer programs to aid comprehension of the presented material for readers who have either never done any programming or need to improve their existing skill set

  • A related website with links to select exercises

  • An Instructor's Solutions Manual available on a companion website

  • Elementary Number Theory with Programming is a useful textbook for undergraduate and graduate-level students majoring in mathematics or computer science, as well as an excellent supplement for teachers and students who would like to better understand and appreciate number theory and computer programming. The book is also an ideal reference for computer scientists, programmers, and researchers interested in the mathematical applications of programming.

    Table of contents

    1. COVER
    2. TITLE PAGE
    3. PREFACE
    4. WORDS
    5. NOTATION IN MATHEMATICAL WRITING AND IN PROGRAMMING
    6. 1 SPECIAL NUMBERS: TRIANGULAR, OBLONG, PERFECT, DEFICIENT, AND ABUNDANT
      1. TRIANGULAR NUMBERS
      2. OBLONG NUMBERS AND SQUARES
      3. DEFICIENT, ABUNDANT, AND PERFECT NUMBERS
      4. EXERCISES
    7. 2 FIBONACCI SEQUENCE, PRIMES, AND THE PELL EQUATION
      1. PRIME NUMBERS AND PROOF BY CONTRADICTION
      2. PROOF BY CONSTRUCTION
      3. SUMS OF TWO SQUARES
      4. BUILDING A PROOF ON PRIOR ASSERTIONS
      5. SIGMA NOTATION
      6. SOME SUMS
      7. FINDING ARITHMETIC FUNCTIONS
      8. FIBONACCI NUMBERS
      9. AN INFINITE PRODUCT
      10. THE PELL EQUATION
      11. GOLDBACH’S CONJECTURE
      12. EXERCISES
    8. 3 PASCAL’S TRIANGLE
      1. FACTORIALS
      2. THE COMBINATORIAL NUMBERS n CHOOSE k
      3. PASCAL’S TRIANGLE
      4. BINOMIAL COEFFICIENTS
      5. EXERCISES
    9. 4 DIVISORS AND PRIME DECOMPOSITION
      1. DIVISORS
      2. GREATEST COMMON DIVISOR
      3. DIOPHANTINE EQUATIONS
      4. LEAST COMMON MULTIPLE
      5. PRIME DECOMPOSITION
      6. SEMIPRIME NUMBERS
      7. WHEN IS A NUMBER AN mTH POWER?
      8. TWIN PRIMES
      9. FERMAT PRIMES
      10. ODD PRIMES ARE DIFFERENCES OF SQUARES
      11. WHEN IS n A LINEAR COMBINATION OF a AND b?
      12. PRIME DECOMPOSITION OF n!
      13. NO NONCONSTANT POLYNOMIAL WITH INTEGER COEFFICIENTS ASSUMES ONLY PRIME VALUES
      14. EXERCISES
    10. 5 MODULAR ARITHMETIC
      1. CONGRUENCE CLASSES MOD k
      2. LAWS OF MODULAR ARITHMETIC
      3. MODULAR EQUATIONS
      4. FERMAT’S LITTLE THEOREM
      5. FERMAT’S LITTLE THEOREM
      6. MULTIPLICATIVE INVERSES
      7. WILSON’S THEOREM
      8. WILSON’S THEOREM
      9. WILSON’S THEOREM (2ND VERSION)
      10. SQUARES AND QUADRATIC RESIDUES
      11. LAGRANGE’S THEOREM
      12. LAGRANGE’S THEOREM
      13. REDUCED PYTHAGOREAN TRIPLES
      14. CHINESE REMAINDER THEOREM
      15. CHINESE REMAINDER THEOREM
      16. EXERCISES
    11. 6 NUMBER THEORETIC FUNCTIONS
      1. THE TAU FUNCTION
      2. THE SIGMA FUNCTION
      3. MULTIPLICATIVE FUNCTIONS
      4. PERFECT NUMBERS REVISITED
      5. MERSENNE PRIMES
      6. F(n) = ∑f(d) WHERE d IS A DIVISOR OF n
      7. THE MÖBIUS FUNCTION
      8. THE RIEMANN ZETA FUNCTION
      9. EXERCISES
    12. 7 THE EULER PHI FUNCTION
      1. THE PHI FUNCTION
      2. EULER’S GENERALIZATION OF FERMAT’S LITTLE THEOREM
      3. PHI OF A PRODUCT OF m AND n WHEN gcd(m,n) > 1) > 1
      4. THE ORDER OF a (mod n)
      5. PRIMITIVE ROOTS
      6. THE INDEX OF m (mod p) RELATIVE TO a
      7. TO BE OR NOT TO BE A QUADRATIC RESIDUE
      8. THE LEGENDRE SYMBOL
      9. QUADRATIC RECIPROCITY
      10. LAW OF QUADRATIC RECIPROCITY
      11. WHEN DOES x2 = a (mod n) HAVE A SOLUTION?
      12. EXERCISES
    13. 8 SUMS AND PARTITIONS
      1. AN nTH POWER IS THE SUM OF TWO SQUARES
      2. SOLUTIONS TO THE DIOPHANTINE EQUATION a2 + b2 + c2 = d2
      3. ROW SUMS OF A TRIANGULAR ARRAY OF CONSECUTIVE ODD NUMBERS
      4. PARTITIONS
      5. WHEN IS A NUMBER THE SUM OF TWO SQUARES?
      6. SUMS OF FOUR OR FEWER SQUARES
      7. EXERCISES
    14. 9 CRYPTOGRAPHY
      1. INTRODUCTION AND HISTORY
      2. PUBLIC-KEY CRYPTOGRAPHY
      3. FACTORING LARGE NUMBERS
      4. THE KNAPSACK PROBLEM
      5. SUPERINCREASING SEQUENCES
      6. EXERCISES
    15. ANSWERS OR HINTS TO SELECTED EXERCISES
      1. CHAPTER 1
      2. CHAPTER 2
      3. CHAPTER 3
      4. CHAPTER 4
      5. CHAPTER 5
      6. CHAPTER 6
      7. CHAPTER 7
      8. CHAPTER 8
      9. CHAPTER 9
    16. INDEX
    17. END USER LICENSE AGREEMENT

    Product information

    • Title: Elementary Number Theory with Programming
    • Author(s): Marty Lewinter, Jeanine Meyer
    • Release date: June 2015
    • Publisher(s): Wiley
    • ISBN: 9781119062769