04-23-2023, 04:36 PM
(This post was last modified: 04-23-2023, 04:36 PM by Kernelpanic.)
@bplu & @jack Thanks. - I suspected that it was due to an explicitly specified termination condition, but it's still not really clear to me why it doesn't work without it.
With each call, n is decremented until n = 0, and then . . . the program gets off track. - Well, it doesn't work without a defined termination condition.
In Julia it works now too. And I have spent a few hours with the manual and trying things like (n::BigInt) etc.
@mnrvovrfc, the result is correct.
With each call, n is decremented until n = 0, and then . . . the program gets off track. - Well, it doesn't work without a defined termination condition.
In Julia it works now too. And I have spent a few hours with the manual and trying things like (n::BigInt) etc.
@mnrvovrfc, the result is correct.