Académique Documents
Professionnel Documents
Culture Documents
ENGINEERS
Step A U V P
1 4 0 19 23
2, 5 2
6 38
7 15
1 2 0 15 23
2, 5 1
6 30
7 7
1 1 0 7 23
2,5 7
6 14
7
8 7
Your answer that return by U should be 7, which is same with manual calculation.
2. After you have proven your understanding of the modular multiplication algorithm, draw
the flowchart according to the algorithm.
Start
Yes
A=0?
No
No 𝐴0 =1?
U
Yes
End
U=U+V
No
U≥P?
Yes
U=U-P
A=A/2
V=2V
No
V≥P?
Yes
V=V-P