Y by
Find , where are triples of positive integers.
Tuition increases on November 15th - Enroll soon to lock in current pricing!
for n in range(0,30+1): s=0 for x in range(0,n+1): for y in range(0,int(n/2)+1): for z in range(0,int(n/3)+1): if x+2*y+3*z==n: s=s+x*y*z print("n=",n,"sum=",s)
Something appears to not have loaded correctly.