Elementary Concepts

This chapter covers the core concepts of number theory.

Below is a small sample of just a few of the types of integers we'll be considering.

integers {,4,3,2,1,0,1,2,3,4,5,}naturals {0,1,2,3,4,5,6,7,8,9,10,}primes {2,3,5,7,11,13,17,19,23,}composites {4,6,8,9,10,12,14,15,16,}evens {,6,4,2,0,2,4,6,8,10,12,}perfect squares {0,1,4,9,16,25,36,49,64,81,100,}negative cubes {1,8,27,64,125,216,343}abundant numbers {12,18,20,24,30,36,40,42,48,54,}palindromes {11,313,838,3443,7447,57875,}\begin{aligned} & \tx{integers } \set{\ldots, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, \ldots} \\ & \tx{naturals } \set{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, \ldots} \\ & \tx{primes } \set{2, 3, 5, 7, 11, 13, 17, 19, 23, \ldots} \\ & \tx{composites } \set{4, 6, 8, 9, 10, 12, 14, 15, 16, \ldots} \\ & \tx{evens } \set{\ldots, -6, -4, -2, 0, 2, 4, 6, 8, 10, 12, \ldots} \\ & \tx{perfect squares } \set{0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, \ldots} \\ & \tx{negative cubes } \set{-1, -8, -27, -64, -125, -216, -343} \\ & \tx{abundant numbers } \set{12, 18, 20, 24, 30, 36, 40, 42, 48, 54, \ldots} \\ & \tx{palindromes } \set{11, 313, 838, 3443, 7447, 57875, \ldots} \\ \end{aligned}

We begin by definining symbols used in this volume. The symbol N{\nat} denotes the set of natural numbers, {0,1,2,,n}.{\set{0,1,2,\ldots,n}.} The natural numbers in these materials specifically include 0.{0.} To denote the set of positive integers, we use the symbol Z+.{\pint.} To denote the set of negative integers, we use Z.{\nint.} The set of nonpositive integers, while rarely used, is denoted 0.{\int_{\le 0}.} No additional symbol is needed for the set of nonnegative integers, as those numbers are the naturals N.{\nat.} On occassion, we should like to use a few more: The set of odd integers is denoted Z2Z,{\odds,} the evens 2Z,{\evens,} and the primes P.{\primes.}

Arithmetic

Arithmetic, fundamentally, is just fast counting. The simplest counting technique is enumeration — given a box of n{n} peaches, we see one peach and think, that's one. We see another and think, that's two. We see an apple and think, "not a peach, don't count." If we're given another box containing equinumerous (an equal amount of) peaches, we could enumerate again. But if we're told that the first and second boxes have the same amount of peaches, we can instead use a faster counting technique — addition for the peaches, subtraction for the faux. If we're given ten boxes of n{n} peaches, we could add each one, but why run when we can drive: multiplication for the peaches, for the division the others. And if we're given n{n} boxes of n{n} peaches, we can fly — exponentiation and rooting. Below are the basic definitions we'll use throughout the materials.

closure of integer addition (a+b=c  a,bZ)(cZ).{(a + b = c~\land~a,b \in \uint) \nc (c \in \uint).}

closure of integer multiplication (ab=c  a,bZ)(cZ).{(a \by b = c~\land~a,b \in \uint) \nc (c \in \uint).}

commutativity of integer addition (a,bZ)(a+b=b+a).{(a,b \in \uint) \nc (a + b = b + a).}

commutativity of integer multiplication (a,bZ)(a+b=b+a).{(a,b \by \uint) \nc (a + b = b + a).}

associativity of integer addition a,b,cZ(a+b)+c=a+(b+c).{a,b,c \in \uint \nc (a+b)+c = a+(b+c).}

Closure, commutativity, and associativity are enough to give us some interesting tricks. For example, if we know that a,bZ,{a,b\in \uint,} then we know that a+b=b+a.{a+b=b+a.} And if we know that a+b=b+a,{a+b = b+a,} then we can transpose some integer c{c} to the equation:

a+b=b+ac+a+b=b+a+c \eqs{ a + b &= b + a \\ &\parallel \\ c + a + b &= b + a + c }

Exponentiation leads to the notion "perfectly-shaped" numbers.

perfect square Let a{a} and b{b} be integers. Then a{a} is a perfect square if, and only if, a=b2.{a = b^2.}

The term "perfect square" is descriptive. Some examples of perfect squares:

0{0}1{1}4{4}9{9}
16{16}25{25}36{36}49{49}
64{64}81{81}100{100}121{121}
144{144}169{169}196{196}225{225}

perfect cube Let a{a} and b{b} be integers. Then a{a} is a perfect cube if, and only if, a=b3.{a = b^3.}

Like their lower-dimension cousins, perfect cubes share a similar pattern, but notice how fast the numbers become.

0{0}1{1}8{8}27{27}
64{64}125{125}216{216}343{343}
512{512}729{729}1000{1000}1331{1331}
1728{1728}2197{2197}2744{2744}3375{3375}

Both perfect cubes and perfect powers are examples of perfect powers. Thus, a perfect square is a perfect power of 2, and a perfect cube is a perfect power of 3.

perfect power Let a,{a,} b,{b,} and c{c} be integers. Then a{a} is a perfect power if, and only if, a=bc.{a = b^c.}

Divisibility

We begin by building some intuition. How many 4s must we add together to get 12? 3. And 44? 11. In both these cases, we say that 12 and 44 are multiples of 4. 12 is a multiple of 3, and 11 is a multiple of 44. But 3 is not a multiple of 44, nor is 11 a multiple of 12. Already we see some interesting relationships. Let's explore this further.

Starting at 0, suppose we count by 2 all the way up to 50. This gives us the following pattern:

246810
1214161820
2224262830
3234363840
4244464850

Let's express this pattern in a different way:

2=24=226=2228=222210=2222212=222222 \eqs{ 2 &= 2 \\ 4 &= 2 \by 2 \\ 6 &= 2 \by 2 \by 2 \\ 8 &= 2 \by 2 \by 2 \by 2 \\ 10 &= 2 \by 2 \by 2 \by 2 \by 2 \\ 12 &= 2 \by 2 \by 2 \by 2 \by 2 \by 2 \\ &\vdots }

Notice that each of the sums can be expressed as the product of 2 and another integer:

2=214=226=238=2410=2512=26 \eqs{ 2 &= 2 \by 1 \\ 4 &= 2 \by 2 \\ 6 &= 2 \by 3 \\ 8 &= 2 \by 4 \\ 10 &= 2 \by 5 \\ 12 &= 2 \by 6 \\ &\vdots }

Simply playing with these patterns returns useful insight. The multiple of a positive integer n{n} is a member of a structure that can be drawn as a right triangle:

( kn )k=1=nn+nn+n+nn+n+n+nn+n+n+n+nn+n+n+n+n+nn+n+n+n+n+n+n \seq{k \by n}{k=1}{\infty} = \eqs{ & n \\ & n + n \\ & n + n + n \\ & n + n + n + n \\ & n + n + n + n + n \\ & n + n + n + n + n + n \\ & n + n + n + n + n + n + n \\ & \vdots }

Above, the number k{k} tells us how many n{n}s we need to get a multiple of n,{n,} or, algebraically, the number of n{n}s we need to get kn.{kn.} If we express x=kn,{x = kn,} then commutivity tells us that x{x} is also an integer. Thus, given an integer x,{x,} one question we might ask is: How many n{n}s do we need to get x?{x?} Or, perhaps more interestingly, if someone gave us a number x,{x,} would we find it in the structure above? As it turns out, knowing the answer to this question is extremely valuable. If x{x} is the number of available dollars and n{n} is the number of people, knowing the value k{k} determines whether a distribution is fair (assuming we define fair as everyone gets an equal piece of the pie). This brings us to the concept of divisibility.

divisibility Let a{a} and b{b} be integers. If there exists an integer c{c} such that ac=b,{a \by c = b,} then we say that a{a} divides b{b} and write a  b.{a \dv b.} If a{a} does not divide b,{b,} we write ab.{a \ndv b.} Symbolically: a  bc( ac=b ).{a \dv b \iff \exists c \ar{~ ac = b ~}.}

There are some subtleties to this definition. First, a  b{a \dv b} is a completely different expression from a÷b,{a \div b,} a/b,{a/b,} or ab.{\frac{a}{b}.} It's also a completely different expression b÷a,{b \div a,} b/a,{b/a,} and ba.{\frac{b}{a}.} When we write x/y,{x/y,} we're saying "xx divided by y.y." This is not a proposition — we can't assign it a value of true or false because it's just an expression of some object (e.g., the number x/y{x/y}). But when we write x  y,{x \dv y,} we're saying "xx divides y.y." That's a proposition — we can assign it a value of either true or false.

Second, notice that this definition does not impose the requirement that c0.{c \neq 0.} This is because 0{0} has the special property of being the multiple of every integer. For example, 03=0.{0 \by 3 = 0.} The oft-taught rule "dividing by 0 is undefined" purposely hides a nuance to avoid overcomplicating elementary matters. What that rule really means is, "0 does not have a multiplicative inverse." If it did, we would have

0=010=010=1 \eqs{ 0 &= 0 \by \dfrac{1}{0} \\[1em] &= \cancel{0} \by \dfrac{1}{\cancel{0}} \\[1em] &= 1 }

Clearly, we don't want to have a structure where 1=0.{1=0.} Because division on the reals is defined as multiplying by the multiplicative inverse, 0's lack of a multiplicative inverse means that "dividing by 0 is undefined." The notion of divisibility is divorced from all of this drama because it lives only in the world integers — 0  0{0 \dv 0} is trivially true. If we brought it into the world of rationals or reals, however, we'd have to impose the requirement that a0.{a \neq 0.} This requires us to prove or assume that a0{a \neq 0} whenever we want to work with divisibility.

The third point in the definition is that divisibility is an antisymmetric relation. That is, if a  b{a \dv b} and b  a,{b \dv a,} then a=b.{a = b.} For example, 3 divides 12, but 12 does not divide 3. 15 divides 5, but 5 does not divide 15. This leads to an alternative statement of divisiblity.

proposition 0.1 Let a,bZ{a,b \in \uint} with a0.{a \neq 0.} Then a  bbaZ.{a \dv b \iff \dfrac{b}{a} \in \uint.}

That is, the sentence a  b{a \dv b} is equivalent to b/aZ.{b/a \in \uint.} Viewed this way, we can think of divisibility as being the border between rationals and integers. 1/3{1/3} is not integer, but 3/3{3/3} is. Knowing that a rational b/a{b/a} is not an integer is the first step to figuring out how we can "naturalize" the the rational. The rational 1/3{1/3} needs a 1/3+2/3=3/3=1.{1/3 + 2/3 = 3/3 = 1.}

If a  b{a \dv b} is true, then we can multiply b/a{b/a} by a{a} to get the integer b.{b.} This seems elementary, but it has a profound impact on many other areas of mathematics and computer science. For example, computers have a finite number of bits they can use to represent numbers. This poses challenges for computations involving extremely large numbers — astronomical distances, stock exchanges, physics simulations, etc. Many of these challenges can be eased by reducing some massive integer x{x} to a tiny integer b.{b.} We can only do so if we know that x=b/a{x = b/a} and a  b.{a \dv b.}

terminology Let n/dZ{n/d \in \uint} with d0.{d \neq 0.} Then all of the following statements are equivalent:

  • n{n} is a multiple of d.{d.}
  • n{n} is divisible by d.{d.}
  • d{d} is a divisor of n.{n.}
  • d{d} divides n.{n.}

If nd{n \neq d} and dZ+,{d \in \uint^+,} then we say that d{d} is a proper divisor of n.{n.} Given an integer n,{n,} we denote the set of all factors of n{n} with factors(n),{\df{factors}(n),} and a member of this set with divisor(n).{\df{divisor}(n).}

Briefly returning to the integer zero, we can always express zero in terms of another integer n:{n:}

0=0n. 0 = \dfrac{0}{n}.

Consider the following patterns of multiples:

These patterns correspond to the multiples of an integer n{n} in 2 through 10, along the range from 0 to 20. Notice that we never see a multiple of n{n} before n{n} itself. This leads to the following:

lemma 0.1 Let a,bZ.{a,b \in \uint.} If a  b,{a \dv b,} then 0a<b.{0 \le a \lt b.}

What the lemma above tells us is that, if we're searching for the factors of b,{b,} then our range is only between 0{0} and b.{b.} The smaller b{b} is, the less we have to search. The larger b{b} is, the more we have to search. Of course, we aren't always so lucky to get a small b.{b.} Are there ways to make our range smaller?

Compare the factors of 6 and the factors of 18:

factors(6)={1,2,3,6}factors(18)={1,2,3,6,9,18} \eqs{ \df{factors}(6) &= \set{1,2,3,6} \\ \df{factors}(18) &= \set{1,2,3,6,9,18} \\ }

Notice that the factors of of 18 are also the factors of 6. Is there a relationship here? Well, suppose a  b{a \dv b} and b  c.{b \dv c.} This means that we can write b=ak{b=ak} and c=aj,{c = aj,} where k{k} and j{j} are integers. If we multiply them:

bc=(ak)(aj)=a(kj). bc = (ak)(aj) = a(kj).

Given the multiplication is closed on the integers, we know that kj{kj} is an integer. And since kj{kj} is an integer, we know that a  c.{a \dv c.} Thus, we have the following:

lemma 0.2 Let a,b,cZ.{a,b,c \in \uint.} If a  b{a \dv b} and b  c,{b \dv c,} then a  c.{a \dv c.}

Another way to view this lemma: If a  b{a \dv b} and b  c,{b \dv c,} then we can write c{c} in terms of b.{b.} And if we can write b{b} in terms of a,{a,} then we can write c{c} in terms of a.{a.} For example:

18=36=3(32) \eqs{ 18 &= 3 \by 6 \\ &= 3 \by (3 \by 2) }

This observation leads to another lemma. If we know that a  b,{a \dv b,} then it must be the case that a  bc{a \dv bc} for any integer c.{c.} Suppose t=bc.{t = bc.} Because multiplication is closed on the integers, t{t} is an integer. Therefore, a  t.{a \dv t.} And since t=bc,{t = bc,} it follows that a  bc.{a \dv bc.}

lemma 0.3 Let a,b,cZ.{a,b,c \in \uint.} If a  b,{a \dv b,} then a  bc{a \dv bc} for any integer c.{c.}

Consider the factors of 8{8} and the factors of 10:{10:}

factors(8)={1,2,4,8}factors(24)={1,2,5,10} \eqs{ \df{factors}(8) &= \set{1,2,4,8} \\ \df{factors}(24) &= \set{1,2,5,10} }

If we add 8 and 10 together, we get 18.{18.} Let's compare the factors of 18 as well:

factors(8)={1,2,4,8}factors(24)={1,2,5,10}factors(18)={1,2,3,6,9,18} \eqs{ \df{factors}(8) &= \set{1,2,4,8} \\ \df{factors}(24) &= \set{1,2,5,10} \\ \df{factors}(18) &= \set{1,2,3,6,9,18} }

Notice that the factors shared here are 1{1} and 2.{2.} That is,

factors(8)factors(20)factors(18)={1,2} \df{factors}(8) \cap \df{factors}(20) \cap \df{factors}(18) = \set{1,2}

We can generlize this result. If a  b{a \dv b} and a  c,{a \dv c,} then from the definition of divisiblity, we can write b=ak{b = ak} and c=aj,{c = aj,} where k{k} and j{j} are integers. Which means that if we add b{b} and c,{c,} we get:

b+c=ak+aj=a(k+j) b + c = ak + aj = a(k + j)

And since multiplication and addition are closed on the integers, the term k+j{k + j} is also an integer. Thus, we have the following lemma:

lemma 0.4 Let a,{a,} b,{b,} and c{c} be integers. If a  b{a \dv b} and b  c,{b \dv c,} then a  (b+c).{a \dv (b + c).}

This lemma leads to a particularly important corollary. Suppose a  b{a \dv b} and a  c.{a \dv c.} From lemma 0.3, we know that we can rewrite these statements as a  kb{a \dv kb} and a  jc,{a \dv jc,} where k{k} and j{j} are integers. And lemma 0.4 just showed us that we can then rewrite this as a  nb+mc.{a \dv nb + mc.} Thus, we have the following corollary:

corollary Let a,b,cZ.{a,b,c \in \uint.} If a  b{a \dv b} and a  c,{a \dv c,} then a  kb+jc{a \dv kb + jc} for all integers k{k} and j.{j.}

Prime Numbers

In the previous sections, we saw that integers can be broken down into smaller integers, called the integers factors, or divisors. This results from the fact that 1{1} is a divisor of every natural number, and every natural number is a divisor of itself. Thus, every natural number has at least two positive divisors. This means that we have a split among the integers greater than 1. Those that have exactly two divisors, and those that have more.

prime number Let n{n} be an integer greater than 1.{1.} Then n{n} is prime if, and only if, its only divisors are 1{1} and n.{n.} We denote the set of all primes as P,{\primes,} and if n{n} is prime, we write nP.{n \in \primes.}

composite number. Let a,b,cZ+{a,b,c \in \uint^+} with a>1{a \gt 1} and b>1.{b \gt 1.} Then c{c} is a composite number if, and only if, c=ab{c = ab} with ac{a \neq c} and bc,{b \neq c,}

We can think of primes as being the "end of the road" integers. If we encounter a prime p,{p,} then we have only two ways of expressing it: p{p} or p1.{p \by 1.} The first prime is defined to be 2.{2.} Why? Because the factors of 0{0} are all the integers. The integer 1{1} isn't prime because if it were, it would make the definition of prime useless. We could simply write any prime p{p} as p111,{p \by 1 \by 1 \by \ldots \by 1,} in which case p{p}'s divisors wouldn't just be 1{1} and itself — it has infinitely many divisors of 1.{1.} The integer 1,{1,} however, is a very special number. It's the only positive integer that's neither prime nor composite. It's not prime by definition. However, it's not composite either because it's 1.{1.} Because of this special status, the number 1{1} is sometimes called the unit number.

This hints at why primes are so special — they're unique. The only way to express a prime p{p} is by either writing p{p} or p1.{p \by 1.} And since p1=p,{p \by 1 = p,} we can really only express p{p} as, well, p.{p.} For example, 4{4} can be written as 22.{2 \by 2.} Hence the name composite — we can decompose 4{4} into 22.{2 \by 2.} The integer 3,{3,} however, can't be decomposed. Our only options are 3{3} and 31.{3 \by 1.}

The Sieve of Eratosthenes

Consider the following pattern, where non-primes are greyed out.

1{\gy{1}}234{\gy{4}}56{\gy{6}}78{\gy{8}}9{\gy{9}}10{\gy{10}}
1112{\gy{12}}1314{\gy{14}}15{\gy{15}}16{\gy{16}}1718{\gy{18}}1920{\gy{20}}
21{\gy{21}}22{\gy{22}}2324{\gy{24}}25{\gy{25}}26{\gy{26}}27{\gy{27}}28{\gy{28}}2930{\gy{30}}
3132{\gy{32}}33{\gy{33}}34{\gy{34}}35{\gy{35}}36{\gy{36}}3738{\gy{38}}39{\gy{39}}40{\gy{40}}
4142{\gy{42}}4344{\gy{44}}45{\gy{45}}46{\gy{46}}4748{\gy{48}}49{\gy{49}}50{\gy{50}}
51{\gy{51}}52{\gy{52}}5354{\gy{54}}55{\gy{55}}56{\gy{56}}57{\gy{57}}58{\gy{58}}5960{\gy{60}}
6162{\gy{62}}63{\gy{63}}64{\gy{64}}65{\gy{65}}66{\gy{66}}6768{\gy{68}}69{\gy{69}}70{\gy{70}}
7172{\gy{72}}7374{\gy{74}}75{\gy{75}}76{\gy{76}}77{\gy{77}}78{\gy{78}}7980{\gy{80}}
81{\gy{81}}82{\gy{82}}8384{\gy{84}}85{\gy{85}}86{\gy{86}}87{\gy{87}}88{\gy{88}}8990{\gy{90}}
91{\gy{91}}92{\gy{92}}93{\gy{93}}94{\gy{94}}95{\gy{95}}96{\gy{96}}9798{\gy{98}}99{\gy{99}}100{\gy{100}}

As we get further and further down, there are less and less primes. This particular pattern is called the Sieve of Eratosthenes, defined by the following algorithm.

Sieve of Eratosthenes

  • input: nZ+{n \in \uint^+}
  • output: A list L=(f0,f1,f2,,fi=n1){L = \ar{f_0, f_1, f_2, \ldots, f_{i=n-1}}} where fi{f_i} are the factors of n.{n.}
  1. init Lnew list{\let{L}{\df{new list}}}
  2. init d2{\let{d}{2}}
  3. while n>1{n \gt 1} and d2n{d^2 \le n} do
    1. init k0{\let{k}{0}}
    2. while d  n{d \dv n} do
      1. nn/2{\let{n'}{n/2}}
      2. kk+1{\let{k'}{k+1}}
      3. if k>0{k \gt 0} then
        1. push(k)L{\df{push}(k) \mapsto L}
        2. dd+1{\let{d'}{d+1}}
  4. if n>1{n \gt 1} then push(1)L{\df{push}(1) \mapsto L}
  5. return L{L} {\blacksquare}

Broadly, the algorithm works as follows: We loop from 2{2} to n,{n,} eliminating all multiples of 2.{2.} Then we go to the next number, 3,{3,} and eliminate all of its multiples. 4{4} was eliminated when we eliminated 2{2}'s multiples, so we go to 5.{5.} Eliminate all of 5{5}'s multiples. This continues all the way up to our desired number. That's the broad description. What exactly is that d2{d^2} term? This question brings us to the notion of the semiprimes.

Semiprimes

semiprime. Let n{n} be a positive integer. Then n{n} is a semiprime if, and only if, there exists a prime number a{a} and a prime number b{b} such that n=ab.{n = ab.} If a=b,{a = b,} we say that n{n} is a square-semiprime. If ab,{a \neq b,} we say that n{n} is a squarefree-semiprime.

Below is a sample pattern of square-semiprimes.

p235711131719232931p2492548121169289361529841961 \ax{ & p & 2 & 3 & 5 & 7 & 11 & 13 & 17 & 19 & 23 & 29 & 31 \\[0.9em] & p^2 & 4 & 9 & 25 & 48 & 121 & 169 & 289 & 361 & 529 & 841 & 961 \\ }

If examine this integer reference we see that each square semiprime p2{p^2} is the smallest composite number whose prime divisors are no less than p.{p.} For example, 4{4} only has one prime divisor, 2.{2.} So, 4{4} is the smallest composite number whose prime divisors are no less than 2.{2.} Likewise, 9{9}'s only prime divisor is 3.{3.} Thus, 9{9} is the smallest composite number whose prime divisors are no less than 3.{3.}

This stems from a fact we've seen earlier: Given an integer p,{p,} the factors of p{p} will lie between 0{0} and p.{p.} This means that the largest factor of p{p} is p{p} itself. We can also infer that any integer of the form p2{p^2} is a composite number by definition, since p{p} is the product of two integers other than 1{1} and p.{p.}

Suppose we're given the following facts:

  • a{\df{a}}: c,d,p,qZ+.{c,d,p,q \in \uint^+.}
  • b{\df{b}}: c{c} is composite.
  • c{\df{c}}: d{d} is a factor of c.{c.}
  • d{\df{d}}: d<p.{d \lt p.}
  • e{\df{e}}: q{q} is a factor of d.{d.}
  • f{\df{f}}: q{q} is prime.

We can therefore infer the following:

  • g{\df{g}}: cd  c.{\df{c} \nc d \dv c.}
  • h{\df{h}}: eq  d.{\df{e} \nc q \dv d.}
  • i{\df{i}}: gh{\df{g} \land \df{h}} {\nc} q  c.{q \dv c.}
  • j{\df{j}}: h{\df{h}} {\nc} qd.{q \le d.}
  • k{\df{k}}: jd{\df{j} \land \df{d}} {\nc} qd<p.{q \le d \lt p.}
  • l{\df{l}}: k{\df{k}} {\nc} c{c} has a prime divisor less than p,{p,} namely, q.{q.}

Our conclusion l{\df{l}} doesn't seem all that interesting until we consider its contrapositive: If c{c} has no prime divisors less than p,{p,} then d<q{d \lt q} or dp.{d \le p.} Since proposition h{\df{h}} tells us that q  d,{q \dv d,} d<q{d \lt q} can't be true, so it must be the case that dp.{d \le p.} This statement, however, can be narrowed further: Because of proposition d,{\df{d},} we know that d<p.{d \lt p.} This leads to the following lemma.

lemma. Let p{p} be a positive integer and c{c} be a composite number. If c{c} has no prime factors less than p,{p,} then c{c} has no factors less than p.{p.}

Now let's connect this lemma with our discussion of square-semiprimes. By definition, a square semiprime is a composite number — it's the square of two primes, p2=pp.{p^2 = p \by p.} Given a composite number n<p2,{n \lt p^2,} it follows that n{n} has a divisor d{d} that is less than p2.{p^2.} If it turns out that d{d} is prime, it must be less than p.{p.} Why? Because if d>p,{d \gt p,} then d2>p2.{d^2 \gt p^2.} And if d2>p2,{d^2 \gt p^2,} then n>p2,{n \gt p^2,} which contradicts the fact that n<p2.{n \lt p^2.} The lemma we just proved tells us that if c{c} has no prime factors less than p,{p,} then c{c} has no factors less than p.{p.} Which means that, if we want to find all of the prime factors of an integer c,{c,} we only need to check for prime divisors less than or equal to c.{\sqrt{c.}}

corollary. Let cZ+{c \in \uint^+} with c>1{c \gt 1} and lpf(c){\df{lpf}(c)} denoting the least prime factor of c.{c.} Then lpf(c)<c.{\df{lpf}(c) \lt \sqrt{c}.}

Integer Reference

Below is a table of factors for reference.

nZ+{n \in \uint^+}factorsprime factorsproperties
1{1}{1}{\set{1}}{\nil}unit number, neither prime nor composite
2{2}{1,2}{\set{1,2}}{2}{\set{2}}
3{3}{1,3}{\set{1,3}}{3}{\set{3}}
4{4}{1,2,4}{\set{1,2,4}}{2}{\set{2}}perfect square, square semi-prime
5{5}{1,5}{\set{1,5}}{5}{\set{5}}
6{6}{1,2,3,6}{\set{1,2,3,6}}{3}{\set{3}}
7{7}{1,7}{\set{1,7}}{7}{\set{7}}
8{8}{1,2,4,8}{\set{1,2,4,8}}{2}{\set{2}}
9{9}{1,3,9}{\set{1,3,9}}{3}{\set{3}}perfect square, square semi-prime
10{10}{1,2,5,10}{\set{1,2,5,10}}{2,5}{\set{2,5}}
11{11}{1,11}{\set{1,11}}{11}{\set{11}}
12{12}{1,2,3,4,6,12}{\set{1,2,3,4,6,12}}{2,3}{\set{2,3}}
13{13}{1,13}{\set{1,13}}{13}{\set{13}}
14{14}{1,2,7,14}{\set{1,2,7,14}}{2,7}{\set{2,7}}
15{15}{1,3,5,15}{\set{1,3,5,15}}{3,5}{\set{3,5}}
16{16}{1,2,4,8,16}{\set{1,2,4,8,16}}{2}{\set{2}}perfect square
17{17}{1,17}{\set{1,17}}{17}{\set{17}}
18{18}{1,2,3,6,9,18}{\set{1,2,3,6,9,18}}{2,3}{\set{2,3}}
19{19}{1,19}{\set{1,19}}{19}{\set{19}}
20{20}{1,2,4,5,10,20}{\set{1,2,4,5,10,20}}{2,5}{\set{2,5}}
21{21}{1,3,7,21}{\set{1,3,7,21}}{3,7}{\set{3,7}}
22{22}{1,2,11,22}{\set{1,2,11,22}}{11}{\set{11}}
23{23}{1,23}{\set{1,23}}{23}{\set{23}}
24{24}{1,2,3,4,6,8,12,24}{\set{1,2,3,4,6,8,12,24}}{2,3}{\set{2,3}}
25{25}{1,5,25}{\set{1,5,25}}{5}{\set{5}}perfect square, square-semiprime
26{26}{1,2,13,26}{\set{1,2,13,26}}{2,13}{\set{2,13}}
27{27}{1,3,9,27}{\set{1,3,9,27}}{3}{\set{3}}
28{28}{1,2,4,7,14,28}{\set{1,2,4,7,14,28}}{2,7}{\set{2,7}}
29{29}{1,29}{\set{1,29}}{29}{\set{29}}
30{30}{1,2,3,5,6,10,15,30}{\set{1,2,3,5,6,10,15,30}}{2,3,5}{\set{2,3,5}}
31{31}{1,31}{\set{1,31}}{31}{\set{31}}
32{32}{1,2,4,8,16,32}{\set{1,2,4,8,16,32}}{2}{\set{2}}
34{34}{1,2,4,17,34}{\set{1,2,4,17,34}}{17}{\set{17}}
35{35}{1,5,7,35}{\set{1,5,7,35}}{5,7}{\set{5,7}}
36{36}{1,2,3,4,6,9,12,18,36}{\set{1,2,3,4,6,9,12,18,36}}{2,3}{\set{2,3}}perfect square
37{37}{1,37}{\set{1,37}}{37}{\set{37}}
38{38}{1,2,19,38}{\set{1,2,19,38}}{2,19}{\set{2,19}}
39{39}{1,3,13,39}{\set{1,3,13,39}}{2,13}{\set{2,13}}
40{40}{1,2,4,5,8,10,20}{\set{1,2,4,5,8,10,20}}{2,5}{\set{2,5}}
41{41}{1,41}{\set{1,41}}{41}{\set{41}}
42{42}{1,2,3,6,7,14,21,42}{\set{1,2,3,6,7,14,21,42}}{2,3,7}{\set{2,3,7}}
43{43}{1,43}{\set{1,43}}{43}{\set{43}}
44{44}{1,2,4,11,22,44}{\set{1,2,4,11,22,44}}{2,11}{\set{2,11}}
45{45}{1,3,5,9,15,45}{\set{1,3,5,9,15,45}}{3,5}{\set{3,5}}
46{46}{1,2,23,46}{\set{1,2,23,46}}{2,23}{\set{2,23}}
47{47}{1,47}{\set{1,47}}{47}{\set{47}}
48{48}{1,2,3,4,6,8,12,16,24,48}{\set{1,2,3,4,6,8,12,16,24,48}}{2,3}{\set{2,3}}perfect square, square-semiprime
49{49}{1,7,49}{\set{1,7,49}}{7}{\set{7}}
50{50}{1,2,5,10,25,50}{\set{1,2,5,10,25,50}}{2,5}{\set{2,5}}
51{51}{1,3,17,51}{\set{1,3,17,51}}{3,17}{\set{3,17}}
52{52}{1,2,4,13,26,52}{\set{1,2,4,13,26,52}}{2,2,13}{\set{2,2,13}}
53{53}{1,53}{\set{1,53}}{53}{\set{53}}
54{54}{1,2,3,6,9,18,27,54}{\set{1,2,3,6,9,18,27,54}}{2,3}{\set{2,3}}
55{55}{1,5,11,55}{\set{1,5,11,55}}{5,11}{\set{5,11}}