What is the smallest positive integer whose square ends in 21?
If you’ve strolled through search queries this month and stumbled on something like “What is the smallest positive integer whose square ends in 21?”, you’re not alone. This precise question is surfacing more often in the U.S., fueled by curiosity about number patterns and digital exploration. People naturally connect image and logic—how a number behaves mathematically—and this pattern has sparked quiet intrigue among math enthusiasts, educators, and curious learners. Whether driven by personal interest, academic curiosity, or desire to explore logic puzzles, the question taps into a collective awareness of subtle truths hidden in numbers.

Why Is This Question Gaining Interest?

In recent months, discussions around numerical curiosities have grown, especially within mobile-first, digitally engaged audiences. The search for specific numerical properties—like what produces a square ending in particular digits—blends pattern recognition with basic arithmetic. In classrooms, puzzle clubs, and social learning circles, this question appears not as a shadowy oddity, but as a gateway to understanding modular arithmetic and last-digit behavior. For users in the U.S., where digital access to precise knowledge is seamless, such queries reflect a desire for clarity and self-guided learning. The trait of identifying small, significant numbers has a quiet appeal—simple yet intriguing—fitting current trends in cognitive play and number exploration.

How Does the Square of a Number End in 21?

Mathematically, the key lies in last-digit behavior. When squaring any whole number, only the final digit determines the last digit of the result. We’re searching for integers where (n²) mod 100 = 21. This means the unit’s digit and second-to-last digit in n² must combine to 21. By systematically checking values and applying modular math, it becomes clear: there is no two-digit integer whose square ends in 21. So we expand the search beyond immediate numbers and examine all integers.

Understanding the Context

Let’s explore the extended number set. Testing multiples of 10 plus single digits (0–9) reveals that no single-digit square ends in 21. Squares of numbers like 1–19 yield last digits 1, 4, 9, 6, 5, 6, 9, 6, 5, 6, 9, 4, 1, 0—none match 21. But when numbers near 100 are tested with attention to last two digits, a clear pattern emerges: the smallest integer satisfying the condition is actually 39.
39² = 1,521 — which ends in 21.