while True: print() print(sigma) print orbits = orbitGetter.getOrbits(sigma, rotNumer, rotDenom) layerNums = [] layerCount = [] for orbit in orbits: print(orbit + " : " + str(len(orbitSetGen.genOrbitSet(orbit, sigma, 2)))) if len(orbitSetGen.genOrbitSet(orbit, sigma, 2)) in layerNums: layerCount[layerNums.index( len(orbitSetGen.genOrbitSet(orbit, sigma, 2)))] += 1 else: layerNums.append(len(orbitSetGen.genOrbitSet(orbit, sigma, 2))) layerCount.append(1) print(layerNums) print(layerCount) sigma += 1
orbits = orbitGetter.getOrbits(sigma, numer, denom) data = {} for orbit in orbits: portrait = portraitGen.genPortrait(orbit, sigma) if portrait == "1122": print(orbit) if portrait in data: data[portrait].append(len(orbitSetGen.genOrbitSet(orbit, sigma, 2))) else: data[portrait] = [len(orbitSetGen.genOrbitSet(orbit, sigma, 2))] for portrait in data: s.write(cellY, cellX, portrait) cellY += 1 for numPairs in data[portrait]: s.write(cellY, cellX, numPairs) cellY += 1
cellY = 0 cellX = 0 sigma = int(input("Sigma: ")) numer = int(input("Rot Num Numerator: ")) denom = int(input("Rot Num Denominator: ")) orbits = orbitGetter.getOrbits(sigma, numer, denom) for orbit in orbits: s.write(cellY, cellX, orbit) cellY += 2 orbitPairs = orbitSetGen.genOrbitSet(orbit, sigma, 2) for pair in orbitPairs: if pair[0] == orbit: s.write(cellY, cellX, pair[1]) cellY += 1 else: s.write(cellY, cellX, pair[0]) cellY += 1 cellX += 1 cellY = 0
denom = (sigma**period) - 1 while True: numer = 1 while numer < (period / 2): if gcd.gcd(numer, period) == 1 or numer == 1: orbits = orbitGetter.getOrbits(sigma, numer, period) for i in range(len(orbits)): orbitSet = orbitSetGenSlow2.genOrbitSet(orbits[i], sigma) print(len(orbitSet), orbitSet) if len(orbitSet) == 1: s.write(cellY, cellX, orbitSet[0]) print(orbitSet[0]) cellY += 1 numer += 1 print("Period", period, "done") denom = ((denom + 1) * sigma) - 1
while True: print() print(sigma) print() orbits = orbitGetter.getOrbits(sigma, rotNumer, rotDenom) layerNums = [] layerCount = [] for orbit in orbits: print(orbit + " : " + str(len(orbitSetGen.genOrbitSet(orbit, sigma, 2))) + " : " + portraitGen.genPortrait(orbit, sigma)) if len(orbitSetGen.genOrbitSet(orbit, sigma, 2)) in layerNums: layerCount[layerNums.index( len(orbitSetGen.genOrbitSet(orbit, sigma, 2)))] += 1 else: if layerNums == []: layerNums.append(len(orbitSetGen.genOrbitSet(orbit, sigma, 2))) layerCount.append(1) else: