Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- def sum_1(b, c):
- result = 0
- for j in range(1, b+1):
- result += (8 * pow((pow(j, 3) - 70 * c - 70 * pow(j, 2)), 2))
- return result
- def mul_1(n, b):
- result = 1
- for c in range(1, n+1):
- result *= sum_1(b, c)
- return result
- def sum_3(a, c):
- result = 0
- for j in range(1, a+1):
- result += (pow(abs(c), 3) + 35 * pow(j, 6))
- return result
- def sum_4(n, a):
- result = 0
- for c in range(1, n+1):
- result += sum_3(a, c)
- return result
- def main(b, n, a):
- result = mul_1(n, b) + sum_4(n, a)
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement