Example 4.  Application to number theory.
4 (a).  Find the formula for the sum of the first  n  integers.
4 (b).  Find the formula for the sum of the squares of the first  n integers.  

Solution 4.

4 (a).  Find the formula for the sum of the first  n  integers.

[Graphics:../Images/NewtonPolyMod_gr_373.gif]


[Graphics:../Images/NewtonPolyMod_gr_374.gif]

[Graphics:../Images/NewtonPolyMod_gr_375.gif]

[Graphics:../Images/NewtonPolyMod_gr_376.gif]

Notice that the divided difference table has zeros for the 2nd and higher order differences.  

[Graphics:../Images/NewtonPolyMod_gr_377.gif]

1

3

2

6

3

[Graphics:../Images/NewtonPolyMod_gr_378.gif]

10

4

[Graphics:../Images/NewtonPolyMod_gr_379.gif]

0

15

5

[Graphics:../Images/NewtonPolyMod_gr_380.gif]

0

0

Thus the formula for the sum of the first n integers is:        

[Graphics:../Images/NewtonPolyMod_gr_381.gif]

[Graphics:../Images/NewtonPolyMod_gr_382.gif]

Compare this formula with Mathematica's knowledge.    

[Graphics:../Images/NewtonPolyMod_gr_383.gif]

[Graphics:../Images/NewtonPolyMod_gr_384.gif]

4 (b).  Find the formula for the sum of the squares of the first  n  integers is:

[Graphics:../Images/NewtonPolyMod_gr_385.gif]


[Graphics:../Images/NewtonPolyMod_gr_386.gif]

[Graphics:../Images/NewtonPolyMod_gr_387.gif]

[Graphics:../Images/NewtonPolyMod_gr_388.gif]

Notice that the divided difference table has zeros for the 3rd and higher order differences.

[Graphics:../Images/NewtonPolyMod_gr_389.gif]

0

1

1

5

4

[Graphics:../Images/NewtonPolyMod_gr_390.gif]

14

9

[Graphics:../Images/NewtonPolyMod_gr_391.gif]

[Graphics:../Images/NewtonPolyMod_gr_392.gif]

30

16

[Graphics:../Images/NewtonPolyMod_gr_393.gif]

[Graphics:../Images/NewtonPolyMod_gr_394.gif]

0

55

25

[Graphics:../Images/NewtonPolyMod_gr_395.gif]

[Graphics:../Images/NewtonPolyMod_gr_396.gif]

0

0

Thus the formula for the sum of the squares of the first  n  integers is:        

[Graphics:../Images/NewtonPolyMod_gr_397.gif]

[Graphics:../Images/NewtonPolyMod_gr_398.gif]


[Graphics:../Images/NewtonPolyMod_gr_399.gif]

[Graphics:../Images/NewtonPolyMod_gr_400.gif]

Compare this formula with Mathematica's knowledge.    

[Graphics:../Images/NewtonPolyMod_gr_401.gif]

[Graphics:../Images/NewtonPolyMod_gr_402.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004