L06_Repeated_Squaring_Examples

L06_Repeated_Squaring_Examples - 2 i mod 19 . I = 3 1 mod...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
More Repeated Squaring Examples Version of March 16, 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Evaluate 2 50 mod 19 . This can be solved by repeated squaring. Set I i = 2 2 i mod 19 . I 0 = 2 1 mod 19 = 2 I 1 = 2 2 mod 19 = I 0 · I 0 mod 19 = 4 I 2 = 2 4 mod 19 = I 1 · I 1 mod 19 = 16 I 3 = 2 8 mod 19 = I 2 · I 2 mod 19 = 9 I 4 = 2 16 mod 19 = I 3 · I 3 mod 19 = 5 I 5 = 2 32 mod 19 = I 4 · I 4 mod 19 = 6
Background image of page 2
2 50 = 2 32 · 2 16 · 2 2 Evaluate 2 50 mod 19 . This can be solved by repeated squaring. Set I i = 2 2 i mod 19 . I 0 = 2 1 mod 19 = 2 I 1 = 2 2 mod 19 = I 0 · I 0 mod 19 = 4 I 2 = 2 4 mod 19 = I 1 · I 1 mod 19 = 16 I 3 = 2 8 mod 19 = I 2 · I 2 mod 19 = 9 I 4 = 2 16 mod 19 = I 3 · I 3 mod 19 = 5 I 5 = 2 32 mod 19 = I 4 · I 4 mod 19 = 6 2 50 mod 19 = I 5 · I 4 · I 1 mod 19 = 6 · 5 · 4 mod 19 = 6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Evaluate 2 41 mod 19 . This can be solved by repeated squaring. Set I i = 2 2 i mod 19 . I 0 = 2 1 mod 19 = 2 I 1 = 2 2 mod 19 = I 0 · I 0 mod 19 = 4 I 2 = 2 4 mod 19 = I 1 · I 1 mod 19 = 16 I 3 = 2 8 mod 19 = I 2 · I 2 mod 19 = 9 I 4 = 2 16 mod 19 = I 3 · I 3 mod 19 = 5 I 5 = 2 32 mod 19 = I 4 · I 4 mod 19 = 6
Background image of page 4
2 41 = 2 32 · 2 8 · 2 1 Evaluate 2 41 mod 19 . This can be solved by repeated squaring. Set I i = 2 2 i mod 19 . I 0 = 2 1 mod 19 = 2 I 1 = 2 2 mod 19 = I 0 · I 0 mod 19 = 4 I 2 = 2 4 mod 19 = I 1 · I 1 mod 19 = 16 I 3 = 2 8 mod 19 = I 2 · I 2 mod 19 = 9 I 4 = 2 16 mod 19 = I 3 · I 3 mod 19 = 5 I 5 = 2 32 mod 19 = I 4 · I 4 mod 19 = 6 2 41 mod 19 = I 5 · I 3 · I 0 mod 19 = 6 · 9 · 2 mod 19 = 13
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Evaluate 3 50 mod 19 . This can be solved by repeated squaring. Set I i = 3
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2 i mod 19 . I = 3 1 mod 19 = 3 I 1 = 3 2 mod 19 = I · I mod 19 = 9 I 2 = 3 4 mod 19 = I 1 · I 1 mod 19 = 5 I 3 = 3 8 mod 19 = I 2 · I 2 mod 19 = 6 I 4 = 3 16 mod 19 = I 3 · I 3 mod 19 = 17 I 5 = 3 32 mod 19 = I 4 · I 4 mod 19 = 4 3 50 = 3 32 · 3 16 · 3 2 Evaluate 3 50 mod 19 . This can be solved by repeated squaring. Set I i = 3 2 i mod 19 . I = 3 1 mod 19 = 3 I 1 = 3 2 mod 19 = I · I mod 19 = 9 I 2 = 3 4 mod 19 = I 1 · I 1 mod 19 = 5 I 3 = 3 8 mod 19 = I 2 · I 2 mod 19 = 6 I 4 = 3 16 mod 19 = I 3 · I 3 mod 19 = 17 I 5 = 3 32 mod 19 = I 4 · I 4 mod 19 = 4 3 50 mod 19 = I 5 · I 4 · I 1 mod 19 = 4 · 17 · 9 mod 19 = 4...
View Full Document

This note was uploaded on 08/25/2010 for the course COMP COMP170 taught by Professor M.j.golin during the Spring '10 term at HKUST.

Page1 / 7

L06_Repeated_Squaring_Examples - 2 i mod 19 . I = 3 1 mod...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online