SlideShare a Scribd company logo
1 of 6
The Adventures of NeveErrong Part 0: The Prequel
From the desk of THE CHIEF Welcome, Agent Errong, We here at G.O.O.D. Agency pride ourselves on the quality of our team.  Before we send you out on any missions, you need some training.  Your mentor will be the talented Agent Al Waysright.  He will guide you though some mathematical and cryptographical whatever-he-does to get you up to speed!  Only then will you have the skills you need in the field.  Listen to Agent Waysright, he’s always... right.  -THE CHIEF Our Headquarters are here, at the United Nations Building in New York, Floor 101.
Modular Arithmetic In cryptology, we often deal with converting letters into numbers and vice-versa.  There are only 26 letters, but infinitely many numbers.  In order to move between the two systems, we will use reduced modular arithmetic.   The result of a modular reduction is basically the whole number remainder of division.   Say we want to reduce N modulo m.  Then, N = m*q+r for some quotient q and some remainder r.  That remainder will be the solution to the reduction of N mod m We use the following vocabulary and notation: We reduce N modulo m.  We will generally use ‘mod,’ as in ‘N mod m,’  or simply a percent sign, N%m
Examples of Modular Arithmetic N%m = r (m goes into N q times with a remainder of r. N = q*m+r) 5%2 = 1 (2 goes into 5 twice with a remainder of 1.  5 = 2*2+1) 10%7 = 3 (7 goes into 10 once with a remainder of 3. 10 = 1*7+3) 10%5 = 0 (5 goes into 10 twice with a remainder of 0. 10 = 2*5+0) 10%3 = 1  (10 = 3*3+1) 23%7 = 2  (23 = 3*7+2) 4%5 = 4  (4 = 0*5+4) 1001%3 = 2 (1001 = 333*3+2) 1001%2 = 1 (1001 = 500*2+1)
Manipulating the Alphabet Each letter of the alphabet represents a number, A=0, B=1, C=2, etc.  Then we can apply math to make a new alphabet.  The simplest is adding 1 to each letter: ABC   0,1,2 Apply the rule, 0,1,2  1,2,3 Translate back, 1,2,3  B,C,D One can also use multiplication.   Try multiply by 7. HI  7,8 Apply the rule, 7,8  49, 56 Reduce modulo 26, 49,56  23, 4 Translate back, 23,4  X, E Two questions: why do we start at A=0, not A=1; Also, if we multiply our code by some certain numbers, it fails.  Which numbers work and which don’t?
Which numbers will successfully make a new alphabet when multiplied? Any number which is relatively prime to 26.  Any number not relatively prime to 26 will create over lap.  Example: *2 CP  2,15 Apply rule, 2,15  4, 30 Reduce, 4,30  4,4 Translate back, 4,4  EE Two different letters become the same letter.   Exploring codes Why begin at A=0 rather than A=1? We begin at A=0, because  26%26 = 0 (26=1*26+0).  If we had A=1, then Z=26, but when reducing modulo 26, one can never have a remainder of 26.

More Related Content

What's hot

Lecture 1 admin & representing fcts
Lecture 1   admin & representing fctsLecture 1   admin & representing fcts
Lecture 1 admin & representing fctsnjit-ronbrown
 
7th pre alg -l23
7th pre alg -l237th pre alg -l23
7th pre alg -l23jdurst65
 
Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10alish sha
 
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2basyirstar
 
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Soumen Santra
 
Ch4 Polynomials
Ch4 PolynomialsCh4 Polynomials
Ch4 Polynomialsapplepi
 
Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500ilsamaryum
 
Laws of Exponents
Laws of ExponentsLaws of Exponents
Laws of Exponentsguest9c5e6b
 
7th math c2 -l43--jan29
7th math c2 -l43--jan297th math c2 -l43--jan29
7th math c2 -l43--jan29jdurst65
 

What's hot (18)

Traveling Salesman Problem
Traveling Salesman Problem Traveling Salesman Problem
Traveling Salesman Problem
 
Inequalities
InequalitiesInequalities
Inequalities
 
Lecture 1 admin & representing fcts
Lecture 1   admin & representing fctsLecture 1   admin & representing fcts
Lecture 1 admin & representing fcts
 
7th pre alg -l23
7th pre alg -l237th pre alg -l23
7th pre alg -l23
 
Lecture28 tsp
Lecture28 tspLecture28 tsp
Lecture28 tsp
 
Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10
 
Check box, image
Check box, imageCheck box, image
Check box, image
 
Division of polynomial
Division of polynomialDivision of polynomial
Division of polynomial
 
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2
Benginning Calculus Lecture notes 13 - fundamental theorem of calculus 1 & 2
 
Numerical methods
Numerical methodsNumerical methods
Numerical methods
 
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
Traveling salesman problem: Game Scheduling Problem Solution: Ant Colony Opti...
 
Fibez spoj
Fibez spojFibez spoj
Fibez spoj
 
Ch4 Polynomials
Ch4 PolynomialsCh4 Polynomials
Ch4 Polynomials
 
Chirp_Mass
Chirp_MassChirp_Mass
Chirp_Mass
 
Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500
 
Laws of Exponents
Laws of ExponentsLaws of Exponents
Laws of Exponents
 
7th math c2 -l43--jan29
7th math c2 -l43--jan297th math c2 -l43--jan29
7th math c2 -l43--jan29
 
9.1 and 9.2
9.1 and 9.29.1 and 9.2
9.1 and 9.2
 

Viewers also liked

Where are we now
Where are we nowWhere are we now
Where are we nowjlklackey
 
The adventures of neve errong
The adventures of neve errongThe adventures of neve errong
The adventures of neve errongChristianSR
 
Multimedia Presentation of Learning Styles
Multimedia Presentation of Learning StylesMultimedia Presentation of Learning Styles
Multimedia Presentation of Learning Styleskristin3k
 
Differentiating Instruction Through The Implementation of UDL
Differentiating Instruction Through The Implementation of UDLDifferentiating Instruction Through The Implementation of UDL
Differentiating Instruction Through The Implementation of UDLMilisa Sammaciccia Ismail, MEd.
 
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...Milisa Sammaciccia Ismail, MEd.
 

Viewers also liked (19)

Febin Birthday
Febin BirthdayFebin Birthday
Febin Birthday
 
Errong2
Errong2Errong2
Errong2
 
Where are we now
Where are we nowWhere are we now
Where are we now
 
Section 9 of 64 b4, Eaton
Section 9 of 64 b4, EatonSection 9 of 64 b4, Eaton
Section 9 of 64 b4, Eaton
 
The adventures of neve errong
The adventures of neve errongThe adventures of neve errong
The adventures of neve errong
 
Managing Change
Managing ChangeManaging Change
Managing Change
 
Higher Education - A Survival Guide
Higher Education - A Survival GuideHigher Education - A Survival Guide
Higher Education - A Survival Guide
 
Errong3
Errong3Errong3
Errong3
 
Student Development Philosophy
Student Development PhilosophyStudent Development Philosophy
Student Development Philosophy
 
Professional Development: Differentiated Instruction
Professional Development: Differentiated InstructionProfessional Development: Differentiated Instruction
Professional Development: Differentiated Instruction
 
Multimedia Presentation of Learning Styles
Multimedia Presentation of Learning StylesMultimedia Presentation of Learning Styles
Multimedia Presentation of Learning Styles
 
Problem Students
Problem StudentsProblem Students
Problem Students
 
Instructors Who Differentiate Instruction
Instructors Who Differentiate InstructionInstructors Who Differentiate Instruction
Instructors Who Differentiate Instruction
 
Differentiating Instruction Through The Implementation of UDL
Differentiating Instruction Through The Implementation of UDLDifferentiating Instruction Through The Implementation of UDL
Differentiating Instruction Through The Implementation of UDL
 
Strategies in Differentiated Instruction
Strategies in Differentiated InstructionStrategies in Differentiated Instruction
Strategies in Differentiated Instruction
 
Student Development Training Session
Student Development Training SessionStudent Development Training Session
Student Development Training Session
 
Effective Pedagogy
Effective PedagogyEffective Pedagogy
Effective Pedagogy
 
Student Centric Education Models for the 21st Century
Student Centric Education Models for the 21st CenturyStudent Centric Education Models for the 21st Century
Student Centric Education Models for the 21st Century
 
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...
The Paradigm Shift: Migrating from Teacher-Centered to Student-Centered Instr...
 

Similar to The Adventures of NeveErrong: Learning Modular Arithmetic

Introduction to Dynamic Programming.pptx
Introduction to Dynamic Programming.pptxIntroduction to Dynamic Programming.pptx
Introduction to Dynamic Programming.pptxPochupouOwo
 
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...ErickConcepcion9
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematicalAditi Saxena
 
10 easy arithmetic tricks
10 easy arithmetic tricks10 easy arithmetic tricks
10 easy arithmetic trickshome
 
tutorial5.ppt
tutorial5.ppttutorial5.ppt
tutorial5.pptjvjfvvoa
 
Stanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programmingStanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programmingYu-Sheng (Yosen) Chen
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 
The Man, The Myth, The Mandelbrot Theory
The Man, The Myth, The Mandelbrot TheoryThe Man, The Myth, The Mandelbrot Theory
The Man, The Myth, The Mandelbrot TheoryAl Urasek
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Prashant Khandelwal
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptxsulekhasaxena2
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docxGEETHAR59
 
Creative Coding 1 - 1 Introduction
Creative Coding 1 - 1 IntroductionCreative Coding 1 - 1 Introduction
Creative Coding 1 - 1 IntroductionTill Nagel
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019Robert Geofroy
 
Lec23-CS110 Computational Engineering
Lec23-CS110 Computational EngineeringLec23-CS110 Computational Engineering
Lec23-CS110 Computational EngineeringSri Harsha Pamu
 
GRADE 5 SESSION 1.pptx
GRADE 5 SESSION 1.pptxGRADE 5 SESSION 1.pptx
GRADE 5 SESSION 1.pptxLuisSalenga1
 

Similar to The Adventures of NeveErrong: Learning Modular Arithmetic (20)

Introduction to Dynamic Programming.pptx
Introduction to Dynamic Programming.pptxIntroduction to Dynamic Programming.pptx
Introduction to Dynamic Programming.pptx
 
Basic practice of R
Basic practice of RBasic practice of R
Basic practice of R
 
CH4__crypto.pptx
CH4__crypto.pptxCH4__crypto.pptx
CH4__crypto.pptx
 
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...
G7 - Expressing Rational Numbers from Fraction to Decimal Form and vice versa...
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematical
 
10 easy arithmetic tricks
10 easy arithmetic tricks10 easy arithmetic tricks
10 easy arithmetic tricks
 
tutorial5.ppt
tutorial5.ppttutorial5.ppt
tutorial5.ppt
 
Stanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programmingStanford splash spring 2016 basic programming
Stanford splash spring 2016 basic programming
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
The Man, The Myth, The Mandelbrot Theory
The Man, The Myth, The Mandelbrot TheoryThe Man, The Myth, The Mandelbrot Theory
The Man, The Myth, The Mandelbrot Theory
 
Decimals
DecimalsDecimals
Decimals
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem
 
Learning R
Learning RLearning R
Learning R
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptx
 
Vedic maths 2
Vedic maths 2Vedic maths 2
Vedic maths 2
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docx
 
Creative Coding 1 - 1 Introduction
Creative Coding 1 - 1 IntroductionCreative Coding 1 - 1 Introduction
Creative Coding 1 - 1 Introduction
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019
 
Lec23-CS110 Computational Engineering
Lec23-CS110 Computational EngineeringLec23-CS110 Computational Engineering
Lec23-CS110 Computational Engineering
 
GRADE 5 SESSION 1.pptx
GRADE 5 SESSION 1.pptxGRADE 5 SESSION 1.pptx
GRADE 5 SESSION 1.pptx
 

Recently uploaded

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

The Adventures of NeveErrong: Learning Modular Arithmetic

  • 1. The Adventures of NeveErrong Part 0: The Prequel
  • 2. From the desk of THE CHIEF Welcome, Agent Errong, We here at G.O.O.D. Agency pride ourselves on the quality of our team. Before we send you out on any missions, you need some training. Your mentor will be the talented Agent Al Waysright. He will guide you though some mathematical and cryptographical whatever-he-does to get you up to speed! Only then will you have the skills you need in the field. Listen to Agent Waysright, he’s always... right. -THE CHIEF Our Headquarters are here, at the United Nations Building in New York, Floor 101.
  • 3. Modular Arithmetic In cryptology, we often deal with converting letters into numbers and vice-versa. There are only 26 letters, but infinitely many numbers. In order to move between the two systems, we will use reduced modular arithmetic. The result of a modular reduction is basically the whole number remainder of division. Say we want to reduce N modulo m. Then, N = m*q+r for some quotient q and some remainder r. That remainder will be the solution to the reduction of N mod m We use the following vocabulary and notation: We reduce N modulo m. We will generally use ‘mod,’ as in ‘N mod m,’ or simply a percent sign, N%m
  • 4. Examples of Modular Arithmetic N%m = r (m goes into N q times with a remainder of r. N = q*m+r) 5%2 = 1 (2 goes into 5 twice with a remainder of 1. 5 = 2*2+1) 10%7 = 3 (7 goes into 10 once with a remainder of 3. 10 = 1*7+3) 10%5 = 0 (5 goes into 10 twice with a remainder of 0. 10 = 2*5+0) 10%3 = 1 (10 = 3*3+1) 23%7 = 2 (23 = 3*7+2) 4%5 = 4 (4 = 0*5+4) 1001%3 = 2 (1001 = 333*3+2) 1001%2 = 1 (1001 = 500*2+1)
  • 5. Manipulating the Alphabet Each letter of the alphabet represents a number, A=0, B=1, C=2, etc. Then we can apply math to make a new alphabet. The simplest is adding 1 to each letter: ABC  0,1,2 Apply the rule, 0,1,2  1,2,3 Translate back, 1,2,3  B,C,D One can also use multiplication. Try multiply by 7. HI  7,8 Apply the rule, 7,8  49, 56 Reduce modulo 26, 49,56  23, 4 Translate back, 23,4  X, E Two questions: why do we start at A=0, not A=1; Also, if we multiply our code by some certain numbers, it fails. Which numbers work and which don’t?
  • 6. Which numbers will successfully make a new alphabet when multiplied? Any number which is relatively prime to 26. Any number not relatively prime to 26 will create over lap. Example: *2 CP  2,15 Apply rule, 2,15  4, 30 Reduce, 4,30  4,4 Translate back, 4,4  EE Two different letters become the same letter. Exploring codes Why begin at A=0 rather than A=1? We begin at A=0, because 26%26 = 0 (26=1*26+0). If we had A=1, then Z=26, but when reducing modulo 26, one can never have a remainder of 26.