Atelier des rouesLab FR
Objects/Documentation

partitions13.py

I provide the material for check AT.IDX5.

Download ↓
"""Two disjoint residue partitions of a complete short prefix at wheel level 47."""
from math import gcd,prod
import json
from segments12 import PRIMES,segment

def run():
    stop=131072;R=prod(PRIMES);out=[]
    for M in (30,210):
        counts=[]
        for r in range(M):
            if gcd(r,M)!=1:continue
            count=0
            for x in range(r,stop,M):
                if gcd(x,R)==gcd(x+30,R)==1 and all(gcd(x+j,R)>1 for j in range(1,30)):count+=1
            counts.append(count)
        out.append(dict(modulus=M,classes=len(counts),total=sum(counts),counts=counts))

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.