I’ve been trying to figure out this problem all day, but i’ve failed every time, and i’m very curious as to what the solution is. The first tests are simple but the last ones make it so complex

input: 3 3 5
output:45

input: 2 1 1
output: 2

input: 10 5 7
output:175

input: 2 3 50
output: 3775

if I could just get a hint or anything to possibly point me in the right direction, i’d greatly appreciate it.

I’ve approved this one.
Like a lot of clash, the reverse version is not easy to find. You must have either some luck, a good logic or knowledge of the clash. But i don’t think this one is really harder than that.

Hint 1: Think about sequences
Hint 2: Arithmetic or geometric ?
Hint 3: Multiplication or sum ?

Good luck !

PS: It seems that this clash put a lot of people in trouble, i’ve removed the reverse mode.