.. _sphx_glr_api_gallery_number_theory_crt:
Chinese Remainder Theorem
----------------------------
Combining congruences with pairwise-coprime moduli.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/number_theory/crt/images/thumb/sphx_glr_plot_01_sunzi_problem_thumb.png
:alt:
:doc:`/api/gallery/number_theory/crt/plot_01_sunzi_problem`
.. raw:: html
Sunzi's classic "remainder problem"
.. raw:: html
.. only:: html
.. image:: /api/gallery/number_theory/crt/images/thumb/sphx_glr_plot_02_gauss_congruences_thumb.png
:alt:
:doc:`/api/gallery/number_theory/crt/plot_02_gauss_congruences`
.. raw:: html
Gauss's Disquisitiones: congruences and the remainder theorem
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/number_theory/crt/plot_01_sunzi_problem
/api/gallery/number_theory/crt/plot_02_gauss_congruences