Note: This problems make uses of the element-to-element property of operations on numeric vectors to calculate pattern summation.

How to do it?:

Sample Codes: You can find similar codes for this assignment here link

Submissions: Submit the link on Github of the assignment to Canvas under Assignment 2.

Problems


  1. Calculate:

\[ S = 1 + 4 + 7 + 10 +... + 100 \]

  1. Calculate:

\[ S = 1^{100} + 2^{100} + 3^{100} +...+100^{100} \]

  1. Calculate:

\[ S = \frac{1}{1\cdot 2}+\frac{1}{2 \cdot 3}+...+\frac{1}{100\cdot 101} \]

  1. Calculate:

\[ S = \frac{1}{1\cdot 2 \cdot 3}+\frac{1}{2 \cdot 3 \cdot 4}+...+\frac{1}{100\cdot 101 \cdot 102} \]

  1. Calculate:

\[ S = 1^1 + 3^3 + 5^5 + 7^7 +....+101^{101} \]