Calculating with vectors Compute the following values The va
Calculating with vectors. Compute the following values. The value of N will be randomized at each submission, and will be created by the auto grader. Do not modify the given value of N. Compute the mathematical expression below and store the result in the variable named x. 3/1 + 5/2 + 7/3 + 9/4 + ... + 2N + 1/N Compute the mathematical expression below and store the result in the variable named y. 3/2 + 3/4 + 3/8 + ... + 3/2^N
Solution
Sn= 3[ 1/2+1/4+ 1/2n]
the term inside the bracket is a G P
whose 1 st term is 1/2 and common ration is 1/2
Sn= 3 [ 1- ( 1/2 )n ] / (1-1/2)
= 3 [ 1- ( 1/2 )n ] 2
=6 [ 1- ( 1/2 )n ]
