Dan Heidinga
2004-05-16 01:59:08 UTC
Hi,
I worked out a few extra test cases for this problem, and thought I'd post
them if anyone wants them....
Input: 1 Output: 3
Input: 2 Output: 3
Input: 3 Output: 15
Input: 4 Output: 231
Input: 5 Output: 53391
Input: 6 Output: -1444367953
Input: 7 Output: -1769662785
Input: 8 Output: -867383841
Input: 9 Output: -1436342849
I generated it with Java, and the numbers match, so feel free to enjoy.
Dan
I worked out a few extra test cases for this problem, and thought I'd post
them if anyone wants them....
Input: 1 Output: 3
Input: 2 Output: 3
Input: 3 Output: 15
Input: 4 Output: 231
Input: 5 Output: 53391
Input: 6 Output: -1444367953
Input: 7 Output: -1769662785
Input: 8 Output: -867383841
Input: 9 Output: -1436342849
I generated it with Java, and the numbers match, so feel free to enjoy.
Dan