Following a little discussion with Wendell, a little presentation of the Chinese theorem. At the 3rd century, Sun Tsu developed an elegant way to count the number of soldier of the Great Army of China. It makes them be aligned on 13, 17, 19, 23 columns and count only the number of soldier who does not form a complete row: a small diagram to explane on 3 rows:
result: Sun Tsu counts only up to 2… Let us note N the number of soldier of the large army and A the product it a1.a2.a3… the problem is then:
NR = n1 [a1]if a1, a2, a3… are chosen to be prime 2 to 2 then N can be written as:
NR = N2 [a2]
NR = n3 [a3]
...
N=n1.n1.(A/a1) + n2.n2.(A/a2) + n3.n3.(A/a3)...How to calculate e1, e2, e3….? In fact it is very simple: just use the correct identity of Bezout:
e1 such as e1.a1 + n1. (A/a1) = 1from there you can easily check that the solution is the good one modulo A.
and so n1.n1.(A/a1) = 1 [a1]
Voila Wendell: this is the Chinese theorem…
Tags:
No comments:
Post a Comment