Although I do not program in Maple, I think there must be something missing or wrong in the Maple program given since it nowhere contains the value 2291? Best, Harvey