Make learning comfortable
Introduction to Number Theory / LEVEL 4 · DIFFICULTY 4/5
Integer Equations and Counts
Combine integer constraints with exact counting.
Choose an island to read its lesson.
STAGE NT 4.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Nonnegative Integer Solutions
Useful preparation: Combining Remainder Conditions
Goal: Understand and apply nonnegative integer solutions.
Before you begin: Combining Remainder Conditions
Understand the idea
Integer restrictions turn an equation into a finite count when coefficients and the target are positive. Bounds and parity often eliminate most candidate values before substitution.
Choose and carry out a method
For , bound y between zero and floor(). Keep only y values making even, then compute x.
Check the reasoning
Verify x and y are nonnegative integers. Each accepted y determines exactly one x, preventing duplicate counting.
How many pairs of nonnegative integers (x,y) satisfy ?
- Use one variable to parameterize the possibilities, then enforce divisibility and nonnegativity.
- Try through 7; retain x only if is divisible by 3.
- There are 3 pairs. Each retained x determines exactly one y.
3
How many pairs of nonnegative integers (x,y) satisfy ?
- Use one variable to parameterize the possibilities, then enforce divisibility and nonnegativity.
- Try through 9; retain x only if is divisible by 3.
- There are 4 pairs. Each retained x determines exactly one y.
4
Common pitfalls
Possible mix-up: Every y in the numerical range gives a solution.
The remaining numerator must also be divisible by two.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
How does parity let you count the allowed y values without testing all of them?
Preview the eight practice prompts
How many pairs of nonnegative integers (x,y) satisfy ?
How many pairs of nonnegative integers (x,y) satisfy ?
How many pairs of nonnegative integers (x,y) satisfy ?
How many pairs of nonnegative integers (x,y) satisfy ?
How many pairs of nonnegative integers (x,y) satisfy ?
How many pairs of nonnegative integers (x,y) satisfy ?
A store sells packs containing 2 or 3 beads. How many choices of counts of the two pack sizes buy exactly 42 beads? Packs of the same size are indistinguishable.
A store sells packs containing 2 or 3 beads. How many choices of counts of the two pack sizes buy exactly 45 beads? Packs of the same size are indistinguishable.
STAGE NT 4.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Repeating Decimals
Useful preparation: Nonnegative Integer Solutions
Goal: Understand and apply repeating decimals.
Before you begin: Nonnegative Integer Solutions
Understand the idea
Multiplying a repeating decimal by a power of ten shifts one complete block. Subtracting the original aligns and removes the infinite repeated tail.
Choose and carry out a method
For a two-digit repeating block, set x equal to the decimal and subtract x from 100x. Solve 99x equal to the block and simplify.
Check the reasoning
A proper decimal below one must give a fraction below one. Leading zeros within a block still count as positions.
Write 0.111111… as a fraction, where the two-digit block 11 repeats forever.
- Multiply by 100 to align the two-digit repeating tails.
- If …, then , hence .
- The exact fraction is ; no rounding is needed.
Write 0.121212… as a fraction, where the two-digit block 12 repeats forever.
- Multiply by 100 to align the two-digit repeating tails.
- If …, then , hence .
- The exact fraction is ; no rounding is needed.
Common pitfalls
Possible mix-up: Divide a repeating two-digit block by 100.
A repeating block uses 99; division by 100 gives a terminating decimal.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
How would the denominator change for a three-digit repeating block?
Preview the eight practice prompts
Write 0.141414… as a fraction, where the two-digit block 14 repeats forever.
Write 0.151515… as a fraction, where the two-digit block 15 repeats forever.
Write 0.161616… as a fraction, where the two-digit block 16 repeats forever.
Write 0.171717… as a fraction, where the two-digit block 17 repeats forever.
Write 0.181818… as a fraction, where the two-digit block 18 repeats forever.
Write 0.191919… as a fraction, where the two-digit block 19 repeats forever.
A display’s exact value repeats the block 20 forever after the decimal point, starting immediately: 0.2020… . Express this reading as a fraction.
A display’s exact value repeats the block 21 forever after the decimal point, starting immediately: 0.2121… . Express this reading as a fraction.
STAGE NT 4.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Counting Coprime Residues
Useful preparation: Repeating Decimals
Goal: Understand and apply counting coprime residues.
Before you begin: Repeating Decimals
Understand the idea
An integer is coprime to n exactly when it avoids every prime factor of n. Removing multiples of these primes by inclusion and exclusion counts the permitted residue classes.
Choose and carry out a method
For n with prime factors two and three, subtract their multiple counts and restore multiples of six. Express the result as .
Check the reasoning
A step size traverses a full circular cycle precisely when it is coprime to the cycle length. Check this on a small circle.
How many integers from 1 through 24 are relatively prime to 24?
- A step size visits the whole cycle exactly when it is coprime to its length.
- Exclude multiples of 2 or .
- The count is 8; multiples of both primes were excluded twice and must be accounted for once.
8
How many integers from 1 through 48 are relatively prime to 48?
- A step size visits the whole cycle exactly when it is coprime to its length.
- Exclude multiples of 2 or .
- The count is 16; multiples of both primes were excluded twice and must be accounted for once.
16
Common pitfalls
Possible mix-up: Apply the factor once for every repeated prime.
Use each distinct prime only once.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
Why does a noncoprime step size revisit its starting point too early?
Preview the eight practice prompts
How many integers from 1 through 192 are relatively prime to 192?
How many integers from 1 through 384 are relatively prime to 384?
How many integers from 1 through 768 are relatively prime to 768?
How many integers from 1 through 1536 are relatively prime to 1536?
How many integers from 1 through 3072 are relatively prime to 3072?
How many integers from 1 through 6144 are relatively prime to 6144?
A 12288-position cycle is traversed using a fixed positive step size at most 12288. How many step sizes visit every position before returning to the start?
A 24576-position cycle is traversed using a fixed positive step size at most 24576. How many step sizes visit every position before returning to the start?

