Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.1.1 (de Polignac's formula)
Exercise 4.1.1 (de Polignac's formula)
What is the highest power of dividing ? The highest power of 3? The highest power of 6? The highest power of ? The highest power of ?
Answers
Proof.
- (a)
-
Using Theorem 4.1(6), the de Polignac’s formula (Theorem 4.2) gives
Here
The sum of these results is
- (b)
- Similarly (see the Python program in the note below),
- (c)
- By parts (a) and (b), the decomposition of in primes begins with , thus , but . Therefore the highest power of dividing is
- (d)
- Since , where , the highest power of dividing is .
- (e)
- As in part (c), the highest power of dividing is
Note: We use the iterative Python program, based on formula (1)
def polignac(n, p): som = 0 N = n while N != 0: N = N // p som += N return som polignac(533, 3) 263
Recursive version:
def polignac_rec(n, p): if n <= 1: return 0 else: v = n // p return v + polignac_rec(v, p)
The de Polignac’s formula is due to Legendre (1830).