One only needs a small change in the code
def gen_result(number, divisors):
total = sum(divisors)
acc = 0
for i, d in enumerate(divisors):
num2 = number * d / total
for d2 in divisors[i:] + divisors[:i]:
acc += num2 * d2 / total
yield [number, num2, acc]
for item in gen_result(500, [5, 6, 9]):
print('{} {} {}'.format(*item))