Algorithmic Number Theory and Cryptography (CS 300)
Announcments Lectures Programs
Course Resources Assignments
and Solutions Grading Policy
 Course Description
Covers fundamental algorithms for integer arithmetic, greatest
common divisor calculation, modular arithmetic, and other number
theoretic computations. Algorithms are derived, implemented and
analyzed for primality testing and integer factorization.
Applications to cryptography are explored including symmetric and
publickey cryptosystems. A cryptosystem will be implemented and
methods of attack investigated.
 Course Goals
To be able to implement and analyze algorithms for integer
factorization and primality testing. To be able to use a system
like Maple to explore concepts and theorems from number theory.
To understand fundamental algorithms from symmetric key and public
key cryptography.
 Course Objectives
 To understand fundamental number theoretic algorithms such as the
Euclidean algorithm, the Chinese Remainder algorithm, binary powering,
and algorithms for integer arithmetic.
 To understand fundamental algorithms for symmetric key and public
key cryptography.
 To understand the number theoretic foundations of modern
cryptography and the principles behind their security.
 To implement and analyze cryptographic and number theoretic
algorithms.
 To be able to use Maple to explore mathematical concepts and
theorems.
 Audience
 Undergraduate computer science, computer engineering,
mathematics, and students interested in security, cryptography and
applied number theory. The course will cover both the underlying
mathematical theory and practice as algorithms will be implemented
and analyzed (the Maple computer algebra system will be used for
implementation of algorithms and exploration of concepts). For
computer science students, the course counts towards the numeric and
symbolic computing and computer and network security tracks.
 Prerequisites
 Undergraduate data structures course (CS 260)
 Courses in linear algebra (MATH 201 or equivalent), discrete
mathematics (MATH 221 or equivalent).
 Instructor
 Jeremy Johnson
Office: 100C University Crossings
phone: (215) 8952669
email: jjohnson AT cs DOT drexel DOT edu
office hours: R24. Additional hours by appointment.
 TA
 Lingchuan Meng
Office: Univ. Crossings 147 (CS Student Resource Center)
email: lingchuan DOT meng AT drexel DOT edu
office hours: TF 2:004:00.
 Meeting Time
 TR 12:302:00 in Univ. Crossings 153
 Course Mailing List
 BbVista will be used for discussion and announcements

Please use the discussion groups for questions and discussions related to the
course. If you know the answer to someone's question, please feel free
to jump in, as long as well it is not an answer to a homework problem.
You should check the discussion and announcements regularly.
Please do NOT post answers to homework.
 Textbook
 David M. Bressoud, Factorization and Primality Testing,
Springer, 1989.
 Every student must have access to Maple version 11.
Course notes will be provided on the web page as Maple
worksheets that can not be read without Maple.
Maple is available in the CS labs as well as Drexel labs,
and is available for free to Drexel students as part of
the campus site license.
 Students will be required to read several additional
papers.
Topics
 Maple Computer Algebra System
 Integer and polynomial arithmetic
 Euclidean algorithm and continued fractions
 Modular Arithmetic, Fermat's theorem, Chinese Remainder Theorem
 Symmetric key cryptosystems (DES, AES)
 Publickey cryptosystems (RSA, El Gamel)
 Coin flipping protocols (Blum)
 Primality testing
 Algorithms for integer factorization
Grading
 Class Participation (15%)
 Three Homework assignments (45%)
 Two Quizes (40%)
Assignments and exams will be returned on a regular basis to provide
feedback to students. All students must do their own work. Any
violation of this will result in a zero grade for the assignment. A
second violation will lead to an F for the course.
Grades are based on a curve with the mean normalized to a B provided
the mean performance shows competency of the material.
Resources
 Reference Books
 Maple Getting Started Guide.
 Maple Users Manual.
 Maple Introductory Programming Guide.
 Maple Advanced Programming Guide.
 Web Pages
 Waterloo Maple
 Maple Student Center
 Maple
Essentials
 Maple
Programming
 Maple Application Center
 SymbolicNet 
Symbolic Mathematical Computation Information Center
 The Prime Pages
 GIMPS: The Great Internet
Mersenne Prime Search
Look Here for Important
Announcements
Look on BbVista for course announcements.
Lectures
This list is subject to change.
 Week 1 (Chapter 1)
 April 1, 2008
(Unique Factorization)
 April 3, 2008
(The Euclidean Algorithm)
 Week 2 (Chapters 1 and 2)
 April 6, 2008
(Analysis of the Euclidean Algorithm)
 April 8, 2008
(The Sieve of Eratosthenes and the Prime Number Theorem)
 Week 3 (Chapter 2)
 April 10, 2008
(Finding Large Primes  Mersenne Primes)
 April 17, 2008
(Fast Integer Multiplication)
 Week 4 (Chapters 34 and additional readings)
 April 22, 2008
(Modular Arithmetic and Fast Powering)
 April 24, 2008
(Modular Arithmetic and Fast Powering)
 Week 5 (Midterm Exam)
 April 29, 2008 (Review)
 May 1, 2008 (Exam 1)
 Week 6 (RSA)
 May 6, 2008
(RSA Public Key Encryption)
 May 8, 2008
(RSA Public Key Encryption)
 Week 7 (Chapter 6, 7, 9)
 May 6, 2008
(Strong Pseudoprimes and a Probabalistic Primality Test)
 May 8, 2008
(Quadratic Reciprocity and the SolovayStrassen Primality Test)
 Week 8 (Chapter 9 and Handouts)
 May 15, 2008
(Primitive Element Theorem)
 May 17, 2008
(Deterministic Primality Testing)
 Week 9 (Chapters 5 and 8)
 May 20, 2008
(Introduction to Integer Factorization Algorithms)
 May 22, 2008
(The Quadratic Sieve)
 Week 10 (TBD)
 May 29, 2008
(TBD)
 June 8, 2006
(TBD)
Programs and Worksheets
Assignments and Exams
 Assignment 1  assign1.mw (15%)  Due Sunday April 20 at midnight.
 Assignment 2  assign2.mw (15 %)  Due Tue. May 20 at midnight.
 Assignment 3  Assignment 3 (20 %)  TBD.
 Exam 1  Studyguide 1 (20%)  in class on Thur. May 1
 Exam 2  Midterm 2 (20%)  Take home exam to be done with Maple, due Tue. June 3 at midnight.
 In class lab (in lieu of assignment 3) 
final_lab.mw, Thur. June 5.
Solutions
Created: 9/26/05 (revised) by jjohnson@cs.drexel.edu