This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LEFT_BOUND = 1 | |
RIGHT_BOUND = 127 | |
NEED_FACTORIAL_IN_DENUMINATOR = True | |
import math | |
import numpy | |
from fractions import * | |
def fact(n): | |
p = 1 | |
for i in range(1,n+1): | |
p*=i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 : 1/1 | |
2 : 1/1 2/2 | |
3 : 2/1 2/2 | |
4 : 1/2 15/6 24/24 | |
5 : 1/2 21/6 24/24 | |
6 : 3/2 21/6 24/24 | |
7 : 3/2 27/6 24/24 | |
8 : 1/6 48/24 580/120 720/720 | |
9 : 1/6 60/24 640/120 720/720 | |
10 : 1/6 84/24 640/120 720/720 |