# Block 1 computes the summation: Sum_{j = 0}^17 (3j + 2) sum = 0 for j in range(0,18): sum = sum + (3*j + 2) print('Sum_{j = 0}^17 (3j + 2) = ' + str(sum)) print(' ') # Block 2 computes the summation: Sum_{j = 0}^17 3j + 2 sum = 0 for j in range(0,18): sum = sum + 3*j sum = sum + 2 print('Sum_{j = 0}^17 3j + 2 = ' + str(sum)) print(' ') # Block 3 computes the summation: Sum_{j = -2}^4 (2j + 1)^2 sum = 0 # Add your code here print('Sum_{j = -2}^4 (2j + 1)^2 = ' + str(sum)) print(' ') # Block 4 computes the summation: Sum_{j = -1}^8 2^{j+4} + 17 sum = 0 # Add your code here print('Sum_{j = -1}^8 2^{j+4} + 17 = ' + str(sum)) print('8201 ') # Block 5 computes the sum of the even integers between 5 and 17 sum = 0 # Add your code here print('The the sum of the even integers between 5 and 17 is ' + str(sum)) print('')
# Block 1 computes the summation: Sum_{j = 0}^17 (3j + 2)
sum = 0
for j in range(0,18):
sum = sum + (3*j + 2)
print('Sum_{j = 0}^17 (3j + 2) = ' + str(sum))
print(' ')
# Block 2 computes the summation: Sum_{j = 0}^17 3j + 2
sum = 0
for j in range(0,18):
sum = sum + 3*j
sum = sum + 2
print('Sum_{j = 0}^17 3j + 2 = ' + str(sum))
print(' ')
# Block 3 computes the summation: Sum_{j = -2}^4 (2j + 1)^2
sum = 0
# Add your code here
print('Sum_{j = -2}^4 (2j + 1)^2 = ' + str(sum))
print(' ')
# Block 4 computes the summation: Sum_{j = -1}^8 2^{j+4} + 17
sum = 0
# Add your code here
print('Sum_{j = -1}^8 2^{j+4} + 17 = ' + str(sum))
print('8201 ')
# Block 5 computes the sum of the even integers between 5 and 17
sum = 0
# Add your code here
print('The the sum of the even integers between 5 and 17 is ' + str(sum))
print('')
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images