Hello,
i'm running Sagemath 8.0 in Jupyter Notebook on Windows 10.
I'm fairly new to Sagemath.
running this:
rrun=2
h2(h2rrunrest)= binomial(h2n-rrun-h2rrunrest-1,h2rrest-h2rrunrest)+h2n
h3(h3rrest)=sum(h2(h3rrunrest,h2rrest=h3rrest,h2n=h3n),h3rrunrest,0,h3rrest)
print(h3(3,h3n=5))
works fine: result: 21
but just adding a multiplication:
rrun=2
h2(h2rrunrest)= 2*binomial(h2n-rrun-h2rrunrest-1,h2rrest-h2rrunrest)+h2n
h3(h3rrest)=sum(h2(h3rrunrest,h2rrest=h3rrest,h2n=h3n),h3rrunrest,0,h3rrest)
print(h3(3,h3n=5))
I get: sum(5, h3rrunrest, 0, 3) instead of the result 22 (5+5+5+7).
But didn't work for me. I'm not sure why.
Thanks!