Problem-solving strategies for modular arithmetic in graph number theory
Use this skill when working on modular-arithmetic problems in graph number theory.
Extended Euclidean Algorithm
sympy_compute.py solve "a*x == 1 mod n"Chinese Remainder Theorem
z3_solve.py prove "crt_solution_exists"Euler's Theorem
sympy_compute.py simplify "euler_phi"Quadratic Residues
Order and Primitive Roots
uv run python -m runtime.harness scripts/sympy_compute.py solve "a*x == 1 mod n" --var x
uv run python -m runtime.harness scripts/z3_solve.py prove "solution_exists_iff_pairwise_coprime"
uv run python -m runtime.harness scripts/sympy_compute.py simplify "phi(p**k) == p**(k-1)*(p-1)"
uv run python -m runtime.harness scripts/z3_solve.py prove "legendre_symbol_multiplicative"
From indexed textbooks:
See .claude/skills/math-mode/SKILL.md for full tool documentation.