Share your repls and programming experiences

← Back to all posts
Trimorphic numbers
pole55 (199)

TASK:
Write a program to check whether a given number is trimorphic or not?

In mathematics a trimorphic number is a number whose cube (expressed in a given base) ends in the number itself.

For example:
4^3 = 64
24^3 = 13824
249^3 = 15438249