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 ψ ( n ) denote the number of integers a , 1 a n , for which both ( a , n ) = 1 and ( a + 1 , n ) = 1 . Show that ψ ( n ) = n p n ( 1 2 p ) . For what values of n is ψ ( n ) = 0 ?

Answers

Proof.

a)
This is a particular case of Problem 47, so I use the result of Problem 47:

if Φ f ( m ) denotes the number of integers a , 1 a m , such that f ( a ) m = 1 , then

ϕ f ( n ) = n p n ( 1 N ( p ) p ) ,

where N ( p ) denotes the number of solutions of the congruence f ( x ) 0 ( mod m ) .

Consider the polynomial f ( x ) = x ( x + 1 ) [ x ] . Since a n = 1 and ( a + 1 ) n = 1 is equivalent to a ( a + 1 ) n = 1 , we obtain

ψ ( n ) = Φ f ( n ) .

Moreover, the congruence x ( x + 1 ) 0 ( mod p ) has only two solutions, since p is prime:

x ( x + 1 ) 0 ( mod p ) p x ( x + 1 ) p x  or  p x + 1 x 0  or  x 1 ( mod p ) .

Therefore N ( p ) = 2 , and Problem 47 gives

ψ ( n ) = n p n ( 1 N ( p ) p ) = n p n ( 1 2 p ) .
b)
If ψ ( n ) = 0 , there is some p n such that 1 2 p = 0 , thus p = 2 n , so n is even.

Conversely, if n is even, then for all integers a , a or a + 1 is even, thus a n > 1 or a ( n + 1 ) > 1 : there is no integer a , 1 a n for which both a n = 1 and a + 1 n = 1 . This shows that ψ ( n ) = 0 .

ψ ( n ) = 0 2 n .

User profile picture
2024-08-18 09:57
Comments