Use MATLAB to show that the sum of the infinite series I 2
 converges to 
n
=O
n. 
e
2 
• Do this by computing the sum for: 
(a) n = 5, (b) n = 10, (c) n = 50 
For each part create a vector n in which the first element is 0, the increment is 
1 and the last term is 5, 10, or 50. Then use element-by-element calculations to 
create a vector in which the elements are 2
� . Finally, use MATLAB's built-in 
n. 
function sum to sum the series. Compare the values to e
2 
(use format 
long to display the numbers).