tough and tricky questions : remainders . 1 ^ 1 + 2 ^ 2 + 3 ^ 3 + . . . + 7 ^ 7 is divided by 7 . what is the remainder ?
import math
n0 = 1.0
n1 = 1.0
n2 = 2.0
n3 = 2.0
n4 = 3.0
n5 = 3.0
n6 = 7.0
n7 = 7.0
n8 = 7.0
t0 = n0 + 4.0
t1 = 2.0 + 4.0
t2 = 1.0 + 4.0
t3 = n6 + t0
t4 = t3 + t1
t5 = t4 + t2
t6 = t5 + t1
t7 = t6 + 3.0
t8 = t7 / n6
t9 = math.floor(t8)
t10 = n6 * t9
answer = t7 - t10
print(answer)