🏠 Home › 🔍 Number Theory › Lesson 3

🎯 Fingerprints, Exponent Laws, and the Factor Function f(n)

📖 Lesson 3 of 8

📌 Key ideas of this section

Every number breaks into primes in EXACTLY ONE way.   84 = 2² × 3 × 7
f(n) = the number of factors of n = (exponent + 1)s multiplied.  f(84) = 12

The fingerprint, refreshed

Smash any number into primes by dividing out the smallest prime that fits, over and over:

84 ÷ 2 = 42
42 ÷ 2 = 21
21 ÷ 3 = 7
 7 ÷ 7 = 1   ←  reaching 1 means you're done

Count the divisions: two 2s, one 3, one 7. So 84 = 2² × 3 × 7. This prime fingerprint is unique — the Fundamental Theorem of Arithmetic guarantees that no other number has the same one, and 84 has no other. (This is why 1 is not allowed to be prime: if it were, 6 = 2 × 3 and 6 = 1⁵ × 2 × 3 would be "different" fingerprints, and the theorem would break.)

Exponent laws: the three rules fingerprints run on

Since fingerprints are made of powers, let's make the power rules official. Each one is just counting:

The factor-counting machine, now with function notation

Here is a definition we'll use all lesson long:

f(n) = the number of factors of n.   Example: f(7) = 2, because 7 has 1 and 7.

This is a FUNCTION: you feed it a number n, and it hands you back one answer. (Function notation f(n) just names the machine f and the input n.) Now, how does the machine compute f(84) without listing anything? Every factor of 84 is built from 84's own primes — that's the only inventory. To build a factor, you make three choices:

Choosing "one 2, no 3s, one 7" builds 2 × 7 = 14 — a factor of 84. Every choice builds a factor, and every factor comes from a choice, so the counts multiply:

f(84) = 3 × 2 × 2 = 12

Verify by listing: 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84. Count them: 12! ✅ The rule in one line: add 1 to each exponent, then multiply. The +1 is the "choose none" option — easy to forget, fatal to skip.

Running the machine BACKWARDS

Honors questions love reverse gear. Problem: find the SMALLEST number with exactly 6 factors.

We need f(n) = 6.  How can (exponent + 1)s multiply to 6?
6 = 6           → fingerprint shape p⁵        (one prime, exponent 5)
6 = 3 × 2       → fingerprint shape p² × q    (two primes, exponents 2 and 1)

Now build the smallest number of each shape, using the smallest primes, biggest exponent on the smallest prime:

p⁵:      2⁵ = 32
p² × q:  2² × 3 = 12

32 loses, 12 wins. Answer: 12 — check by listing: 1, 2, 3, 4, 6, 12. Six factors ✅. The two-step strategy (factor the COUNT first, then race the shapes) solves every backwards problem in this lesson.

Perfect squares: the odd-factor-count theorem

When is f(n) ODD? Only when every (exponent + 1) is odd — which means every exponent is even — which means n is a perfect square! Here's the "why" with algebra. Factors come in pairs: whenever d is a factor of n, so is its partner n ÷ d, and the pair multiplies to n. Two cases:

Example: 36 = 6² has f(36) = (2+1)(2+1) = 9 factors, and 6 pairs with itself. Keep this in your pocket — a certain locker mystery in the challenge problems depends on it.

One more square trick. Problem: find the smallest k that makes 72 × k a perfect square.

72 = 2³ × 3²             fingerprint first
exponents: 3 is ODD, 2 is even
a square needs ALL exponents even
so supply one more 2:  k = 2
Check: 72 × 2 = 144 = 2⁴ × 3² = (2² × 3)² = 12² ✅

Bonus: the factor-ADDING machine

If f(n) counts the factors, call g(n) the function that ADDS them. There's a machine for that too, and it runs on pure distribution. For 12 = 2² × 3:

g(12) = (1 + 2 + 4) × (1 + 3) = 7 × 4 = 28

Why does the product work? Distribute it out — every factor of 12 appears exactly once:

(1 + 2 + 4)(1 + 3) = 1×1 + 2×1 + 4×1 + 1×3 + 2×3 + 4×3
                   = 1 + 2 + 4 + 3 + 6 + 12 = 28 ✅

Each group in parentheses is "all the powers of one prime." Multiplying the groups builds every possible choice — the same menu logic as the counting machine, one level up.

A beautiful payoff: a PERFECT NUMBER is one whose factors (other than itself) add up to the number itself. For 28 = 2² × 7:

g(28) = (1 + 2 + 4) × (1 + 7) = 7 × 8 = 56 = 2 × 28

The machine counted ALL the factors including 28, and got exactly double — so the proper factors sum to 28 itself (1 + 2 + 4 + 7 + 14 = 28). Perfect! The Greeks knew four perfect numbers: 6, 28, 496, and 8128. They all come from primes of the form 2ᵖ − 1 (like 7 = 2³ − 1 and 31 = 2⁵ − 1), and whether infinitely many exist is still an unsolved mystery.

✏️ Your Turn!

  • 1.
    Compute f(60) with the machine — no listing allowed.
  • 2.
    Find the smallest number with exactly 4 factors. (Hint: 4 = 4 gives shape p³; 4 = 2 × 2 gives shape p × q.)
👀 Show the answers

Answers: 1. 60 = 2² × 3 × 5, so f(60) = (2+1)(1+1)(1+1) = 3 × 2 × 2 = 12. 2. Shape p³ starts at 2³ = 8; shape p × q starts at 2 × 3 = 6. Winner: 6 (factors 1, 2, 3, 6) ✅.

V.3.1