Receber por email
← Voltar para o catálogo

modular-arithmetic

Estratégias de resolução de problemas para aritmética modular em teoria dos números de grafos.

3.8kestrelas
Atualizado há 9 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add parcadei/Continuous-Claude-v3

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/modular-arithmetic/svg)](https://www.skillteca.com.br/skills/modular-arithmetic)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Modular Arithmetic

When to Use

Use this skill when working on modular-arithmetic problems in graph number theory.

Decision Tree

  1. Extended Euclidean Algorithm
  2. Find gcd(a,b) and x,y with ax + by = gcd(a,b)
  3. Modular inverse: a^{-1} mod n when gcd(a,n) = 1
  4. sympy_compute.py solve "a*x == 1 mod n"
  1. Chinese Remainder Theorem
  2. System x = a_i (mod m_i) with coprime m_i
  3. Unique solution mod prod(m_i)
  4. z3_solve.py prove "crt_solution_exists"
  1. Euler's Theorem
  2. a^{phi(n)} = 1 (mod n) when gcd(a,n) = 1
  3. phi(p^k) = p^{k-1}(p-1)
  4. sympy_compute.py simplify "euler_phi"
  1. Quadratic Residues
  2. Legendre symbol: (a/p) = a^{(p-1)/2} mod p
  3. Quadratic reciprocity: (p/q)(q/p) = (-1)^{...}
  4. Tonelli-Shanks for square roots
  1. Order and Primitive Roots
  2. ord_n(a) = smallest k with a^k = 1 (mod n)
  3. Primitive root: ord_n(a) = phi(n)

Tool Commands

Sympy_Mod_Inverse

uv run python -m runtime.harness scripts/sympy_compute.py solve "a*x == 1 mod n" --var x

Z3_Crt

uv run python -m runtime.harness scripts/z3_solve.py prove "solution_exists_iff_pairwise_coprime"

Sympy_Euler_Phi

uv run python -m runtime.harness scripts/sympy_compute.py simplify "phi(p**k) == p**(k-1)*(p-1)"

Z3_Quadratic_Residue

uv run python -m runtime.harness scripts/z3_solve.py prove "legendre_symbol_multiplicative"

Key Techniques

From indexed textbooks:

  • [Graph Theory (Graduate Texts in Mathematics (173))] By N we denote the set of natural numbers, including zero. The set Z/nZ of integers modulo n is denoted by Zn; its elements are written as i := i + nZ. When we regard Z2 = {0, 1} as a eld, we also denote it as F2 = {0, 1}.

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

Compartilhar X LinkedIn