Automorphic numbers

Automorphic numbers are numbers whose square ends with the original number.

Math Calculators

Special Number Property Checker

Explore interactive step-by-step calculations and visual graphs for these numbers.

Numbers in this Collection

#n (number)Detail
1002 = 0
2112 = 1
3552 = 25
4662 = 36
525252 = 625
676762 = 5776
73763762 = 141376
86256252 = 390625
9937693762 = 87909376
1090625906252 = 8212890625

What Are Automorphic (Circular) Numbers?

An automorphic number (sometimes known as a circular number) is an integer whose square ends in the exact same digits as the number itself:

0, 1, 5, 6, 25, 76, 376, 625, 9376, 90625, 109376, 890625, 2890625, 7109376, …

For example, 25² = 625 (ends in 25) and 76² = 5,776 (ends in 76). Automorphic numbers bridge modular algebra with the fascinating mathematics of p-adic numbers.

Modular Congruence & Structure

Congruence Condition

n² ≡ n (mod 10ᵏ)

Where k is the number of digits in n. This can be rewritten as: n(n − 1) ≡ 0 (mod 10ᵏ).

Since n and n − 1 are coprime, one must be divisible by 2ᵏ and the other by 5ᵏ. This produces exactly two branches of non-trivial automorphic numbers in base 10: one ending in 5 and one ending in 6!

The Complementary Pair Theorem

Sum of Pairs Equals 10ᵏ + 1

For every digit length k ≥ 2, the 5-branch and 6-branch automorphic numbers always sum to 10ᵏ + 1! Examples: 25 + 76 = 101, 625 + 376 = 1,001, 0625 + 9376 = 10,001.

Idempotents in 10-Adic Numbers

Automorphic numbers are the finite prefix truncations of the two non-trivial idempotent elements (x² = x) in the ring of 10-adic integers ℤ₁₀ ≅ ℤ₂ × ℤ₅.

Unique Extensions to Any Length

Given any k-digit automorphic number, there is a unique digit you can prefix to create a valid (k+1)-digit automorphic number.

Frequently Asked Questions

Why can automorphic numbers only end in 0, 1, 5, or 6?

Because the single digit must satisfy d² ≡ d (mod 10). Testing 0 through 9: 0²=0, 1²=1, 5²=25 (ends in 5), 6²=36 (ends in 6). No other digits satisfy this condition.

Can you generate arbitrarily large automorphic numbers?

Yes, using Hensel's lemma, you can generate automorphic numbers of any arbitrary number of digits systematically.