Trimorphic Number Calculator

Number Theory

Trimorphic resultYes - 76 is trimorphic
Cube438,976
Cube ending...76
Tested value76
How this was calculated
  1. A trimorphic number ends in itself when cubed: the decimal digits of n^3 finish with the digits of n.
  2. 76^3 = 438,976.
  3. The cube ends in ...76, which is exactly 76 - trimorphic.
  4. Every automorphic number (square ends in n) is also trimorphic, but not conversely: 24 and 49 are trimorphic without being automorphic.

Cube a number and look at the end of the result. Sometimes the original number is sitting there in the final digits: 76 cubed is 438,976 - ending in 76. Numbers with this property are called trimorphic, and they form a generous family: 13 of them up to 100, and 26 up to 1,000, including such pleasing cases as 99, whose cube ends in 99, and 999.

This calculator performs the test directly - cube, then compare endings - and lists the family up to any bound you set. Directness is a virtue here because the property is purely about decimal endings: there is no shortcut formula to get wrong, and the cube shown in the result lets you verify the verdict digit by digit.

Trimorphic numbers are the cube cousins of the better-known automorphic numbers, whose squares end in themselves. Every automorphic number is automatically trimorphic, but the cube family is larger - 24 and 49 are trimorphic without being automorphic - and the comparison between the two families is where most of the interest lies.

Worked examples

Test 76 - its cube ends in 76

(Test a number · 76 · 100)

Trimorphic resultYes - 76 is trimorphic
Cube438,976
Cube ending...76
Tested value76

Test 77 - its cube ends in 33

(Test a number · 77 · 100)

Trimorphic resultNo - 77 is not trimorphic
Cube456,533
Cube ending...33
Tested value77

List trimorphic numbers up to 100

(List numbers up to a bound · 76 · 100)

Trimorphic result13 trimorphic numbers up to 100
Largest in range99
Count13
Testn^3 ends in n

The test, worked

76 cubed: 76 x 76 = 5,776, and 5,776 x 76 = 438,976. The last two digits are 76, so 76 is trimorphic. Now 77: its cube is 456,533, ending in 33 - not trimorphic. The test never needs the whole cube in principle, only its ending, but the calculator shows the full cube for small candidates because seeing is believing.

Single digits show the pattern in miniature: 0, 1, 4, 5, 6 and 9 are trimorphic (4 cubed is 64, ending in 4; 9 cubed is 729, ending in 9), while 2, 3, 7 and 8 are not. Those six seeds grow into the whole family tree of endings - every trimorphic ending is built, digit by digit, on foundations like these.

Trimorphic versus automorphic

Automorphic numbers end in themselves when squared: 25 squared is 625, 76 squared is 5,776. If a square ends in n, the cube - the square times n again - must also end in n, so every automorphic number is trimorphic for free. The converse fails: 24 cubed is 13,824, ending in 24, but 24 squared is 576, ending in 76. The cube condition is strictly weaker, and the trimorphic family is correspondingly richer.

Up to 100 the trimorphic numbers are 0, 1, 4, 5, 6, 9, 24, 25, 49, 51, 75, 76 and 99 - thirteen, against the automorphic family's much shorter list. The extra members, like 24, 49 and 99, are precisely the ones whose squares misbehave while their cubes behave.

Endings breed endings

Trimorphic endings extend. If a k-digit ending is trimorphic, there are systematic ways to grow it into longer trimorphic endings, because the condition 'cube ends in n' depends only on the last digits of n - arithmetic modulo 10^k. The families ending in 5 and in 6 have famous automorphic ancestors (the endless endings ...5 and ...6 that square to themselves), and the trimorphic condition admits additional branches.

This is why the count keeps climbing: 13 up to 100, 26 up to 1,000, and a steady supply beyond. List mode on this page finds them by direct cubing, which is all the theory a user needs - but the modular-arithmetic view explains why the list never just stops.

Cubes, endings and modulo arithmetic

Saying 'n cubed ends in n' is the decimal way of saying n^3 is congruent to n modulo 10^k, where k is the number of digits. In that language the question becomes solving a congruence, and the solutions organise themselves by the Chinese remainder theorem into families modulo 2^k and 5^k. The endings related to 5 and 6 dominate because 5 and 6 are idempotent-friendly residues.

None of this machinery is needed to use the calculator, but it explains the family's texture: why endings cluster, why certain digit patterns recur (…24, …624, …0624-style chains in the automorphic world), and why a property that sounds like a parlour trick is actually a window onto p-adic arithmetic.

Famous and favourite cases

99 is a crowd-pleaser: 99 cubed is 970,299, ending in 99, and 999 cubed ends in 999 as well. 625 is trimorphic and automorphic both - its square and cube end in 625. 376, the classic automorphic ending, is of course trimorphic too. And 1, 0 and the single digits remind you the property starts at the very bottom of the number line.

Puzzle tradition loves 76 above all: it is automorphic (square 5,776) and trimorphic (cube 438,976), a double ending that shows up in textbook examples for both families. If you remember one trimorphic number, 76 is the one the literature would choose for you.

Using the calculator

Test mode cubes your candidate and compares the ending, showing the full cube for reasonable sizes so the verdict is checkable at a glance. List mode enumerates the family to your bound by direct test - up to 100 you will get the canonical 13, up to 1,000 the 26.

If you are comparing against another source, check its convention on 0 and 1: some lists start at 1 or exclude 0. This page includes both, and says so, which accounts for most one-or-two discrepancies between published lists.

Three-digit endings worth meeting

Beyond 99, the three-digit family rewards inspection: 624 is trimorphic - its cube ends in 624 - though its square ends in 376, so it belongs to this family alone. 875 is another: 875 cubed is 669,921,875, the ending riding on the fact that any number ending in 875 or 625-family digits multiplies obediently. And 999 cubed ends in 999, the repeated-digit trick that 99 performs at two digits, extended.

These examples are the fastest way to internalise the definition's generosity compared with the automorphic one: the cube forgives what the square does not, and the forgiven numbers - 24, 49, 624 - are exactly the ones that make the trimorphic list longer and more interesting.

Testing without the whole cube

For a large candidate, the full cube is unnecessary work: the ending of n cubed depends only on the ending of n. To test a twenty-digit candidate you may cube just its last few digits and compare progressively - the standard technique of modular arithmetic, and the reason the property scales to endings of any length. The calculator cubes directly at the sizes entered here, but the steps it shows are the same computation a modular shortcut performs.

This is also how the endless automorphic endings are built - digit by digit, each new digit forced by the requirement that the square keep ending correctly. Trimorphic endings admit the same Hensel-style lifting, with more branches surviving at each digit, which is the deep reason the trimorphic family outnumbers the automorphic one at every length.

Trimorphic squares and higher powers

The terminology generalises: numbers whose squares end in themselves are automorphic (sometimes 'bimorphic' in older books), cubes give trimorphic, and the pattern continues to n-morphic families for any exponent. The families nest in a useful direction - a number automorphic for a higher power is constrained for the lower ones in ways that depend on the exponent's factorisation - and the literature mostly stops at cubes because the cube family is where the extra members first appear in force.

For the purposes of this page the ladder matters as a map: if a source calls 76 'automorphic' and another calls it 'trimorphic', both are right, and the cube test here will confirm the stronger square property's consequence every time.

The endings in 5 family

Numbers ending in 5 are generous with this property. 25 cubed is 15,625 - ending in 25. 125 cubed is 1,953,125 - ending in 125. 375 cubed is 52,734,375 - ending in 375. The pattern is the 5-ending's arithmetic loyalty: multiplying numbers that end in 5 produces endings that preserve the tail, and the cube inherits the square's good behaviour and extends it. Several of the 26 trimorphic numbers below 1,000 live in this clan.

It is worth contrasting with the 6 family, the automorphic aristocracy, whose endings (6, 76, 376, 9376...) preserve themselves under every power. The 5-endings preserve themselves under cubing more broadly than under squaring, which is why the trimorphic census catches cousins like 125 and 375 that the automorphic census, stricter and older, leaves out.

FAQs

What is a trimorphic number?

A number whose cube ends in the number itself - for example 76, since 76 cubed is 438,976.

Is 76 trimorphic?

Yes. 76 cubed is 438,976, which ends in 76. It is also automorphic, since its square ends in 76 too.

Is 77 trimorphic?

No. 77 cubed is 456,533, which ends in 33.

How many trimorphic numbers are under 100?

13: 0, 1, 4, 5, 6, 9, 24, 25, 49, 51, 75, 76 and 99.

What is the difference between trimorphic and automorphic?

Automorphic numbers end in themselves when squared; trimorphic numbers when cubed. Every automorphic number is trimorphic, but not conversely - 24 and 49 are trimorphic only.

Is 99 trimorphic?

Yes - 99 cubed is 970,299, ending in 99. So is 999.

Which single digits are trimorphic?

0, 1, 4, 5, 6 and 9.

How many trimorphic numbers are under 1,000?

26, the largest being 999.

Sources

Related calculators

Correlation Coefficient Calculator
Pearson's r for up to six paired observations, with r² and the deviation sums shown — the full workings, not just the headline number.
Logit Calculator
The logit of a probability: the natural log of the odds, the scale on which logistic regression is linear.
Spherical Cap Calculator
The volume and curved surface of a sphere sliced by a plane — from the sphere's radius and the cap's height, with its share of the whole sphere.