Concept stop · What is it?

Divisibility: Definitions and Basic Properties

In the Chinese book: 整除的概念与基本性质

Put n dots in rows of d. A full rectangle means d divides n.

📖 §1.1 of 《整除、同余与不定方程》

Hands first, words secondDrag “d per row”. Which values of d arrange the 24 dots into a neat rectangle?

Loading figure…

Try this

  1. Drag slowly from to . Which values of make the remainder ? Compare them with the row of “Divisors of ” below.
  2. Fix and increase one step at a time. How often does “rows all full” show up?
  3. Set to , then to . How many values of still give a rectangle?
  4. With , gives rows and gives rows: divisors always come in pairs. Set to . Which is paired with itself?

Making a rectangle is exactly what the following definition says.

Definition Let and be integers with . If there is an integer such that , we say that divides and write . Then is a divisor of , and is a multiple of . If no rectangle is possible, we write .

Even when no rectangle is possible, things don't get messy: you can always fill full rows, with dots left over, where . This is division with remainder, . Divisibility is just the case where the remainder is .

Predict first

Suppose and . Does divide ?

Choose an answer first; then you can see the result.

Why

Why is the sum of two multiples of still a multiple of ? Stack the two piles of dots and look.

If d divides both piles, it divides their sum

Step 1 / 5
Loading figure…
  1. The first pile

    dots, per row, make exactly rows. So .

Two more properties that the “rows of dots” picture makes clear:

  • Transitivity: if and , then . (Rows of fill exactly, and is made of several copies of .)
  • Size: if and , then . So a nonzero integer has only finitely many divisors. This is the lifeline for solving Diophantine equations later on.

Remove one condition

Break it

Counterexample lab: remove one condition

Conclusion: if , then or

Take , , , so . Drag to , and in turn: divides , and it really does divide one of the factors, .

Loading figure…

Practice

Exercise 1Basic

How many of the numbers are divisible by ?

Exercise 2Advanced

Find all positive integers such that .

Exercise 3Advanced

and are integers with . Prove that .

Exercise 4Challenge

Find the largest positive integer such that .

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Dividing a product, so dividing one of the factors

The wrong step: , so or .
What went wrong? Think first, then open

Diagnosis . The hides in the and the hides in the : the was split up between the two factors, and neither one got a whole .

The right step: You can only go from to when is prime, or when and are coprime. Here and , yet : all three statements are true.

“A composite number can be split up; a prime cannot”

Exhibit

Thinking 0 cannot be divided by anything

The wrong step: contains no at all, so .
What went wrong? Think first, then open

Diagnosis The definition of divisibility is “there is an integer with ”. , and is an integer.

The right step: Every nonzero integer divides : , . On the other hand, divides only itself, so whenever we write we assume .

“Go back to the definition: can you find that q?”