Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.6.1 (Four consecutive positive integers, each with the property that $r(n) = 0$)
Exercise 3.6.1 (Four consecutive positive integers, each with the property that $r(n) = 0$)
Find four consecutive positive integers, each with the property that .
Answers
Proof. A possible answer is
because and is a prime of the form , is also a prime of the form , , with an exponent greater than , and .
Longer sequences are given by
or
□
The following program, written in Sage, can be used.
def r(n): t = 0 decomposition = True for p, alpha in factor(n): if (p == 2 and alpha >= 2) or (p % 4 == 3): decomposition = False break if p % 4 == 1: t += 1 if decomposition: return 2^(t+2) else: return 0