1.1 About this chapter (no points)

1.2 The Division Algorithm

Integer division: input and output values must always be integers

Definition 1.2.1: Divides

  • : divides
  • : does not divide
  • and for some
  • If , then:
    • is a multiple of
    • is a factor (or divisor) of

Linear combination of two numbers: the sum of multiples of those numbers

Theorem 1.2.1: Divisibility and linear combinations

  • Let
  • If and , then:
    • for any
    • If divides both and , then divides any integer linear combination of and

Proof 1.2.1: Divisibility and linear combinations

  • Since , then for some
  • Since , then for some
  • For any :
    • Since , is an integer multiple of
    • Therefore,

Theorem 1.2.2: The Division Algorithm

  • Let and let
  • Then there exist unique integers such that:

Definition 1.2.2: Integer division definitions

  • Integer Division:
    • is called the quotient
    • is called the remainder
  • The operations and produce the quotient and remainder:

1.3 Prime factorization

Prime: an integer greater than 1 and its only factors are 1 and itself
Composite: a positive integer has a factor other than 1 or itself

Theorem 1.3.1: The Fundamental Theorem of Arithmetic

Every positive integer other than 1 can be expressed uniquely as a product of prime numbers where the prime factors are written in nondecreasing order

Multiplicity of a prime factor p in a prime factorization: number of times p appears in the product of primes

Definition 1.3.1: Greatest common divisor and least common multiple

  • Greatest common divisor (GCD):

    • For integers and that are not both zero, is the largest positive integer that divides both and
    • and
  • Least common multiple (LCM):

    • For nonzero integers and , is the smallest positive integer that is a multiple of both and
    • and

Relatively prime: the greatest common divisor of the two numbers is 1

Theorem 1.3.2: GCD and LCM from prime factorizations

  • Let and be positive integers with prime factorizations:

    • are distinct prime numbers.
  • Divisibility:

    • for all
  • GCD:

    • Take the minimum exponent of each prime.
  • LCM:

    • Take the maximum exponent of each prime.

1.4 Floor and ceiling functions

  • Floor Function:

    • maps to the nearest integer in the downward direction.
    • Equivalently:
  • Ceiling Function:

    • maps to the nearest integer in the upward direction.
    • Equivalently:

1.5 Logarithms and exponents

Divide-and-conquer: breaking a problem into smaller parts, solving each part, then combining the solutions

  • Dividing Piles and the Logarithm Function:
    • Let with .
    • If each step replaces with until :
      • Number of steps
    • If each step replaces with until :
      • Number of steps

1.6 Number representation (optional)