Cyclic behaviour
This chapter delves into the fundamental principles of cyclic behaviour within Number Theory, providing essential tools for analyzing repeating patterns in integers and sequences. A strong grasp of these concepts, encompassing residue class reasoning, periodicity, and modular exponentiation, is critical for successfully tackling advanced problems in the CMI examinations.
Chapter Contents
|
| Topic |
|---|-------| | 1 | Residue class reasoning | | 2 | Periodicity | | 3 | Powers modulo n | | 4 | Last digit problems |We begin with Residue class reasoning.
Part 1: Residue class reasoning
Residue Class Reasoning
Overview
Residue class reasoning means solving a number theory problem by splitting integers according to their remainders modulo some fixed number. Instead of working with all integers at once, we work with a small number of residue classes. This method is especially useful for impossibility proofs, quadratic residue checks, and pattern detection. ---Learning Objectives
After studying this topic, you will be able to:
- Use residue classes modulo to simplify number-theoretic problems.
- Test expressions by checking all possible residues.
- Prove impossibility statements using modular contradictions.
- Recognise the common residues of squares, cubes, and simple polynomial expressions.
- Choose a useful modulus intelligently.
Core Idea
Modulo , every integer belongs to exactly one residue class
So to understand a number-theoretic statement modulo , it is enough to check these finitely many cases.
Standard Residue Sets
- modulo : squares are
- modulo : squares are
- modulo : squares are
- modulo : squares are
- modulo : squares are
Choosing a Modulus
Good choices often come from:
- parity modulus
- squares or even/odd structure modulus or
- divisibility by modulus
- last digit or decimal patterns modulus
- quadratic forms modulus
Minimal Worked Examples
Example 1 Can ever be congruent to modulo ? Squares modulo are only So is impossible. --- Example 2 Show that no integer square is of the form . Modulo , a square is always or So it can never be Hence no square is of the form . --- Example 3 Determine all residues of Check residues:- if , then
- if , then
- if , then
Impossibility by Residues
To prove an equation has no integer solution:
- reduce both sides modulo a suitable integer
- list all possible residues of each side
- show they cannot match
Common Patterns
- prove a number is not a square
- prove an equation has no integer solution
- classify possible remainders of a sequence
- show divisibility or non-divisibility
- reduce a polynomial expression modulo a small number
Common Mistakes
- โ Choosing a modulus that gives no useful restriction
- โ Forgetting to test all residue classes
- โ Assuming all residues occur for squares or cubes
- โ Mixing ordinary equality with congruence
CMI Strategy
- Look for structure: square, cube, parity, divisibility, last digit.
- Choose a small modulus that sharply restricts possibilities.
- Compute the possible residue set.
- Compare with the claimed form.
- Use contradiction if the target residue is impossible.
Practice Questions
:::question type="MCQ" question="Which of the following can be a square modulo ?" options=["","","","Only and "] answer="A" hint="List the square residues modulo ." solution="Squares modulo are only So among the listed options, can occur, but and cannot. Hence the correct option is ." ::: :::question type="NAT" question="Find the remainder when is divided by if ." answer="0" hint="Substitute the residue directly." solution="If , then Hence the remainder is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["Every square is congruent to or modulo ","Every square is congruent to or modulo ","An integer square can be congruent to modulo ","Residue class reasoning can be used for impossibility proofs"] answer="A,B,D" hint="Use the standard residue lists for squares." solution="1. True.- if , then
- if , then
- if , then
Summary
- Residue classes reduce infinite integer problems to finitely many cases.
- Squares have very restricted residues modulo small integers.
- A good modulus is chosen from the structure of the problem.
- Residue class reasoning is especially strong for impossibility proofs.
- Systematic case-checking is more important than clever algebra here.
---
Proceeding to Periodicity.
---
Part 2: Periodicity
Periodicity
Overview
Periodicity is the study of patterns that repeat after a fixed number of steps. In number theory, this appears in residues, last digits, powers modulo , and cyclic sequences. In harder CMI-style problems, the same idea also appears geometrically: if a process โwraps aroundโ and returns to an old state, then the motion is periodic. The key skill is to convert the problem into a repeating-state model. ---Learning Objectives
After studying this topic, you will be able to:
- Recognize periodic and eventually periodic sequences.
- Find periods of powers modulo and last-digit cycles.
- Use modular arithmetic to detect repetition.
- Interpret wrap-around motion as periodic motion modulo .
- Distinguish rational-slope periodic behaviour from irrational-slope non-repetition.
Core Idea
A sequence is periodic with period if
for all relevant .
The smallest positive such is called the fundamental period.
A sequence is eventually periodic if it becomes periodic after some initial terms.
Why Modulo Sequences Repeat
If a sequence takes values only from a finite set, then some value must repeat. After that, the pattern often becomes periodic.
For example, a sequence modulo can take only residue values.
Powers Modulo
For fixed integers with , the sequence
is eventually periodic.
If , the sequence is often purely periodic from the start, and the smallest positive integer satisfying
is called the order of modulo .
Last-Digit Cycles
Because last digits are just residues modulo , powers of a fixed integer have cyclic last digits.
Examples:
- powers of : with period
- powers of : with period
- powers of : with period
- powers of : with period
Linear Periodicity Modulo
The sequence
is periodic.
Its period is
Geometric Wrap-Around as Modulo
In the square-wrap problem, instead of imagining jumps at the boundary, it is cleaner to let the particle continue in the plane and then look only at its coordinates modulo .
If the slope is , then after horizontal travel , the particle is at
in the unfolded plane.
Inside the square-with-jumps model, the visible position is
where denotes the fractional part of .
When Does the Trajectory Repeat?
A repeated point occurs when
for some .
Let . Then repetition means
Rational vs Irrational Slope
- If the slope is rational, say
- If the slope is irrational, then there is no positive integer for which is an integer, so the trajectory never exactly repeats.
Finite Trajectories in the Wrap Problem
If
with positive coprime integers , then the first repetition occurs after horizontal travel
and vertical rise
So the unfolded straight-line length before repeating is
Integer Lengths of Finite Trajectories
For rational slope in lowest terms, the finite trajectory length is
So integer lengths occur exactly when form a Pythagorean triple.
Minimal Worked Examples
Example 1 Find the period of the last digits of powers of . The last digits go So the period is . --- Example 2 A particle has slope in the wrap-around square model. Since the slope is rational, the trajectory is finite. Here , so the length before return is Hence the finite trajectory length is . ---Common Patterns
- period of last digits of powers
- least such that
- periodicity of linear sequences modulo
- rational vs irrational behaviour in cyclic motion
- integer lengths arising from periodic trajectories
Common Mistakes
- โ assuming every modular sequence is purely periodic from the start
- โ confusing โeventually periodicโ with โperiodicโ
- โ forgetting to reduce the rational slope to lowest terms
- โ treating irrational slope as if it might still return exactly
- โ forgetting that the wrap-around model is really modulo
CMI Strategy
- First identify the repeating state space: mod or mod .
- For power cycles, compute a few terms and look for the smallest return.
- In wrap-around geometry, replace โjumpโ language by fractional parts.
- Check whether the key parameter is rational or irrational.
- For finite trajectory lengths, look for Pythagorean triples.
Practice Questions
:::question type="MCQ" question="The period of the last digits of powers of is" options=["","","",""] answer="D" hint="Write the last digits of ." solution="The last digits are and then the pattern repeats. So the period is . Hence the correct option is ." ::: :::question type="NAT" question="Find the least positive integer such that ." answer="3" hint="Check the small powers of modulo ." solution="We compute: So the least such is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["Every sequence modulo takes values in a finite set","If the slope in the wrap-around square model is irrational, then the trajectory never exactly repeats","If the slope is in lowest terms, then the finite trajectory length is ","A finite trajectory in the wrap-around square model can stop at a point other than "] answer="A,B,C" hint="Use finite-state logic and the rational/irrational split." solution="1. True. Modulo , there are only residue classes.Summary
- Periodicity is repetition after a fixed step size.
- Residues modulo force cyclic behaviour because the state space is finite.
- Powers modulo and last digits are standard periodicity questions.
- Wrap-around motion in a square is periodicity modulo .
- Rational slope gives finite periodic motion; irrational slope gives no exact repetition.
---
Proceeding to Powers modulo n.
---
Part 3: Powers modulo n
Powers modulo
Overview
A sequence of powers modulo almost never behaves randomly for long. Because there are only finitely many residue classes modulo , powers such as eventually become periodic, and when they are usually purely periodic from the start. This topic is central in olympiad-style number theory because it turns enormous exponents into small cycle questions. The most common exam uses are:- finding remainders of large powers,
- counting how many exponents give a certain residue,
- proving divisibility statements of the form ,
- identifying cycle lengths and multiplicative orders.
Learning Objectives
After studying this topic, you will be able to:
- Compute large powers modulo using cyclic patterns.
- Define and use the multiplicative order of modulo .
- Count exponents that hit a particular residue class.
- Use Euler/Fermat ideas to shorten periods.
- Build infinite divisibility families like in special cases.
Core Congruence Language
For integers with , we write
if divides .
If
then for every positive integer ,
Why Cycles Appear
Modulo , there are only possible residue classes. So the sequence
must eventually repeat. After a repeat begins, the sequence becomes periodic.
Multiplicative Order
If , the order of modulo , written , is the smallest positive integer such that
If
then
Standard Example: Powers of modulo
Compute:
So the cycle is
and
- if , then
- if , then
- if , then
Counting Exponents in a Cycle
Suppose powers repeat with period , and you know exactly which exponents modulo give the desired residue. Then the count over a range is just the count of those congruence classes inside the index interval.
Euler and Fermat as Period Bounds
If , then
If is prime and , then
When
If , then powers can behave differently. They may:
- become modulo ,
- stabilize in a smaller set,
- fail to have a multiplicative order.
Example:
and then all later powers stay modulo .
Divisibility of the Form
The statement
is equivalent to
Infinite Family from the PYQ
A very important observation is that all powers of work:
Indeed, one can show
for every .
A valuation argument gives even more:
so in fact
This proves there are infinitely many odd integers such that
Minimal Worked Examples
Example 1 Find the remainder of modulo . Since we reduce the exponent modulo : So Hence the remainder is . --- Example 2 Find the least positive such that Compute: Hence the least such is . ---Common Mistakes
- โ Reducing the base incorrectly before powering.
- โ Using order without checking .
- โ Assuming the cycle length is always instead of a divisor of it.
- โ Missing the exponent when counting visits.
- โ Treating eventual repetition and pure periodicity as the same thing.
CMI Strategy
- Reduce the base modulo first.
- Check whether .
- Compute small powers until a cycle appears.
- If possible, identify the exact order.
- Reduce the exponent modulo the order.
- For counting questions, translate the desired residue into congruence conditions on the exponent.
Practice Questions
:::question type="MCQ" question="The order of modulo is" options=["","","",""] answer="B" hint="Compute powers of modulo until you get ." solution="We compute: So the smallest positive exponent giving is . Hence the correct option is ." ::: :::question type="NAT" question="How many integers with satisfy ?" answer="34" hint="Use the cycle of powers of modulo ." solution="Since , the powers repeat with period , and exactly when From to , the multiples of are This gives Hence the answer is ." ::: :::question type="MSQ" question="Which of the following statements are true? Assume whenever is used." options=["If , then ","If and , then divides ","If , then necessarily ","If , then for all integers "] answer="A,B,D" hint="One statement forgets the minimality condition in the definition of order." solution="1. True, by definition of order.Summary
- Powers modulo are controlled by periodicity.
- When , multiplicative order is the cleanest tool.
- Large exponents should be reduced modulo the order.
- Counting how often a power hits a given residue is a congruence-class counting problem.
- Divisibility questions like are really power-congruence questions.
- The PYQ family gives infinitely many odd integers with .
---
Proceeding to Last digit problems.
---
Part 4: Last digit problems
Last Digit Problems
Overview
Last digit problems are modular arithmetic questions modulo . The key fact is that powers of a fixed integer usually develop a repeating cycle in their last digits. Exam-level questions often look large, but the actual task is small: reduce the base modulo , find the cycle, and locate the required position in that cycle. ---Learning Objectives
After studying this topic, you will be able to:
- Find the last digit of large powers quickly.
- Detect cyclic patterns of units digits.
- Reduce large bases modulo before computing powers.
- Handle expressions involving sums or products of large powers.
- Avoid common mistakes in cycle indexing.
Core Idea
The last digit of an integer is exactly the remainder when is divided by .
So last digit questions are questions modulo .
Standard Cycles
The units digits of powers repeat in short cycles.
- :
- :
- :
- :
- :
- :
- :
- :
These are periodic from onward.
- length : bases ending in
- length : bases ending in
- length : bases ending in
Standard Method
- Reduce the base modulo .
- Write the last-digit cycle of its powers.
- Find the exponent modulo the cycle length.
- Read off the correct term of the cycle.
Minimal Worked Examples
Example 1 Find the last digit of . The cycle for is This has length . Now So has the same last digit as the first term of the cycle, which is . --- Example 2 Find the last digit of . Since , this is the same as the last digit of . The cycle for is and So we take the fourth term, which is . ---Sums and Products
For sums and products:
- find the last digit of each part separately
- then combine modulo
Example:
last digit of
Compute:
- : cycle length , and , so last digit is
- : cycle length , and , so last digit is
So total last digit is
Common Mistakes
- โ Using the exponent directly instead of reducing modulo cycle length
- โ Forgetting that remainder means the last term of the cycle
- โ Not reducing the base modulo
- โ Confusing cycle position with exponent value
CMI Strategy
- Throw away all digits except the last digit of the base.
- Memorise the cycles for and the short cycles for .
- Treat exponent remainder carefully.
- For sums or products, compute component-wise modulo .
Practice Questions
:::question type="MCQ" question="The last digit of is" options=["","","",""] answer="A" hint="Use the cycle for powers of ." solution="The last digits of powers of are with period . Since , we take the 4th term of the cycle, which is . Hence the correct option is ." ::: :::question type="NAT" question="Find the last digit of ." answer="2" hint="Use the cycle of powers of ." solution="The last digits of powers of are with period . Since , the last digit is the 1st term of the cycle, which is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["The last digit of a number is its remainder modulo ","The powers of always end in ","The powers of have cycle length ","To find the last digit of , it is enough to study "] answer="A,B,D" hint="Use the standard last-digit cycles." solution="1. True.Summary
- Last digit problems are modular arithmetic modulo .
- Power last digits repeat in short cycles.
- Reduce the base modulo first.
- Reduce the exponent modulo the cycle length.
- Combined expressions are handled term by term modulo .
---
Chapter Summary
- Residue Classes: The integers are partitioned into distinct residue classes modulo , denoted , where .
- Modular Arithmetic: Operations of addition, subtraction, and multiplication are well-defined on residue classes. Division is possible if the divisor is coprime to the modulus.
- Periodicity of Powers: For any integer and modulus , the sequence of powers eventually becomes periodic.
- Order of an Element: If , the order of modulo , denoted , is the smallest positive integer such that . This order always divides .
- Euler's Totient Theorem: For integers and with , , where is Euler's totient function, counting positive integers up to that are coprime to .
- Fermat's Little Theorem: A special case of Euler's Theorem: if is a prime number, then for any integer not divisible by , .
- Applications: These principles are fundamental for simplifying large exponents in modular arithmetic, solving certain types of congruences, and determining the last digits of numbers.
---
Chapter Review Questions
:::question type="MCQ" question="What is the last digit of ?" options=["1","3","7","9"] answer="1" hint="Consider the powers of 3 modulo 10 and identify the cycle length." solution="We need to find .
The powers of 3 modulo 10 follow a cycle:
The cycle length is 4.
To find , we need to find .
with a remainder of 0.
Since the remainder is 0, we use the last element in the cycle (which corresponds to an exponent of 4).
So, .
The last digit is 1."
:::
:::question type="NAT" question="Find the smallest positive integer such that ." answer="8" hint="To isolate , you need to find the multiplicative inverse of 5 modulo 11." solution="We need to solve .
First, find the multiplicative inverse of . We are looking for an integer such that .
By inspection or Extended Euclidean Algorithm:
Since , the inverse of 5 modulo 11 is 9.
Multiply both sides of the congruence by 9:
Since (as ) and (as ):
.
The smallest positive integer is 8."
:::
:::question type="MCQ" question="Which of the following is the order of modulo ?" options=["3","4","6","12"] answer="4" hint="The order must divide . Test powers of 5 modulo 13." solution="We need to find .
Since 13 is a prime number, . The order must divide 12. The possible orders are 1, 2, 3, 4, 6, 12.
Let's compute powers of 5 modulo 13:
The smallest positive integer for which is 4.
Therefore, the order of modulo is 4."
:::
:::question type="NAT" question="Find the remainder when is divided by ." answer="1" hint="Apply Fermat's Little Theorem or Euler's Totient Theorem." solution="We need to find .
Since 17 is a prime number and , we can use Fermat's Little Theorem.
Fermat's Little Theorem states that for prime and integer not divisible by .
Here, and , so .
Now we need to simplify the exponent 200 using the cycle length 16:
with a remainder of .
So, .
Then, .
Since :
Now, calculate :
.
Therefore, the remainder when is divided by is 1."
:::
---
What's Next?
Having mastered cyclic behaviour, you are well-prepared for deeper topics in Number Theory. The principles of modular arithmetic and periodicity are foundational for understanding Diophantine Equations (particularly linear congruences and their solutions), exploring Primitive Roots (elements whose order is ), and delving into Quadratic Residues and the Law of Quadratic Reciprocity. These concepts are also indispensable for advanced studies in Cryptography, where cyclic groups and modular exponentiation form the bedrock of public-key systems like RSA.