Chinese reminder theorem

just for fun


Updated 2 Dec 2011

View License

Counting the number of nuts as shown in the photo:
count 3 by 3, reminder: 2
count 5 by 5, reminder: 3
count 7 by 7, reminder: 2
then the requested total number of nuts X can be calculated as follow command:
x = sunzTheorem([2, 3, 2], [3, 5, 7]);
The motivation and key ideas of the program is described in "program guild.pdf",
just throw out the designing ideas in a huristic way not for vigorous proof purpose.

Cite As

Su Dongcai (2023). Chinese reminder theorem (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

supply the "program_guild.pdf" document to explain the motivation and key ideas of the program.