Skip to content

Instantly share code, notes, and snippets.

View brezhart's full-sized avatar
🏠
Working from home

brezhart

🏠
Working from home
View GitHub Profile
@brezhart
brezhart / coeffs.txt
Created March 9, 2022 17:37
Coefficients
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
@brezhart
brezhart / calcCoeffs.py
Created March 9, 2022 17:39
calculating coefficients
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