Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.3.46* (Number of integers $a,\ 1\leq a \leq n$, for which $(a,n) = 1$ and $(a+1,n) = 1$)
Exercise 2.3.46* (Number of integers $a,\ 1\leq a \leq n$, for which $(a,n) = 1$ and $(a+1,n) = 1$)
Let denote the number of integers , for which both and . Show that . For what values of is ?
Answers
Proof.
- a)
-
This is a particular case of Problem 47, so I use the result of Problem 47:
if denotes the number of integers , such that , then
where denotes the number of solutions of the congruence .
Consider the polynomial . Since and is equivalent to , we obtain
Moreover, the congruence has only two solutions, since is prime:
Therefore , and Problem 47 gives
- b)
-
If
, there is some
such that
, thus
, so
is even.
Conversely, if is even, then for all integers , or is even, thus or : there is no integer for which both and . This shows that .