floor
floor
Contents
1. The floor function 2
1.1. Definition and basic properties . . . . . . . . . . . . . . . . . . . . . 2
1.2. Interlude: greatest common divisors . . . . . . . . . . . . . . . . . . 9
1.3. de Polignac’s formula . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2. Arithmetic functions 22
2.1. Arithmetic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.2. Multiplicative functions . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.3. The Dirichlet convolution . . . . . . . . . . . . . . . . . . . . . . . . 33
2.4. Examples of Dirichlet convolutions . . . . . . . . . . . . . . . . . . . 40
2.5. Möbius inversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
2.6. Dirichlet convolution and multiplicativity . . . . . . . . . . . . . . . 49
2.7. Explicit formulas from multiplicativity . . . . . . . . . . . . . . . . 54
2.8. Pointwise products . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.9. Lowest common multiples . . . . . . . . . . . . . . . . . . . . . . . . 59
2.10. Lcm-convolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
***
These are the extended notes for the 18.781 (Introduction to Number Theory)
class on 14 April 2016 (the actual class covered about 1/3 of what is in these
notes). I roughly follow [NiZuMo91, §4.1–§4.3], although not always using the
same notations.
I use the notation N for {0, 1, 2, . . .}, and the notation N+ for {1, 2, 3, . . .}.
1
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proposition 1.0.1. Let a be an integer. Let u and v be two integers that are
both divisible by a. Then, their sum u + v must also be divisible by a.
Proposition 1.0.2. Let u and v be two nonnegative integers such that u | v and
v | u. Then, u = v.
Remark 1.1.2. (a) Why is b x c well-defined? I mean, why does the unique
integer n in Definition 1.1.1 exist, and why is it unique? I will not answer
this question in general (the answer probably depends on how you define real
2
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
numbers anyway). However, in the case when x is rational, the proof is simple
(see Corollary 1.1.4 below).
(b) What we call b x c is typically called [ x ] in older books (such as
[NiZuMo91]). I suggest avoiding the notation [ x ] wherever possible; it has
too many different meanings (whereas b x c almost always means the floor of
x).
(c) The map R → Z, x 7→ b x c is called the floor function or the greatest
integer function. There is also a ceiling function, which sends each x ∈ R to the
unique integer n satisfying n − 1 < x ≤ n; this latter integer is called d x e. The
two functions are connected by the rule d x e = − b− x c (for all x ∈ R).
The floor and the ceiling functions are some of the simplest examples of
discontinuous functions.
(d) Here are some examples of floors:
(e) You might have the impression that b x c is “what remains from x if the
digits behind the comma are removed”. This impression is highly imprecise.
For one, it is completely broken for negative x (for example, b−2.3c is −3, not
−2). But more importantly, the operation of “removing the digits behind the
comma” from a number is not well-defined; the periodic decimal representa-
tions 0.999 . . . and 1.000 . . . belong to the same real number (1), but removing
their digits behind the comma leaves us with different
integers.
1
(f) A related map is the map R → Z, x 7→ x + . It sends each real x to
2
the integer that is closest to x, choosing the larger one in the case of a tie. This
is one of the many things that are commonly known as “rounding” a number.
Proposition 1.1.3. Let a and b be integers such that b > 0. Let q and r be the
quotient and the remainder obtained when dividing a by b. Then, q is the
a
unique integer n satisfying n ≤ < n + 1.
b
Proof of Proposition 1.1.3. We know that q and r are the quotient and the re-
mainder obtained when dividing a by b. In other words, we have q ∈ Z,
r ∈ {0, 1, . . . , b − 1} and a = qb + r.
From r ∈ {0, 1, . . . , b − 1}, we obtain 0 ≤ r < b. Now, from 0 ≤ r, we obtain
a
qb ≤ qb + r = a. Dividing this inequality by b, we obtain q ≤ (since b > 0).
b
Also, a = qb + |{z} r < qb + b = (q + 1) b. Dividing this inequality by b, we obtain
<b
3
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
a a
< q + 1 (since b > 0). Thus, q ≤ < q + 1. Hence, q is an integer n satisfying
b b
a
n ≤ < n + 1. It thus remains to show that q is the unique such integer. In
b
a
other words, it remains to show that if n is an integer satisfying n ≤ < n + 1,
b
then n = q.
a
So let n be an integer satisfying n ≤ < n + 1. We must show that n = q.
b
a
We have n ≤ < q + 1. Since n and q are integers, this yields n ≤ (q + 1) −
b
1 = q.
a
We have q ≤ < n + 1. Since q and n are integers, this yields q ≤ (n + 1) −
b
1 = n. Combining this with n ≤ q, we obtain n = q. As we said, this completes
our proof.
4
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Corollary 1.1.6. Let x be a real number. Then, b x c is the greatest integer that
is smaller or equal to x.
Proof of Corollary 1.1.6. Clearly, b x c is the greatest integer that is smaller or equal
to b x c. In other words, b x c is the greatest integer m satisfying m ≤ b x c. Equiv-
alently, b x c is the greatest integer m satisfying m ≤ x (since Proposition 1.1.5
shows that the condition m ≤ b x c for an integer m is equivalent to the condition
m ≤ x). In other words, b x c is the greatest integer that is smaller or equal to x.
This proves Corollary 1.1.6.
Corollary 1.1.6 is often used as a definition of b x c. It is also the reason why
the map R → Z, x 7→ b x c is called the greatest integer function.
Before we come to anything interesting, we shall prove a few more basic prop-
erties of the floor function.
Proof of Proposition 1.1.7. Clearly, m ≤ m < m + 1. But bmc is the unique integer
n satisfying n ≤ m < n + 1 (because this is how bmc is defined). Hence, if n is
any integer satisfying n ≤ m < n + 1, then n = bmc. Applying this to n = m, we
obtain m = bmc (since m ≤ m < m + 1). This proves Proposition 1.1.7.
The next fact that we shall prove is [NiZuMo91, Theorem 4.1 (5)]:
5
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Hence,
bxc = ∑ 1= ∑ 1
m ∈N+ ; m ∈N+ ;
m≤b x c m≤ x
6
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Proposition 1.1.11. The elements of {1, 2, . . . , n} are precisely the elements
k of N+ satisfying k ≤ n. Hence,
∑ 1= ∑ 1= ∑ 1
k∈{1,2,...,n}; k ∈N+ ; k ∈N+ ;
b|k k≤n; b|k;
b|k k≤n
here, we have substituted bm for k in
the sum (since the k ∈ N+ satisfying
= ∑ 1
b | k are precisely the integers of
m ∈N+ ;
bm≤n the form bm with m ∈ N+ )
n
= ∑ 1 since bm ≤ n is equivalent to m ≤
b
m ∈N+ ;
n
m≤
j n kb
=
b
n jnk
(because Proposition 1.1.9 (applied to x = ) yields = ∑ 1). Thus,
b b m ∈N+ ;
n
m≤
b
Proposition 1.1.11 is proven.
The floor function is weakly increasing:
7
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Proposition 1.1.13. All of buc, bvc and bu + vc are integers (by their defi-
nition).
Recall that buc is the unique integer n satisfying n ≤ u < n + 1. Thus, buc is
an integer satisfying buc ≤ u < buc + 1.
Recall that bvc is the unique integer n satisfying n ≤ v < n + 1. Thus, bvc is
an integer satisfying bvc ≤ v < bvc + 1.
Recall that bu + vc is the unique integer n satisfying n ≤ u + v < n + 1. Thus,
bu + vc is an integer satisfying bu + vc ≤ u + v < bu + vc + 1.
Proposition 1.1.5 (applied to m = buc + bvc and x = u + v) shows that buc +
bvc ≤ u + v holds if and only if buc + bvc ≤ bu + vc holds. Thus, buc + bvc ≤
bu + vc holds (since buc + bvc ≤ u + v holds).
|{z} |{z}
≤u ≤v
We know that bvc + 1 is an integer (since bvc is an integer). Hence, Proposition
1.1.10 (applied to x = u and k = bvc + 1) yields bu + bvc + 1c = buc + bvc + 1.
But u + |{z}v < u + bvc + 1. Hence, Proposition 1.1.12 (applied to x = u + v
<bvc+1
and y = u + bvc + 1) shows that bu + vc ≤ bu + bvc + 1c = buc + bvc + 1.
Combining this with buc + bvc ≤ bu + vc, we obtain buc + bvc ≤ bu + vc ≤
buc + bvc + 1.
This proves Proposition 1.1.13.
Finally, let us prove [NiZuMo91, Theorem 4.1 (6)]:
j k
bxc x
Proposition 1.1.14. Let x ∈ R and m ∈ N+ . Then, = .
m m
8
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
jxk jxk
But Proposition 1.1.5 (applied to m instead of m) shows that m ≤x
jxk m jxk m
holds if and only if m ≤ b x c holds (since m is an integer). Thus,
jxk m j k m
x
m ≤ b x c holds (since m ≤ x holds). Dividing this inequality by m, we
m j k m
x bxc
obtain ≤ .
m m
We can divide the inequality b x c ≤ x by m (since m > 0). We thus obtain
bxc x bxc x jxk
≤ . Hence, ≤ < + 1.
m m j x km b xmc jmx k jxk
So we have ≤ < + 1. In other words, is an integer n
m m m m
bxc
satisfying n ≤ < n + 1.
m
bxc bxc
But is the unique integer n satisfying n ≤ < n + 1 (because this is
m m
bxc bxc
how is defined). Hence, if n is any integer satisfying n ≤ < n + 1,
m m
bxc jxk jxk
then n = . We can apply this to n = (since is an integer n
m m m
bxc jxk bxc
satisfying n ≤ < n + 1), and thus obtain = . Proposition 1.1.14
m m m
is proven.
I refer to [NiZuMo91, §4.1] for further properties of the floor function.
Definition 1.2.1. Let b and c be two integers. If (b, c) 6= (0, 0), then gcd (b, c)
means the greatest of all common divisors of b and c. We also set gcd (0, 0) =
0. Thus, gcd (b, c) is defined for any two integers b and c.
If b and c are two integers, then gcd (b, c) is called the greatest common divisor
of b and c (even if gcd (0, 0) is not literally the greatest of all common divi-
sors of 0 and 0) or, briefly, the gcd of b and c. Clearly, gcd (b, c) = gcd (c, b)
and gcd (b, c) | b and gcd (b, c) | c for any two integers b and c. Notice
that gcd (b, c) is a nonnegative integer (and actually a positive integer unless
(b, c) = (0, 0)).
Older books such as [NiZuMo91] tend to denote the gcd of two integers b
and c by (b, c) (rather than by gcd (b, c) as we do); this is a convention that I
shall decidedly not follow (since it risks confusion with the notation (b, c) for
the ordered pair of b and c).
9
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Theorem 1.2.2. Let b and c be two integers. Then, there exist integers x and y
such that gcd (b, c) = bx + cy.
See [NiZuMo91, Theorem 1.3] for the proof of Theorem 1.2.2 in the case when
(b, c) 6= (0, 0). In the case when (b, c) = (0, 0), Theorem 1.2.2 obviously holds
(since we can take x = 0 and y = 0).
For another proof of Theorem 1.2.2, see the Appendix (Chapter 3) below.
A basic property of gcds that follows directly from Theorem 1.2.2 is the fol-
lowing:
In words, Proposition 1.2.3 says that any common divisor of two integers must
divide the gcd of these two integers.
Proof of Proposition 1.2.3. Theorem 1.2.2 shows that there exist integers x and y
such that gcd (b, c) = bx + cy. Consider these x and y. Now, a | b | bx and
a | c | cy. Hence, both integers bx and cy are divisible by a. Thus, their sum
bx + cy must also be divisible by a (by Proposition 1.0.1, applied to u = bx
and v = cy). In other words, a | bx + cy. In other words, a | gcd (b, c) (since
gcd (b, c) = bx + cy). This proves Proposition 1.2.3.
10
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
On the other hand, h = gcd ( ab, m) | ab | abx and h = gcd ( ab, m) | m | mby.
Thus, both integers abx and mby are divisible by h. Therefore, the sum of these
two integers must also be divisible by h (by Proposition 1.0.1, applied to abx,
mby and h instead of u, v and a). In other words, h | abx + mby. Since
11
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
c1 c2 · · · c0 = 1). In other words, (1) holds for g = 0. This completes the induction
base.
Induction step: Let G ∈ {0, 1, . . . , n} be positive. Assume that (1) holds for
g = G − 1. We must prove that (1) holds for g = G.
We have G ∈ {0, 1, . . . , n}, and thus G ∈ {1, 2, . . . , n} (since G is positive).
We know that c1 c2 · · · cG−1 is coprime to m (since we assumed that (1) holds for
g = G − 1). Also, we assumed that cu is coprime to m for every u ∈ {1, 2, . . . , n}.
Applying this to u = G, we see that cG is coprime to m. Now, Corollary 1.2.6 (ap-
plied to c1 c2 · · · cG−1 and cG instead of a and b) shows that (c1 c2 · · · cG−1 ) cG is co-
prime to m. In other words, c1 c2 · · · cG is coprime to m (since (c1 c2 · · · cG−1 ) cG =
c1 c2 · · · cG ). In other words, (1) holds for g = G. This completes the induction
step, and thus (1) is proven.
Now, applying (1) to g = n, we conclude that c1 c2 · · · cn is coprime to m. This
proves Corollary 1.2.7.
A further consequence of Proposition 1.2.5 is the following fact ([NiZuMo91,
Theorem 1.10]):
Proof of Proposition 1.2.9. Both gcd ( a, b) and g are nonnegative integers; hence,
g gcd ( a, b) is a nonnegative integer.
We have g gcd ( a, b) | ga and g gcd ( a, b) | gb. Thus, Proposition 1.2.3 (ap-
| {z } | {z }
|a |b
plied to g gcd ( a, b), ga and gb instead of a, b and c) shows that g gcd ( a, b) |
gcd ( ga, gb).
On the other hand, Theorem 1.2.2 (applied to a and b instead of b and c) shows
that there exist integers x and y such that gcd ( a, b) = ax + by. Consider these
x and y. We have gcd ( ga, gb) | ga | gax and gcd ( ga, gb) | gb | gby. Thus, both
integers gax and gby are divisible by gcd ( ga, gb). Therefore, their sum gax + gby
is also divisible by gcd ( ga, gb) (by Proposition 1.0.1, applied to gcd ( ga, gb), gax
and gby instead of a, u and v). In other words, we have gcd ( ga, gb) | gax +
12
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
gby. Since gax + gby = g ( ax + by) = g gcd ( a, b), this rewrites as gcd ( ga, gb) |
| {z }
=gcd( a,b)
g gcd ( a, b).
But we can apply Proposition 1.0.2 to u = g gcd ( a, b) and v = gcd ( ga, gb)
(since g gcd ( a, b) and gcd ( ga, gb) are nonnegative integers satisfying g gcd ( a, b) |
gcd ( ga, gb) and gcd ( ga, gb) | g gcd ( a, b)), and thus we obtain g gcd ( a, b) =
gcd ( ga, gb). This proves Proposition 1.2.9.
Here is another property of gcds, which we will use later:
Proof of Proposition 1.2.10. Set h = gcd (u, mn), v = gcd (u, m) and w = gcd (u, n).
We shall prove that vw = h.
We have v = gcd (u, m) ∈ N+ (since m is positive) and w = gcd (u, n) ∈ N+
(since n is positive). Thus, both v and w are positive integers; hence, vw is a
positive integer. Also, mn is positive (since m and n are positive). Now, h =
gcd (u, mn) ∈ N+ (since mn is positive).
We have v = gcd (u, m) | m and w = gcd (u, n) | n. Hence, Corollary 1.2.4
(applied to v, w, m and n instead of a, b, c and d) yields gcd (v, w) | gcd (m, n) = 1
(since m and n are coprime). Hence, gcd (v, w) = 1.
u u
We have w = gcd (u, n) | u and thus ∈ Z. Now, v = gcd (u, m) | u = w · .
w w
u
Thus, Proposition 1.2.8 (applied to v, w and instead of x, y and z) shows that
w
u u u u
v| (since gcd (v, w) = 1). In other words, /v ∈ Z. Now, = /v ∈ Z,
w w vw w
so that vw | u.
m
But v = gcd (u, m) | m and thus ∈ Z. Also, w = gcd (u, n) | n and thus
v
n mn m n m n
∈ Z. Now, = · is the product of two integers (since and are
w vw v w v w
integers), and thus itself an integer. In other words, vw | mn.
So we have vw | u and vw | mn. Proposition 1.2.3 (applied to vw, u and mn
instead of a, b and c) thus yields vw | gcd (u, mn) = h.
Proposition 1.2.9 (applied to n, u and m instead of g, a and b) shows that
n gcd (u, m) = gcd (nu, nm). Thus, gcd (nu, nm) = n gcd (u, m) = nv = vn.
| {z }
=v
Now, h = gcd (u, mn) | mn = nm and h = gcd (u, mn) | u | nu. Hence,
Proposition 1.2.3 (applied to h, nu and nm instead of a, b and c) shows that
h | gcd (nu, nm). In other words, h | vn (since gcd (nu, nm) = vn).
Proposition 1.2.9 (applied to v, u and n instead of g, a and b) shows that
v gcd (u, n) = gcd (vu, vn). Thus, gcd (vu, vn) = v gcd (u, n) = vw.
| {z }
=w
Now, h | u | vu and h | vn. Thus, Proposition 1.2.3 (applied to h, vu and
vn instead of a, b and c) shows that h | gcd (vu, vn). In other words, h | vw
13
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
(since gcd (vu, vn) = vw). Combining this with vw | h, we obtain h = vw (by
Proposition 1.0.2 (applied to h and vw instead of u and v), since h and vw are
positive integers). Now,
Proof of Corollary 1.2.11. (a) For each i ∈ {1, 2, . . . , n}, the integer a is coprime to
b. Thus, Corollary 1.2.7 (applied to ci = a and m = b) shows that |aa {z · · · }a is
n times
coprime to b. In other words, an is coprime to b (since an = |aa {z
· · · }a). This proves
n times
Corollary 1.2.11 (a).
(b) Corollary 1.2.11 (a) shows that the integer an is coprime to b. In other
words, b and an are two coprime integers. Hence, Corollary 1.2.11 (a) (applied
to b, an and m instead of a, b and n) shows that the integer bm is coprime to
an . In other words, the integer an is coprime to bm . This proves Corollary 1.2.11
(b).
Let us next use the above theory of greatest common divisors to prove some
properties of primes. We begin with the probably most basic one:
14
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Corollary 1.2.13. (a) Assume the contrary. Thus, the integers s and t are
not coprime. In other words, s is not coprime to t.
If we had s - t, then s would be coprime to t (by Proposition 1.2.12, applied
to p = s and a = t), which would contradict the fact that s is not coprime to t.
Thus, we cannot have s - t. Hence, we have s | t. The same argument (with the
roles of s and t switched) yields t | s. Thus, Proposition 1.0.2 (applied to u = s
and v = t) yields s = t. But this contradicts the fact that s and t are distinct. This
contradiction shows that our assumption was wrong. Hence, Corollary 1.2.13
(a) is proven.
(b) Corollary 1.2.13 (a) shows that the integers s and t are coprime. Hence,
Corollary 1.2.11 (b) (applied to a = s and b = t) shows that the integer sn is
coprime to tm . In other words, the integers sn and tm are coprime. This proves
Corollary 1.2.13 (b).2
Proof of Proposition 1.2.14. Assume the contrary. Thus, there exists no i ∈ {1, 2, . . . , n}
such that p | ai . In other words, for each u ∈ {1, 2, . . . , n}, we have p - au . Hence,
for each u ∈ {1, 2, . . . , n}, the number au is coprime to p (by Proposition 1.2.12,
applied to a = au ). In other words, au is coprime to p for each u ∈ {1, 2, . . . , n}.
Hence, Corollary 1.2.7 (applied to m = p and ci = ai ) shows that a1 a2 · · · an is
coprime to p. In other words, gcd ( p, a1 a2 · · · an ) = 1.
But p | p and p | a1 a2 · · · an . Hence, Proposition 1.2.3 (applied to a = p, b = p
and c = a1 a2 · · · an ) yields p | gcd ( p, a1 a2 · · · an ) = 1. Combined with 1 | p, this
yields p = 1 (by Proposition 1.0.2, applied to u = p and v = 1). This is absurd,
since p is a prime. This contradiction shows that our assumption was wrong;
hence, Proposition 1.2.14 is proven.
2 Here is a different way to prove Corollary 1.2.13 (b) using the uniqueness of prime factoriza-
tion:
Assume the contrary. Thus, the integers sn and tm are not coprime. In other words,
gcd (sn , tm ) > 1. Hence, the integer gcd (sn , tm ) has a prime divisor q. Consider this q.
But s is a prime. Thus, the prime factorization of sn is sn = |s · s ·{z · · · · }s. Hence, the only
n times
prime divisor of sn is s.
But q | gcd (sn , tm ) | sn . Thus, q is a prime divisor of sn (since q is a prime and divides sn ).
Since the only prime divisor of sn is s, this shows that q = s. The same argument (applied to
t instead of s) shows that q = t. Hence, s = q = t. This contradicts the fact that s and t are
distinct. This contradiction proves that our assumption was wrong, qed.
15
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Remark 1.3.2. Some authors use the notation e p (n) instead of v p (n).
Another way to characterize v p (n) in Definition 1.3.1 is by the following
n
statement: The number v (n) is an integer not divisible by p.
p p
Yet another (probably simpler) way to define v p (n) is the following: v p (n)
is the exponent with which p occurs in the prime factorization of n. 3 (This
is clearly equivalent to the definition of v p (n) above.) While I will try to avoid
using prime factorizations wherever I can, there should be nothing stopping
you from using them; in general, the prime factorization of n is probably the
quickest way to get an intuition for v p (n) (although not the quickest way to
compute it!).
Often, the definition of v p (n) is extended to all rational numbers n. Then,
one defines v p (n) to be the unique integer k (not necessarily nonnegative)
n
such that the rational number k can be written as a fraction whose numerator
p
and denominator are both integers coprime to p. This works when n 6= 0. In
the case of n = 0, one commonly defines v p (0) to be −∞; here, −∞ is a
symbol which (when it comes to comparing it with integers) is smaller than
every integer.
(The sum on the right hand side is infinite, but only finitely many of its terms
are nonzero, and thus it is a well-defined integer.)
Before we prove this theorem, here are two simple lemmas:
Lemma 1.3.4. Let p be a prime. Let n be a nonzero integer. Then,
v p (n) = ∑ 1.
i ∈N+ ;
pi | n
3 This exponent should be understood as 0 if p does not occur in the prime factorization of n at
all.
16
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Lemma 1.3.4. Recall that v p (n) is defined as the highest nonnegative in-
teger k such that pk | n. Thus, v p (n) is a nonnegative integer satisfying pv p (n) | n.
Every i ∈ N+ that satisfies i ≤ v p (n) must satisfy pi | n (since i ≤ v p (n)
leads to pi | pv p (n) | n). Conversely, every i ∈ N+ satisfying pi | n must satisfy
i ≤ v p (n) (since v p (n) is the highest nonnegative integer k such that pk | n).
Thus, the i ∈ N+ that satisfy i ≤ v p (n) are exactly the i ∈ N+ that satisfy pi | n.
Consequently,
∑ 1 = ∑ 1.
i ∈N+ ; i ∈N+ ;
i ≤v p (n) pi | n
v p (n)
Hence, ∑ 1= ∑ 1 = ∑ 1 = v p (n). This proves Lemma 1.3.4.
i ∈N+ ; i ∈N+ ; i =1
pi | n i ≤v p (n)
v p ( a1 a2 · · · a n ) = v p ( a1 ) + v p ( a2 ) + · · · + v p ( a n ) .
This lemma is fairly obvious if you follow the “exponent in prime factoriza-
tion” interpretation of v p (n). The proof below avoids this interpretation (for the
sake of greater generalizability).
Proof of Lemma 1.3.5. Lemma 1.3.5 can be proven straightforwardly by induction
over n, provided that the following two claims are shown:
(In fact, Claim 1 settles the induction base, while Claim 2 is used in the induc-
tion step.)
Claim 1 is obvious. It thus remains to prove Claim 2.
Proof of Claim 2: Let a and b be two nonzero integers. Recall that v p ( a) is
defined as the highest nonnegative integer k such that pk | a. Thus, v p ( a) is a
nonnegative integer satisfying pv p (a) | a, but pv p (a)+1 - a. We have pv p (a) | a; thus,
we can write a in the form a = pv p (a) g for some g ∈ Z. Consider this g. If we
had p | g, then we would have pv p (a)+1 = pv p (a) p | pv p (a) g = a; this would
|{z}
|g
v p ( a)+1
contradict p - a. Hence, we cannot have p | g. We thus must have p - g.
Hence, Proposition 1.2.12 (applied to g instead of a) shows that g is coprime to
p (since p is a prime).
17
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
18
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Of course, Corollary 1.3.6 can be proven in various simple ways – for example,
by induction using the recurrence
relation of the binomial coefficients, or com-
n
binatorially by interpreting as the number of m-element subsets of a given
m
n-element set. But let us prove it using Theorem 1.3.3, just to show how to use
the latter:
Lemma 1.3.7. Let a and b be two nonzero integers. Assume that v p ( a) ≥ v p (b)
for every prime p. Then, b | a.
19
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
First proof of Lemma 1.3.7. Let P be the set of all primes. Every nonzero integer n
satisfies n = ± ∏ pv p (n) 4 . Thus,
p ∈P
v p ( g) + v p ( a0 ). Thus, v p |{z}
a = v p ( ga0 ) = v p ( g) + v p ( a0 ). The same ar-
= ga0
gument (used for b and b0
instead of a and a0 ) yields v p (b) = v p ( g) + v p (b0 ).
But by assumption, we have v p ( a) ≥ v p (b). Thus, v p ( g) + v p ( a0 ) = v p ( a) ≥
4 Indeed,for any prime p, we know that v p (n) is the exponent with which the prime p appears
in the prime factorization of n. Hence, the prime factorization of n is ± ∏ pv p (n) . (The ±
p ∈P
sign is due to the fact that n can be negative.)
20
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
v p (m! (n − m)!)
= v p (m!) + v p ((n − m)!)
| {z } | $ {z }
∞ m ∞ n−m
$ % %
=∑ =∑
i =1 p i i =1 pi
(by Theorem 1.3.3) (by Theorem 1.3.3)
∞ ∞ ∞
n−m n−m
m m
= ∑ p i
+∑
pi
= ∑ pi
+
pi
i =1 i =1 i =1 | {z }
m n−m
$ %
≤ +
pi pi
(by the formula buc+bvc≤bu+vc
from Proposition 1.1.13)
∞ ∞
m n − m = ∑ n = v p (n!)
≤ ∑
i + (by Theorem 1.3.3) .
i =1 |p pi pi
{z i =1
}
n
=
p i
21
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
(2m)! (2n)!
Proposition 1.3.9. Let m ∈ N and n ∈ N. Then, ∈ Z.
m!n! (m + n)!
2. Arithmetic functions
2.1. Arithmetic functions
Next, I will discuss the notion of arithmetic functions, and some examples
thereof; here I will not really follow [NiZuMo91, §4.2] but rather build up the
same theory from my perspective.
22
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
6 Recall that a positive integer n is said to be squarefree if no perfect square other than 1 divides
n. Equivalently, a positive integer n is squarefree if and only if n is a product of distinct
primes. Equivalently, a positive integer n is squarefree if and only if every prime p satisfies
v p (n) ≤ 1.
23
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Of course, you can come up with more examples easily. Most arithmetic func-
tions that anyone cares about tend to have their images belong to Z, but the
added generality of allowing any complex numbers as images does not hurt, so
I see no point in restricting it.
We introduce one more standard notation:
Remark 2.1.4. Some of the functions defined in Definition 2.1.2 can easily
be reexpressed using the notation from Definition 2.1.3: Namely, for every
n ∈ N+ , we have
d (n) = ∑ 1; σ (n) = ∑ d;
d|n d|n
σk (n) = ∑d k
(for every k ∈ Z) .
d|n
Definition 2.1.5. If n is an integer, then PF n will denote the set of all prime
factors of n. Note that this set PF n is finite whenever n is nonzero.
∏
d (n) = v p (n) + 1 .
p∈PF n
24
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
pk(v p (n)+1) − 1
σk (n) = ∏ pk − 1
.
p∈PF n
It turns out that totally multiplicative functions are somewhat rare, but multi-
plicative functions abound in number theory. Here are some examples:
25
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Proposition 2.2.2 (sketched). (i) This is obvious (since the requirements for
a totally multiplicative function clearly encompass the requirements for a multi-
plicative function).
(a) We know that φ (1) = 1. We thus only need to show that φ (mn) =
φ (m) φ (n) for any two coprime m ∈ N+ and n ∈ N+ . But this is precisely
the statement of [NiZuMo91, first sentence of Theorem 2.19]. (Here is a brief
reminder of the proof: For every N ∈ N+ , let R ( N ) denote the set of all
k ∈ {1, 2, . . . , N } coprime to N. Now, let m ∈ N+ and n ∈ N+ be coprime. Then,
there is a bijection R (mn) → R (m) × R (n) which sends every k ∈ R (mn) to
(k0 , k00 ) ∈ R (m) × R (n), where k0 is the unique element of R (m) congruent
to k modulo m, and where k00 is the unique element of R (n) congruent to k
modulo n. The fact that this map is well-defined and a bijection can be proven
using the Chinese Remainder Theorem. Having this bijection in place, we im-
mediately conclude that |R (mn)| = |R (m) × R (n)| = |R (m)| · |R (n)|. Since
|R ( N )| = φ ( N ) for every N ∈ N+ , this rewrites as φ (mn) = φ (m) φ (n), qed.)
Proposition 2.2.2 (a) is thus proven.
Proposition 2.2.2 (j) is essentially [NiZuMo91, second sentence of Theorem
2.20], and is proven in a similar way as Proposition 2.2.2 (a).
Parts (c), (d) and (h) of Proposition 2.2.2 are completely straightforward.
(g) We claim that the following two assertions hold:
26
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Now, the definition of λ yields λ (m) = (−1)Ω(m) and λ (n) = (−1)Ω(n) and
λ (mn) = (−1)Ω(mn) . Hence,
Hence, we only need to show that µ (mn) = µ (m) µ (n) for any two coprime
m ∈ N+ and n ∈ N+ . So let us show this.
Let m ∈ N+ and n ∈ N+ be coprime. We must prove the equality µ (mn) =
µ (m) µ (n). If mn is not squarefree, then this equality holds7 . Hence, we WLOG
7 Proof.Assume that mn is not squarefree. Thus, there is some integer g > 1 such that g2 | mn.
Consider this g.
There exists a prime p such that p | g (since g > 1). Consider such a p. The prime p
cannot divide both m and n (since m and n are coprime). Hence, either p - m or p - n (or
both). We WLOG assume that p - m (since otherwise, we can simply switch m with n). Thus,
m is coprime to p (since p is prime). In other words, p is coprime to m. In other words,
gcd ( p, m) = 1.
We have p | g, so that p2 | g2 | mn. Hence, p | p2 | mn. Hence, Proposition 1.2.8 (applied to
27
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
p, m and n instead of x, y and z) shows that p | n. In other words, n = pn0 for some integer
n0 . Consider this n0 .
n = mpn0 = pmn0 . We can cancel p from this divisibility (since p 6= 0)
Now, pp = p2 | m |{z}
= pn0
and thus conclude p | mn0 . Hence, Proposition 1.2.8 (applied to p, m and n0 instead of x, y
and z) shows that p | n0 . Hence, pp | pn0 = n. In other words, p2 | n (since pp = p2 ). Hence,
n is not squarefree (since p2 is a perfect square other than 1). Therefore, µ (n) = 0 (by the
definition of µ). The definition of µ also shows that µ (mn) = 0 (since mn is not squarefree).
Now, comparing µ (mn) = 0 with µ (m) µ (n) = 0, we obtain µ (mn) = µ (m) µ (n), qed.
| {z }
=0
28
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
This completes the proof of µ (mn) = µ (m) µ (n). Thus, Proposition 2.2.2 (f)
holds.
Note that the function 0 : N+ → C is not multiplicative; in fact, it fails to
satisfy 0 (1) = 1.
The pointwise product of multiplicative functions is multiplicative, and the
same holds for totally multiplicative functions:
(a) If the functions g and h are multiplicative, then the function f is multi-
plicative.
(b) If the functions g and h are totally multiplicative, then the function f is
totally multiplicative.
Proof of Proposition 2.2.3. (a) Assume that the functions g and h are multiplica-
tive. We have to prove that the function f is multiplicative.
The function g is multiplicative. In other words, it satisfies g (1) = 1, and
g (mn) = g (m) g (n) for any two coprime m ∈ N+ and n ∈ N+ . (7)
The function h is multiplicative. In other words, it satisfies h (1) = 1, and
h (mn) = h (m) h (n) for any two coprime m ∈ N+ and n ∈ N+ . (8)
Now, we want to prove that f is multiplicative. In order to do so, we shall
prove the following two assertions:
Assertion 1: We have f (1) = 1.
Assertion 2: We have f (mn) = f (m) f (n) for any two coprime m ∈
N+ and n ∈ N+ .
Proof of Assertion 1: Applying (6) to n = 1, we obtain f (1) = g (1) h (1) = 1.
| {z } | {z }
=1 =1
This proves Assertion 1.
Proof of Assertion 2: Let m ∈ N+ and n ∈ N+ be coprime. Then, (6) (applied
to m instead of n) yields f (m) = g (m) h (m). Also, (6) shows that f (n) =
g (n) h (n). But (6) (applied to mn instead of n) yields
f (mn) = g (mn) h (mn) = ( g (m) g (n)) (h (m) h (n))
| {z } | {z }
= g(m) g(n) =h(m)h(n)
(by (7)) (by (8))
29
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Proposition 2.2.4. Write n as a product of primes; i.e., write n in the form
n = p1 p2 · · · pk for some primes p1 , p2 , . . . , pk (which may and may not be dis-
tinct). Then, the primes dividing n are precisely p1 , p2 , . . . , pk 8 . In other
30
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
31
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
we obtain µ (n) = 0Ω(n)−ω (n) · λ (n). Thus, µ (n) = 0Ω(n)−ω (n) · λ (n) is proven in
Case 1.
Let us next consider Case 2. In this case, the positive integer n is not square-
free.
If we had Ω (n) = ω (n), then n would be squarefree (by Proposition 2.2.4
(b)), which would contradict the fact that n is not squarefree. Hence, we cannot
have Ω (n) = ω (n). Thus, we have Ω (n) 6= ω (n).
But Proposition 2.2.4 (a) yields Ω (n) ≥ ω (n). Combining this with Ω (n) 6=
ω (n), we find Ω (n) > ω (n). Hence, Ω (n) − ω (n) > 0, so that 0Ω(n)−ω (n) = 0.
Now, the definition of µ yields
(
(−1)ω (n) , if n is squarefree;
µ (n) = =0 (since n is not squarefree) .
0, otherwise
pi p j | p1 p2 · · · pk = n.
We have pi > 1 (since pi is a prime). Thus, p2i is a perfect square other than 1. Moreover,
p2i = pi pi = pi p j | n.
|{z}
= pj
Thus, a perfect square other than 1 (namely, p2i ) divides n. In other words, n is not squarefree
(by the definition of “squarefree”). This contradicts our assumption that n is squarefree. This
contradiction shows that our assumption was false. Qed.
32
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
we obtain µ (n) = 0Ω(n)−ω (n) · λ (n). Thus, µ (n) = 0Ω(n)−ω (n) · λ (n) is proven in
Case 2.
We have now proven µ (n) = 0Ω(n)−ω (n) · λ (n) in both Cases 1 and 2. Hence,
µ (n) = 0Ω(n)−ω (n) · λ (n) always holds. This completes the proof of Proposition
2.2.4 (c).
∑ g (e) = 0.
e ∈N+ ;
de=n
33
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
n
[Proof of Claim 1: Let d ∈ N+ be such that d | n. Then, ∈ Z (since d | n).
d
n
Thus, ∈ N+ (since n ∈ N+ and d ∈ N+ ). Thus, there is exactly one e ∈ N+
d
n
satisfying de = n, namely e = . Hence, the sum ∑ g (e) contains exactly one
d e ∈N+ ;
de=n
n n
addend, namely the addend for e = . Thus, ∑ g (e) = g . Claim 1 is
d e ∈N+ ; d
de=n
proven.]
[Proof of Claim 2: Let d ∈ N+ be such that d - n. Then, there exists no e ∈ N+
satisfying de = n (since d - n). Therefore, the sum ∑ g (e) is empty and thus
e ∈N+ ;
de=n
equals 0. This proves Claim 2.]
Now,
∑ f (d) g (e)
d ∈N+ ; e ∈N+ ;
de=n
| {z }
= ∑ ∑
d ∈N+ e ∈N+ ;
de=n
= ∑ ∑ f (d) g (e) = ∑ f (d) ∑ g (e)
d ∈N+ e ∈N+ ; d ∈N+ e ∈N+ ;
de=n de=n
= ∑ f (d) ∑ g (e) + ∑ f (d) ∑ g (e)
d ∈N+ ; e ∈N+ ; d ∈N+ ; e ∈N+ ;
d|n
|de=n{z } d-n
|de=n
{z }
n
=0
=g (by Claim 2)
d
(by Claim 1)
since each d ∈ N+ satisfies either d | n or d - n
Remark 2.3.3. Here is a little digression which might make the Dirichlet con-
volution f ? g appear less mysterious (but might also confuse you). I claim that
Dirichlet convolution of arithmetic functions is “like multiplication of power
series, but with (some) additions replaced by multiplications”. Here is what I
mean by this:
34
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
where
dn = ∑ ad bn/d = ∑ a d be . (11)
d|n d ∈N+ ; e ∈N+ ;
de=n
The similarities between the equations (10) and (11) should be palpable.
Roughly speaking, (11) is a “multiplicative” variant of (10): Whereas the sum
∑ ad be in (10) runs over all decompositions of n into a sum of two non-
d∈N; e∈N;
d+e=n
negative integers d and e, the analogous sum ∑ ad be in (11) runs over
d ∈N+ ; e ∈N+ ;
de=n
all decompositions of n into a product of two positive integers d and e. (Yes,
the multiplicative analogue of nonnegative integers in this context are positive
integers.) So, roughly speaking, Dirichlet convolution is like multiplication of
power series, except that two monomials X m and X n are taken to X mn and not
to X m+n .
This analogy has a consequence: It suggests that Dirichlet convolution
should be associative and commutative, and that this should be provable in
35
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
the same way as one proves the associativity and the commutativity of the
multiplication of power series. And, indeed, this is the case: see Theorem
2.3.4 below.
See also [NiZuMo91, §8.2] for the notion of Dirichlet series, which are “for-
a
mal expressions” of the form ∑ si for an “indeterminate” exponent s. If
i ∈N+ i
ai
we replace the term s by ai X i , then these Dirichlet series turn into standard
i
formal power series with constant term 0, but their product turns into the
Dirichlet convolution of power series.
Remark 2.3.5. If you know the notion of a monoid, then you will be able
to restate Theorem 2.3.4 as follows: The set of all arithmetic functions is a
commutative monoid under the operation ? with neutral element ε.
Actually, we can also define an addition operation on arithmetic functions
(namely, pointwise addition: ( f + g) (n) = f (n) + g (n)). The addition oper-
ation + and the Dirichlet convolution ? turn the set of arithmetic functions
into a commutative ring.
Proof of Theorem 2.3.4. (c) Let f and g be two arithmetic functions. Let n ∈ N+ .
Remark 2.3.2 (applied to g and f instead of f and g) yields
36
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Now, forget that we fixed n. We thus have shown that ( f ? g) (n) = ( g ? f ) (n)
for each n ∈ N+ . In other words, f ? g = g ? f . This proves Theorem 2.3.4 (c).
(a) Let f be an arithmetic function. Every n ∈ N+ satisfies
n
(ε ? f ) (n) = ∑ ε (d) f (by the definition of ε ? f )
d|n
|{z} d
1, if d = 1;
=
0, if d 6 = 1
(by the definition of ε)
(
1, if d = 1; n
=∑ f
d|n 0, if d 6= 1 d
( (
1, if 1 = 1; n 1, if d = 1; n
= f +∑ f
0, if 1 6= 1 | {z1 } d|n; 0, if d 6= 1 d
| {z } = f (n) d 6 =1 | {z }
=1 =0
(since d6=1)
here, we have split off the addend for d = 1 from the sum
(since 1 is a positive divisor of n)
n
= f (n) + ∑ 0 f = f (n) .
d|n;
d
d 6 =1
| {z }
=0
( F ? G) ( N ) = ∑ F ( D ) G ( E) . (13)
D ∈N+ ; E ∈N+ ;
DE= N
37
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
(( f ? g) ? h) (n)
= ∑ ( f ? g) ( D ) h ( E)
D ∈N+ ; E ∈N+ ;
DE=n
(by (13), applied to F = f ? g, G = h and N = n)
= ∑ ( f ? g) (d) h (e)
d ∈N+ ; e ∈N+ ;
| {z }
de=n = ∑ f ( D ) g( E)
D ∈N+ ; E ∈N+ ;
DE=d
(by (13), applied to F = f , G = g and N =d)
= ∑ ∑ f ( D ) g ( E) h (e)
d ∈N+ ; e ∈N+ ; D ∈N+ ; E ∈N+ ;
de=n DE=d
= ∑ ∑ f ( D ) g ( E) h (e)
d ∈N+ ; e ∈N+ ; D ∈N+ ; E ∈N+ ;
de=n DE=d
| {z }
= ∑ ∑ ∑
d ∈N+ D ∈N+ ; E ∈N+ ; e ∈N+ ;
DE=d de=n
(here, we are interchanging the order of summation)
= ∑ ∑ ∑ f ( D ) g ( E) h (e)
d ∈N+ D ∈N+ ; E ∈N+ ; e ∈N+ ;
DE=d de=n
| {z }
= ∑
e ∈N+ ;
DEe=n
(since d= DE)
= ∑ ∑ ∑ f ( D ) g ( E) h (e) = ∑ ∑ f ( D ) g ( E) h (e)
d ∈N+ D ∈N+ ; E ∈N+ ; e ∈N+ ; D ∈N+ ; E ∈N+ e ∈N+ ;
DE=d DEe=n DEe=n
| {z } | {z }
= ∑ = ∑
D ∈N+ ; E ∈N+ D ∈N+ ; E ∈N+ ; e ∈N+ ;
DEe=n
= ∑ f ( D ) g ( E) h (e)
D ∈N+ ; E ∈N+ ; e ∈N+ ;
DEe=n
= ∑ f (c) g (d) h (e) (14)
c ∈N+ ; d ∈N+ ; e ∈N+ ;
cde=n
(here, we have renamed the summation indices D and E as c and d) .
38
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
( f ? ( g ? h)) (n)
= ∑ f ( D ) ( g ? h) ( E)
D ∈N+ ; E ∈N+ ;
DE=n
(by (13), applied to F = f , G = g ? h and N = n)
= ∑ f (c) ( g ? h) (d)
c ∈N+ ; d ∈N+ ;
| {z }
cd=n = ∑ g( D )h( E)
D ∈N+ ; E ∈N+ ;
DE=d
(by (13), applied to F = g, G =h and N =d)
= ∑ f (c) ∑ g ( D ) h ( E)
c ∈N+ ; d ∈N+ ; D ∈N+ ; E ∈N+ ;
cd=n DE=d
= ∑ ∑ f (c) g ( D ) h ( E)
c ∈N+ ; d ∈N+ ; D ∈N+ ; E ∈N+ ;
cd=n DE=d
| {z }
= ∑ ∑ ∑
d ∈N+ D ∈N+ ; E ∈N+ ; c ∈N+ ;
DE=d cd=n
(here, we are interchanging the order of summation)
= ∑ ∑ ∑ f (c) g ( D ) h ( E)
d ∈N+ D ∈N+ ; E ∈N+ ; c ∈N+ ;
DE=d cd=n
| {z }
= ∑
c ∈N+ ;
cDE=n
(since d= DE)
= ∑ ∑ ∑ f (c) g ( D ) h ( E) = ∑ ∑ f (c) g ( D ) h ( E)
d ∈N+ D ∈N+ ; E ∈N+ ; c ∈N+ ; D ∈N+ ; E ∈N+ c ∈N+ ;
DE=d cDE=n cDE=n
| {z } | {z }
= ∑ = ∑
D ∈N+ ; E ∈N+ c ∈N+ ; D ∈N+ ; E ∈N+ ;
cDE=n
= ∑ f (c) g ( D ) h ( E) = ∑ f (c) g (d) h (e)
c ∈N+ ; D ∈N+ ; E ∈N+ ; c ∈N+ ; d ∈N+ ; e ∈N+ ;
cDE=n cde=n
(here, we have renamed the summation indices D and E as d and e) .
39
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Lemma 2.4.3. Let n ∈ N+ . Let D (n) be the set of all positive divisors of n.
Then, the map
D (n) → D (n) , d 7→ n/d
is well-defined and bijective.
Proof of Lemma 2.4.3. For every d ∈ D (n), we have n/d ∈ D (n) 10 . Thus, we
can define a map ρ : D (n) → D (n) by
40
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
(because ρ (d) = n/d for every d ∈ D (n)). Thus, the map (15) is well-defined.
We have
for every d ∈ D (n). In other words, ρ ◦ ρ = id. Hence, the maps ρ and ρ
are mutually inverse. In particular, the map ρ is invertible, i.e., bijective. In
other words, the map (15) is bijective (since the map ρ is the map (15)). Thus,
we have shown that the map (15) is well-defined and bijective. Lemma 2.4.3 is
proven.
Here is a more interesting result:
Proposition 2.4.5 is [NiZuMo91, Theorem 4.6]. The proof we are going to give
for it here is actually the second proof given for it in [NiZuMo91]:
Proof of Proposition 2.4.5. Fix n ∈ N+ . Let me first show that
n
∑ 1 = φ
d
(16)
k∈{1,2,...,n};
gcd(k,n)=d
Thus, ∑ 1 = ∑ 1 = | K | · 1 = | K |.
k∈{1,2,...,n}; k∈K
gcd(k,n)=d
On the other hand, define a set F by
n n no no
F = k ∈ 1, 2, . . . , | k is coprime to .
d d
41
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
nno n
Then, | F | is the number of all k ∈ 1, 2, . . . , coprime to ; this number is
n n d d n
φ (since this is how φ is defined). In other words, | F | = φ .
d d d
u
But every u ∈ K satisfies ∈ F 11 . Thus, we can define a map
d
u
α : K → F, u 7→ .
d
On the other hand, every v ∈ F satisfies dv ∈ K 12 . Thus, we can define a
map
β : F → K, v 7→ dv.
The two maps α and β that we have now defined are mutually inverse (since one
of them divides its input by d, whereas the other multiplies it by d). Hence, α is
abijection. Thus, there is a bijection K → F (namely, α). Hence, | F | = |K |. Now,
n
φ = | F | = |K | = ∑ 1, and therefore (16) is proven.
d k∈{1,2,...,n};
gcd(k,n)=d
Now, let D (n) be the set of all positive divisors of n. Then, the summation
sign ∑ means the same thing as ∑ (namely, a summation over all positive
d∈D(n) d|n
divisors d of n).
But Lemma 2.4.3 shows that the map
D (n) → D (n) , d 7→ n/d
11 Proof. Let u ∈ K. Thus, u is an element of {1, 2, . . . , n} and satisfies gcd (u, n) = d (by the
u u
definition of K). Now, d = gcd (u, n) | u, so that is an integer. This integer must belong
d d
n no u n
to 1, 2, . . . , (since u belongs to {1, 2, . . . , n}). But Proposition 1.2.9 (applied to d, and
d d d
u n u n
instead of g, a and b) yields d gcd , = gcd d· ,d· = gcd (u, n) = d. Cancelling
d d
|{z}d |{z}
d
u n =u =n
u
d from this equality, we obtain gcd , = 1 (since d 6= 0). In other words, is coprime to
d d d
n u n no n
. Thus, we have shown that is an element of 1, 2, . . . , and is coprime to . In other
d d d d
u
words, ∈ F (by the definition of F), qed.
d
12 Proof. Let v ∈ F. Thus, v is an element of 1, 2, . . . , n and is coprime to n (by the definition
n o
n d d
n
of F). Now, gcd v, = 1 (since v is coprime to ). But Proposition 1.2.9 (applied to d, v
d d
n n n
and instead of g, a and b) shows that d gcd v, = gcd dv, d · = gcd (dv, n), so that
d d d
|{z}
n =n
n no
gcd (dv, n) = d gcd v, = d. Also, from v ∈ 1, 2, . . . , , we obtain dv ∈ {1, 2, . . . , n}.
| {z d } d
=1
Hence, we have shown that dv is an element of {1, 2, . . . , n} and satisfies gcd (dv, n) = d. In
other words, dv ∈ K (by the definition of K), qed.
42
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
is well-defined and bijective. Thus, this map is a bijection. Hence, we can sub-
n
stitute for d in the sum ∑ φ (d). We thus obtain
d d∈D(n)
n
∑ φ (d) = ∑ φ = ∑ ∑ 1
d∈D(n) d∈D(n) | {zd } d|n k∈{1,2,...,n};
| {z } = ∑ 1 gcd(k,n)=d
=∑ k∈{1,2,...,n}; | {z }
d|n gcd(k,n)=d = ∑
k ∈{1,2,...,n}
(by (16))
(because for every k∈{1,2,...,n},
the number gcd(k,n) is a positive divisor of n)
= ∑ 1 = n.
k∈{1,2,...,n}
Proposition 2.4.7 is [NiZuMo91, Theorem 4.7], and the book gives two proofs
for it. Let us sketch a third:13
13 See [Grinbe15, proof of Proposition 2.6] for a detailed version of this proof.
43
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
First of all, we recall that µ (1) = 1. (This has already been proven in our
proof of Proposition 2.2.2 (f).) Hence, ∑ µ (d) = µ (1) = 1 = ε (1) (because ε (1)
d |1
is defined to be 1). In other words, (17) is proven for the case when n = 1. Thus,
we WLOG assume that n 6= 1 from now on. Hence, ε (n) = 0 (by the definition
of ε). Also, n has at least one prime divisor (since n 6= 1). Pick any prime divisor
q of n.
Let D be the set of all squarefree positive divisors d of n satisfying q - d.
Let E be the set of all squarefree positive divisors d of n satisfying q | d.
The map
D → E, d 7→ qd
is well-defined and a bijection14 . Moreover, every d ∈ D satisfies
14 Check this! (Or see [Grinbe15, proof of Proposition 2.6] for the proof.)
15 Proof of (18): Let d ∈ D. Thus, d is a squarefree positive divisor d of n satisfying q - d (by the
definition of D). From q - d, we conclude that q is coprime to d (since q is prime). Hence,
µ (qd) = µ (q) µ (d) (since the function µ is multiplicative).
But q is a prime; thus, q is squarefree. Hence, the definition of µ yields µ (q) = (−1)ω (q) =
(−1)1 (since ω (q) = 1 (again since q is a prime)). Thus, µ (qd) = µ (q) µ (d) = −µ (d),
| {z }
=(−1)1 =−1
qed.
44
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Now,
= ∑ µ (d) + ∑ 0= ∑ µ (d)
d|n; d|n; d|n;
d is squarefree d is not squarefree d is squarefree
| {z }
=0
= ∑ µ (d) + ∑ µ (d)
d|n; d|n;
d is squarefree; d is squarefree;
q|d q-d
| {z } | {z }
=∑ = ∑
d∈ E d∈ D
(by the definition of E) (by the definition of D)
45
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Instead of proving the concrete version combinatorially and then deriving the
Dirichlet convolution from it, we will go the opposite way this time:
Proof of Proposition 2.4.8. Proposition 2.4.4 yields ι = φ ? 1 = 1 ? φ (by Theorem
2.3.4 (c), applied to f = φ and g = 1). Now,
µ ? |{z}
ι = µ ? (1 ? φ ) = ( µ ? 1) ?φ
| {z }
=1? φ =ε
(by Proposition 2.4.6)
46
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Theorem 2.5.1 is [NiZuMo91, Theorems 4.8 and 4.9]. It is merely the most well-
known of the many “Möbius inversion formulas” that appear in various parts
of mathematics; see [BenGol75] or [Rota64] or [Stanle11, §3.7] for introductions
into the more general theory of Möbius functions (of partially ordered sets).
We shall prove Theorem 2.5.1 by rewriting it in the following equivalent form:
( F = f ? 1) ⇐⇒ ( f = µ ? F ) .
µ ? |{z}
F = µ ? (1 ? f ) = ( µ ? 1) ? f
| {z }
=1? f =ε
by Theorem 2.3.4 (b), applied to µ, 1 and f
instead of f , g and h
= ε? f = f (by Theorem 2.3.4 (a)) .
47
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Hence,
f ?1 = 1? f = 1 ? ( µ ? F ) = (1 ? µ ) ? F
|{z} | {z }
=µ? F =ε
by Theorem 2.3.4 (b), applied to 1, µ and F
instead of f , g and h
= ε?F = F (by Theorem 2.3.4 (a), applied to F instead of f ) .
Thus, F = f ? 1. This proves the implication ( F = f ? 1) ⇐= ( f = µ ? F ).
Now, both implications are proven; hence, the proof of Proposition 2.5.2 is
complete.
Proof of Theorem 2.5.1. We have the following chain of equivalences:
( F = f ? 1)
⇐⇒ ( F (n) = ( f ? 1) (n) for all n ∈ N+ )
= ∑ f (d)
d|n
⇐⇒ ( F = f ? 1)
⇐⇒ ( f = µ ? F ) (by Proposition 2.5.2)
⇐⇒ ( f (n) = (µ ? F ) (n) for all n ∈ N+ )
n
⇐⇒ f (n) = ∑ µ (d) F for all n ∈ N+
d|n
d
48
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
This map g is well-defined (because if u is a positive divisor of mn, then gcd (u, m)
and gcd (u, n) are positive divisors of m and n, respectively).
16 Note that the claim of Theorem 2.6.1 is also the first part of [NiZuMo91, §8.2, problem 1].
49
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
mutually inverse. In particular, this shows that the map f is a bijection. In other
words, the map D (m) × D (n) → D (mn) , (d, e) 7→ de is a bijection (since this
map is precisely f).
We make two more simple observations:
1. We have
17 Proof.
Let u ∈ D (mn). Thus, u is a positive divisor of mn. Therefore, gcd (u, mn) = u.
The definition of g shows that g (u) = (gcd (u, m) , gcd (u, n)). Now,
Now, forget that we fixed u. We thus have proven that (f ◦ g) (u) = u for every u ∈ D (mn).
In other words, f ◦ g = id.
18 Proof. Let ( d, e ) ∈ D ( m ) × D ( n ). Then, f ( d, e ) = de (by the definition of f), and
Now, forget that we fixed (d, e). We thus have shown that (g ◦ f) (d, e) = (d, e) for each
( e) ∈ D (m) × D (n). In other words, g ◦ f = id.
d,
50
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
19
2. We have
mn m n
g =g g for any d ∈ D (m) and e ∈ D (n) . (23)
de d e
20
19 Proof of (22): Let d ∈ D (m) and e ∈ D (n). In other words, d is a positive divisor of m, and e is
a positive divisor of n. Hence, d | m and e | n. Therefore, Corollary 1.2.4 (applied to d, e, m
and n instead of a, b, c and d) yields gcd (d, e) | gcd (m, n) = 1 (since m and n are coprime).
Hence, gcd (d, e) = 1. In other words, d and e are coprime. Hence, (19) (applied to d and e
instead of m and n) yields f (de) = f (d) f (e), qed.
20 Proof of (23): Let d ∈ D ( m ) and e ∈ D ( n ). In other words, d is a positive divisor of m, and
m n
e is a positive divisor of n. Hence, d | m and e | n. This shows that and are integers.
d e
m n m
Furthermore, the numbers and are positive (since m, d, n and e are positive). Hence,
d e d
n
and are positive integers.
e
m n m n
Moreover, | m and | n. Hence, Corollary 1.2.4 (applied to , , m and n instead
d e d e
m n
of a, b, c and d) yields gcd , | gcd (m, n) = 1 (since m and n are coprime). Hence,
m n d e
m n m n
gcd , = 1. In other words, and are coprime. Hence, (20) (applied to and
d e d e d e
m n m n
mn
= g m·n =
instead of m and n) yields g · = g g . Hence, g
d e d e de
|{z} d e
m n
= ·
m n d e
g g , qed.
d e
51
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
( f ? g) (mn)
mn mn
here, we have renamed the
= ∑ f (d) g
d
= ∑ f (u) g
u summation index d as u
d|mn u|mn
|{z}
= ∑
u∈D(mn)
mn mn
= ∑ f (u) g
u
= ∑ f (de) g
de
u∈D(mn) (d,e)∈D(m)×D(n)
| {z }
= ∑ ∑
d∈D(m) e∈D(n)
here, we have substituted de for u in the sum, since the
map D (m) × D (n) → D (mn) , (d, e) 7→ de is a bijection
mn
= ∑ ∑ | {z }
f ( de ) g
d∈D(m) e∈D(n) | {z de }
| {z } | {z } = f (d) f (e) m n
=∑ =∑ (by (22)) = g g
d|m e|n d e
(by (23))
m n m n
= ∑ ∑ f (d) f (e) g g = ∑ f (d) g ∑ f (e) g
d|m e|n
d e d|m
d e|n
e
m
∑ f (d) g n
= ∑ f (d) g
d|m
d d|n
d
( f ? g) (m) · ( f ? g) (n)
| {z } | {z }
m
n
= ∑ f (d) g = ∑ f (d) g
d|m d d|n d
(by the definition of f ? g) (by the definition of f ? g)
m n
= ∑ f (d) g ∑ f (d) g ,
d|m
d d|n
d
52
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
53
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
f ( a1 a2 · · · a k ) = f ( a1 ) f ( a2 ) · · · f ( a k ) .
Both the proof of Proposition 2.7.2 (by induction over k) and the proof of
Proposition 2.7.1 (using Proposition 2.7.2) are rather straightforward:
Proof of Proposition 2.7.2. The function f is multiplicative. In other words, it sat-
isfies f (1) = 1 and
f (mn) = f (m) f (n) for any two coprime m ∈ N+ and n ∈ N+ (25)
(by the definition of “multiplicative”).
The integers a1 , a2 , . . . , ak are pairwise coprime. In other words,
au is coprime to av (26)
for any integers u and v satisfying 1 ≤ u < v ≤ k.
We shall show that
f ( a1 a2 · · · a i ) = f ( a1 ) f ( a2 ) · · · f ( a i ) (27)
for every i ∈ {0, 1, . . . , k }.
Proof of (27): We shall prove (27) by induction over i:
Induction base: We have a1 a2 · · · a0 = (empty product) = 1. Applying the map
f to both sides of this equation, we obtain
f ( a1 a2 · · · a0 ) = f (1) = 1.
21 We say that k integers a1 , a2 , . . . , ak are pairwise coprime if they have the property that au is
coprime to av for any integers u and v satisfying 1 ≤ u < v ≤ k.
54
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Corollary 2.7.3. Let (s1 , s2 , . . . , sk ) be a list of all elements of S (with each
element appearing exactly once in the list). Then, ∏ ms = ms1 ms2 · · · msk and
s∈S
∏ f ( m s ) = f ( m s1 ) f ( m s2 ) · · · f ( m s k ).
s∈S
Also, if i and j are two distinct elements of {1, 2, . . . , k }, then the integers msi
and ms j are coprime23 . In other words, ms1 , ms2 , . . . , msk are pairwise coprime
22 Proof. Let u ∈ {1, 2, . . . , j − 1}. Thus, u is an integer satisfying 1 ≤ u ≤ j − 1. Now, 1 ≤ u ≤
j − 1 < j ≤ k (since j ∈ {0, 1, . . . , k}). Therefore, (26) (applied to v = j) shows that au is
coprime to a j . Qed.
23 Proof. Let i and j be two distinct elements of {1, 2, . . . , k }.
55
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
f ( m s1 m s2 · · · m s k ) = f ( m s1 ) f ( m s2 ) · · · f ( m s k ) .
Thus,
∏ ms = f (ms ms · · · ms ) = f (ms ) f (ms ) · · · f (ms ) = ∏ f (ms ) .
f
1 2 k 1 2 k
s∈S s∈S
| {z }
=ms1 ms2 ···msk
The list (s1 , s2 , . . . , sk ) contains no element more than once (because of its definition). In
other words, the elements s1 , s2 , . . . , sk are pairwise distinct. Hence, si 6= s j (since i 6= j). In
other words, the elements si and s j are distinct.
But the integers ms and mt are coprime whenever s and t are two distinct elements of S.
Applying this to s = si and t = s j , we conclude that the integers msi and ms j are coprime
(since si and s j are distinct). Qed.
24 Proof. Let s and t be two distinct elements of PF n. We must prove that the integers svs (n) and
56
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Theorem 2.8.2. (c) Let f and g be two arithmetic functions. Let n ∈ N+ .
The definition of f · g yields ( f · g) (n) = f (n) g (n) = g (n) f (n). But the def-
inition of g · f yields ( g · f ) (n) = g (n) f (n). Comparing these two equalities,
we obtain ( f · g) (n) = ( g · f ) (n).
Now, forget that we fixed n. We thus have shown that ( f · g) (n) = ( g · f ) (n)
for each n ∈ N+ . In other words, f · g = g · f . This proves Theorem 2.8.2 (c).
(a) Let f be an arithmetic function. Every n ∈ N+ satisfies
(1 · f ) ( n ) = 1 (n) · f (n) (by the definition of 1 · f )
| {z }
=1
(by the definition
of 1)
= f (n)
In other words, 1 · f = f . But Theorem 2.8.2 (c) (applied to g = 1) yields
f · 1 = 1 · f . Thus, f · 1 = 1 · f = f . This proves Theorem 2.8.2 (a).
(b) Let f , g and h be three arithmetic functions. Let n ∈ N+ . The definition of
( f · g) · h yields
(( f · g) · h) (n) = ( f · g) (n) h (n) = f (n) g (n) h (n) .
| {z }
= f (n) g(n)
(by the definition
of f · g)
57
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Theorem 2.8.3 is just Proposition 2.2.3 (a) with different notations, but let us
prove it again:
Proof of Theorem 2.8.3. The function f is multiplicative. In other words, it satisfies
f (1) = 1, and
f (mn) = f (m) f (n) for any two coprime m ∈ N+ and n ∈ N+ . (28)
The function g is multiplicative. In other words, it satisfies g (1) = 1, and
g (mn) = g (m) g (n) for any two coprime m ∈ N+ and n ∈ N+ . (29)
The definition of f · g yields
( f · g) (1) = f (1) g (1) = 1.
| {z } | {z }
=1 =1
58
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proposition 2.9.3. Let b and c be two positive integers. Then, there exists a
smallest positive common multiple of b and c. (In other words, the set of all
positive common multiples of b and c has a smallest element.)
Proof of Proposition 2.9.3. We know that b and c are positive integers. Hence,
their product bc is a positive integer as well. Moreover, this positive integer bc is
clearly a multiple of b (since b | bc) and a multiple of c (since c | bc); thus, it is a
common multiple of b and c. Hence, bc is a positive common multiple of b and
c. Therefore, the set of all positive common multiples of b and c has at least one
element (namely, the element bc). Thus, this set is nonempty. Therefore, this set
is a nonempty set of positive integers.
But it is well-known that any nonempty set of positive integers has a mini-
mum element. Hence, the set of all positive common multiples of b and c has
a minimum element (because this set is a nonempty set of positive integers). In
other words, there exists a smallest positive common multiple of b and c.
Definition 2.9.4. Let b and c be two positive integers. Then, lcm (b, c) is de-
fined to be the smallest positive common multiple of b and c. (This is well-
defined, because Proposition 2.9.3 shows that there exists a smallest positive
common multiple of b and c.)
This number lcm (b, c) is called the lowest common multiple of b and c or the
least common multiple of b and c or, briefly, the lcm of b and c. Clearly, it satisfies
lcm (b, c) = lcm (c, b) and b | lcm (b, c) and c | lcm (b, c). Notice that lcm (b, c)
is a positive integer (by its definition).
We have been slightly lazy here and only defined the lowest common multiple
of two positive integers. We could extend this definition to two arbitrary inte-
gers, or even to several integers. But we will not need this generality in what
follows.
59
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Older books such as [NiZuMo91] often denote the lcm of two integers b and c
by [b, c] (rather than by lcm (b, c) as we do).
The most important property of lcms is the following fact, which is in a sense
a mirror image of Proposition 1.2.3:
Proposition 2.9.5. Let b and c be two positive integers. Let a be an integer
such that b | a and c | a. Then, lcm (b, c) | a.
In words, Proposition 2.9.5 says that any common multiple of two positive
integers must be divisible by the lcm of these two integers.
Proof of Proposition 2.9.5. Let ` = lcm (b, c). Then, ` is the smallest positive com-
mon multiple of b and c (by the definition of the lcm). Hence, ` is a positive
integer.
Let q and r be the quotient and the remainder obtained when dividing a by
`. Thus, we have q ∈ Z, r ∈ {0, 1, . . . , ` − 1} and a = q` + r (by the definition
of division with remainder). From a = q` + r, we obtain a − q` = r. From
r ∈ {0, 1, . . . , ` − 1}, we obtain r ≥ 0 and r ≤ ` − 1 < `.
We have b | a and b | lcm (b, c) = ` | −q`. In other words, the two integers a
and −q` are both divisible by b. Hence, the sum a + (−q`) of these two integers
must also be divisible by b (by Proposition 1.0.1, applied to b, a and −q` instead
of a, u and v). In other words, b | a + (−q`). In view of a + (−q`) = a − q` = r,
this rewrites as b | r. The same argument (applied to c instead of b) yields c | r
(since c | lcm (b, c) = `).
Now, r is an integer that is both a multiple of b (since b | r) and a multiple of
c (since c | r). In other words, r is a common multiple of b and c.
Recall that ` is the smallest positive common multiple of b and c. Hence, each
positive common multiple of b and c must be ≥ `. Thus, if r was positive, then r
would be ≥ ` (because r is a common multiple of b and c, and therefore would be
a positive common multiple of b and c); but this would contradict r < `. Hence,
r cannot be positive. In other words, we must have r ≤ 0. Combining this with
r ≥ 0, we obtain r = 0. Thus, a = q` + |{z} r = q`. Now, lcm (b, c) = ` | q` = a.
=0
This proves Proposition 2.9.5.
Corollary 2.9.6. Let b and c be two positive integers. Let a be an integer. Then,
we have the logical equivalence
60
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
The gcd and the lcm of two positive integers b and c are connected by the
equality gcd (b, c) · lcm (b, c) = bc (see, for example, [NiZuMo91, Theorem 1.13]
or [Conrad19, Theorem 7]). We will not have any use for this connection, how-
ever. Most texts on number theory study the lcm as an afterthought of the gcd;
however, as Keith Conrad shows in [Conrad19, Theorem 7], it is actually easier
to build up the theory of gcds and lcms (of two positive integers) by starting
with lcms first.
For future use, let us state a trivial property of lcms:
2.10. Lcm-convolution
We can now define another way of “multiplying” two arithmetic functions:
? g) (n) =
(f e ∑ f (d) g (e) for every n ∈ N+ .
d ∈N+ ; e ∈N+ ;
lcm(d,e)=n
(This is well-defined, because the sum on the right hand side of this equality
is finite26 .)
This new function f e? g is called the lcm-convolution of f and g.
25 Proof. Let (d, e) ∈ N+ × N+ be such that lcm (d, e) = n. We must prove that (d, e) ∈
{1, 2, . . . , n}2 .
We have (d, e) ∈ N+ × N+ ; thus, d ∈ N+ and e ∈ N+ . In other words, d and e are positive
integers. Also, n is a positive integer (since n ∈ N+ ); thus, n > 0. Now, d | lcm (d, e) = n. In
other words, there exists an integer z such that n = dz. Consider this z. If we had z ≤ 0, then
we would have n = d |{z} z ≤ d0 (since d is positive), which would contradict n > 0 = d0.
≤0
Thus, we cannot have z ≤ 0. Hence, we have z > 0. Thus, z ≥ 1 (since z is an integer). Now,
z ≥ d1 (since d is positive), so that n ≥ d1 = d. In other words, d ≤ n. Hence, d ∈
n = d |{z}
≥1
{1, 2, . . . , n} (since d is a positive integer). Similarly, e ∈ {1, 2, . . . , n} (since e | lcm (d, e) = n).
Combining d ∈ {1, 2, . . . , n} with e ∈ {1, 2, . . . , n}, we find (d, e) ∈ {1, 2, . . . , n}2 . Qed.
26 Proof. Let n ∈ N . We must prove that the sum
+ ∑ f (d) g (e) is finite. In other words,
d ∈N+ ; e ∈N+ ;
lcm(d,e)=n
we must prove that there are only finitely many pairs (d, e) ∈ N+ × N+ such that lcm (d, e) =
61
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
? g ) (1) =
(f e ∑ f ( d ) g ( e ) = f (1) g (1) ;
d ∈N+ ; e ∈N+ ;
lcm(d,e)=1
? g) ( p) =
(f e ∑ f (d) g (e)
d ∈N+ ; e ∈N+ ;
lcm(d,e)= p
= f (1) g ( p ) + f ( p ) g (1) + f ( p ) g ( p ) for any prime p;
? g ) (6) =
(f e ∑ f (d) g (e)
d ∈N+ ; e ∈N+ ;
lcm(d,e)=6
= f (1) g (6) + f (2) g (3) + f (2) g (6) + f (3) g (2) + f (3) g (6)
+ f (6) g (1) + f (6) g (2) + f (6) g (3) + f (6) g (6) .
The proofs will rely on the following result of von Sterneck and Lehmer
(see, e.g., [Lehmer31, Theorem 1]), which connects the lcm-convolution with
the pointwise product and the Dirichlet convolution:
F = 1 ? f, G = 1?g and H = 1 ? (f e
? g) .
n. In other words, we must prove that the set {(d, e) ∈ N+ × N+ | lcm (d, e) = n} is finite.
But this follows immediately from Lemma 2.9.7. Qed.
62
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Let n ∈ N+ . Then, H = 1 ? ( f e
? g) = ( f e
? g) ? 1 (by Theorem 2.3.4 (c), applied
? g instead of f and g). Applying both sides of this equality to n, we
to 1 and f e
obtain
H (n) = (( f e
? g ) ? 1) ( n )
n
= ∑(f e
? g) (d) 1 ? g ) ? 1)
(by the definition of ( f e
d|n | {zd }
=1
(by the definition of 1)
= ∑(f e
? g) (d) = ∑ ? g) (s)
(f e
d|n s|n
| {z }
= ∑ f (d) g(e)
d ∈N+ ; e ∈N+ ;
|{z}
= ∑
s is a positive lcm(d,e)=s
divisor of n ? g)
(by the definition of f e
(by Definition 2.1.3)
Also, lcm (d, e) is positive (by the definition of lcm (d, e)). Thus, lcm (d, e) is a
positive divisor of n if and only if lcm (d, e) is a divisor of n. Hence, we have the
following chain of logical equivalences:
Now, forget that we fixed d and e. We thus have proven the logical equivalence
63
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
summation signs:
∑ = ∑ = ∑ ∑ =∑ ∑.
d ∈N+ ; e ∈N+ ; d ∈N+ ; e ∈N+ ; d ∈N+ e ∈N+ d|n e|n
lcm(d,e) is a positive d|n and e|n d|n e|n
divisor of n | {z } | {z }
= ∑ = ∑
d is a positive e is a positive
divisor of n divisor of n
=∑ =∑
d|n e|n
(by Definition 2.1.3) (by Definition 2.1.3)
= ∑ f (d) . (34)
d|n
(here, we have renamed the summation index d as e). Now, the definition of
F · G yields
Now, forget that we fixed n. We thus have proven that ( F · G ) (n) = H (n) for
each n ∈ N+ . In other words, F · G = H.
64
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
F · |{z}
Comparing this with |{z} G = (1 ? f ) · (1 ? g), we obtain
=1? f =1? g
(1 ? f ) · (1 ? g ) = H = 1 ? ( f e
? g) .
? g ) = (1 ? f ) · (1 ? g )
H = 1 ? (f e (by Theorem 2.10.5) .
Also, H = 1 ? ( f e
? g) = ( f e
? g) ? 1 (by Theorem 2.3.4 (c), applied to 1 and f e
?g
instead of f and g).
But Proposition 2.5.2 (applied to f e ? g and H instead of f and F) yields that
we have the following logical equivalence:
? g) ? 1) ⇐⇒ ( f e
(H = ( f e ? g = µ ? H) .
? g = µ ? H (since we have H = ( f e
Hence, we have f e ? g) ? 1). Thus,
?g = µ?
fe H
|{z} = µ ? ((1 ? f ) · (1 ? g)) .
=(1? f )·(1? g)
( F = f ? 1) ⇐⇒ ( f = µ ? F ) .
65
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
66
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Lemma 3.0.1. Let b and c be two integers. Then, gcd (b, c) = gcd (c, b).
Proof of Lemma 3.0.1. If (b, c) = (0, 0), then Lemma 3.0.1 is obvious. Hence, for
the rest of this proof, we WLOG assume that (b, c) 6= (0, 0). Thus, (c, b) 6=
(0, 0). Hence, gcd (c, b) is the greatest of all common divisors of c and b (by the
definition of gcd (c, b)). In other words, gcd (c, b) is the greatest of all common
divisors of b and c (since the common divisors of c and b are the same as the
common divisors of b and c). On the other hand, gcd (b, c) is the greatest of
all common divisors of b and c (by the definition of gcd (b, c)). Hence, the two
numbers gcd (c, b) and gcd (b, c) have been characterized in precisely the same
way (namely, as the greatest of all common divisors of b and c). Therefore, these
two numbers are equal. In other words, gcd (b, c) = gcd (c, b). This proves
Lemma 3.0.1.
67
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Lemma 3.0.2. If (b, c) = (0, 0), then Lemma 3.0.2 is obvious. Hence, for
the rest of this proof, we WLOG assume that (b, c) 6= (0, 0).
(a) We make the following two observations:
68
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Lemma 3.0.3. If (b, c) = (0, 0), then Lemma 3.0.3 is obvious (because if
(b, c) = (0, 0), then all four integers b, c, b + uc and ub + c are 0). Hence, for the
rest of this proof, we WLOG assume that (b, c) 6= (0, 0).
(a) We make the following two observations:
Clearly, |b| is either b or −b. Thus, |b| = −b (since |b| 6= b). Hence, gcd |b| , c =
|{z}
=−b
gcd (−b, c) = gcd (b, c) (by Lemma 3.0.2 (a)), qed.
28 Proof. We must prove that gcd (| b | , | c |) = gcd (| b | , c ). If | c | = c, then this is obvious. Hence,
pared with gcd |b| , |c| = gcd (|b| , −c), this yields gcd (|b| , |c|) = gcd (|b| , c), qed.
|{z}
=−c
69
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
−uc (since d | b + uc and d | −uc). Hence, d must also divide the sum of these
two integers. In other words, we have d | (b + uc) + (−uc) = b. Now, d divides
both b and c (since d | b and d | c). Hence, d is a common divisor of b and c. This
completes the proof of Observation 1.
Observation 2: Every common divisor of b and c is a common divisor
of b + uc and c.
Proof of Observation 2. Let d be a common divisor of b and c. We must prove that
d is a common divisor of b + uc and c.
We know that d is a common divisor of b and c; hence, d | b and d | c. Now,
d | c | uc. So we know that d divides the two integers b and uc (since d | b
and d | uc). Hence, d must also divide the sum of these two integers. In other
words, we have d | b + uc. Now, d divides both b + uc and c (since d | b + uc and
d | c). Hence, d is a common divisor of b + uc and c. This completes the proof of
Observation 2.
Combining Observation 1 with Observation 2, we conclude that the common
divisors of b + uc and c are the same as the common divisors of b and c.
But (b + uc, c) 6= (0, 0) 29 . Hence, gcd (b + uc, c) is the greatest of all com-
mon divisors of b + uc and c (by the definition of gcd (b + uc, c)). In other words,
gcd (b + uc, c) is the greatest of all common divisors of b and c (since the com-
mon divisors of b + uc and c are the same as the common divisors of b and c).
On the other hand, gcd (b, c) is the greatest of all common divisors of b and c (by
the definition of gcd (b, c)). Hence, the two numbers gcd (b + uc, c) and gcd (b, c)
have been characterized in precisely the same way (namely, as the greatest of all
common divisors of b and c). Therefore, these two numbers are equal. In other
words, gcd (b + uc, c) = gcd (b, c). This proves Lemma 3.0.3 (a).
(b) One way to prove Lemma 3.0.3 (b) is by arguing similarly to how we
argued in our proof of Lemma 3.0.3 (a). Let us, however, proceed differently:
We have
gcd (b, c) = gcd (c, b) (by Lemma 3.0.1)
by Lemma 3.0.3 (a), applied to c and b
= gcd c| +
{zub}, b
instead of b and c
=ub+c
= gcd (ub + c, b)
by Lemma 3.0.1, applied to
= gcd (b, ub + c) .
ub + c and b instead of b and c
Thus, Lemma 3.0.3 (b) is proven.
29 Proof.
Assume the contrary (for the sake of contradiction). Thus, (b + uc, c) = (0, 0). Hence,
b + uc = 0 and c = 0. Now, 0 = b + u |{z} c = b, so that b = 0. Combined with c = 0,
=0
this yields (b, c) = (0, 0), which contradicts (b, c) 6= (0, 0). This contradiction shows that our
assumption was false, qed.
70
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Proof of Lemma 3.0.4. (a) We have gcd (0, 0) = 0. In other words, Lemma 3.0.4 (a)
holds for a = 0. Thus, for the rest of the proof of Lemma 3.0.4 (a), we can WLOG
assume that a 6= 0. Assume this. Thus, a is a positive integer (since a ∈ N and
a 6= 0). Hence, every divisor of a is ≤ a. Thus, the greatest of all divisors of a is
a itself (since a itself is a divisor of a).
We make the following two observations:
71
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Let us first consider Case 1. In this case, we have b = 0. Thus, gcd |{z}
b , c =
=0
gcd (0, c) = c (by Lemma 3.0.4 (b), applied to a = c). Compared with b0 + c1 =
c1 = c, this yields gcd (b, c) = b0 + c1. Hence, there exist integers x and y such
that gcd (b, c) = bx + cy (namely, x = 0 and y = 1). Thus, Lemma 3.0.5 is proven
in Case 1.
Let us now consider Case 2. In this case, we have c = 0. Thus, gcd b, |{z}
c =
=0
gcd (b, 0) = b (by Lemma 3.0.4 (a), applied to a = b). Compared with b1 + c0 =
b1 = b, this yields gcd (b, c) = b1 + c0. Hence, there exist integers x and y such
that gcd (b, c) = bx + cy (namely, x = 1 and y = 0). Thus, Lemma 3.0.5 is proven
in Case 2.
Hence, Lemma 3.0.5 is proven in each of the two Cases 1 and 2. Thus, Lemma
3.0.5 always holds.
Next, we prove the particular case of Theorem 1.2.2 when b and c are nonneg-
ative:
Lemma 3.0.6. Let b ∈ N and c ∈ N. Then, there exist integers x and y such
that gcd (b, c) = bx + cy.
there exist integers x and y such that gcd (b, c) = bx + cy. (37)
If we have either b = 0 or c = 0 (or both), then (37) is true (by Lemma 3.0.5).
Thus, for the rest of this proof of (37), we can WLOG assume that we have
neither b = 0 nor c = 0. Assume this.
We have neither b = 0 nor c = 0. In other words, we have b 6= 0 and c 6= 0.
Thus, b > 0 (since b ∈ N and b 6= 0) and c > 0 (since c ∈ N and c 6= 0). Now,
we are in one of the following two cases:
72
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
Thus, there exist integers x and y such that gcd (b, c) = bx + cy (namely, x =
x0 − y0 and y = y0 ). Therefore, (37) is proven in Case 1.
Let us now consider Case 2. In this case, we have b ≥ c. Thus, b − c ∈ N.
Moreover, b = (b − c) + |{z}c > b − c, so that b − c < b and thus (b − c) +c <
| {z }
>0 <b
b + c = N. Therefore, we can apply Observation 1 to b − c instead of b. As a
result, we conclude that there exist integers x and y such that gcd (b − c, c) =
(b − c) x + cy. Denote these x and y by x0 and y0 . Hence, x0 and y0 are integers
satisfying gcd (b − c, c) = (b − c) x0 + cy0 .
Lemma 3.0.3 (a) (applied to u = −1) yields
Thus, there exist integers x and y such that gcd (b, c) = bx + cy (namely, x = x0
and y = y0 − x0 ). Therefore, (37) is proven in Case 2.
We have now proven (37) in each of the two Cases 1 and 2. Thus, (37) always
holds (since Cases 1 and 2 cover all possibilities). So we have proven that there
exist integers x and y such that gcd (b, c) = bx + cy.
Now, forget that we fixed b and c. We thus have shown that if b ∈ N and
c ∈ N are such that b + c = N, then there exist integers x and y such that
gcd (b, c) = bx + cy. In other words, Lemma 3.0.6 holds in the case when b + c =
N. This completes the induction step; thus, Lemma 3.0.6 is proven by strong
induction.
73
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
gcd (b, c) = gcd (|b| , |c|) = |b| x0 + |c| y0 = βbx0 + γcy0 = b ( βx0 ) + c (γy0 ) .
|{z} |{z} |{z} |{z}
= βb =γc =b( βx0 ) =c(γy0 )
Hence, there exist integers x and y such that gcd (b, c) = bx + cy (namely, x =
βx0 and y = γy0 ). This proves Theorem 1.2.2.
References
[BenGol75] Edward A. Bender, J. R. Goldman, On the applications of Möbius in-
version in combinatorial analysis, American Mathematical Monthly, vol.
82, October 1975, pp. 789–803.
74
18.781 (Spring 2016): floor and arithmetic functions January 22, 2021
75