Objets/Documentation
recouvrements.py
Témoin reproductible du dossier expérimental.
Télécharger ↓"""First two moments of distinct admissible destinations in a suffix-reversal ball."""
from collections import Counter
from fractions import Fraction as F
from itertools import combinations,permutations
from math import factorial,gcd,prod
import json
from experience import distances,profile
from roues import primes_up_to,rank,unrank
def crt(n,k,depth):
block = factorial(k)
words = [unrank(k,s) for s in range(block)]
units = [s for s in range(block) if gcd(s,block)==1]
primes = [p for p in primes_up_to(n) if p>k]