> Does the fact that the program can have more than one answer if a = 1 have any bearing?
I don't think so.
I know that the sum is implemented in Mathcad in a (mathematical) wrong way. In Math a sum with an upper limit lower than the lower limit should return zero. But thats implemented differently in Mathcad (in a way more related to programming).
But this should not be a problem here, because the sum is only evaluated, when a and b are greater than 1. Otherwise the "return 1" statement stops further evaluation.
Nevertheless I also tried using an otherwise statement, but to no avail.
WE