Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.4.24* (Sum of the first $n$ terms of the sequence $0, 1, 1,2,2,3,3,4,4,\ldots$)
Exercise 4.4.24* (Sum of the first $n$ terms of the sequence $0, 1, 1,2,2,3,3,4,4,\ldots$)
Let be the sum of the first terms of the sequence . Construct a table for . Prove that . For integers and with , prove that . Thus the process of multiplication can be replaced by an addition, a subtraction, looking up two numbers in the table, and subtracting them.
Answers
Proof.
Some values of :
By convention, we define .
- (a)
-
We note that
for all
, and
We shaw first that for all ,
We write , where or . Then
(So a discrete primitive of is .)
Therefore, for all
This shows that for all ,
- (b)
-
We write
Then by (1),
Moreover
since both members are if or , and both are if . Therefore
This shows that
For instance, using the preceding table
No need to learn multiplication tables anymore ! □