{"id":18577,"date":"2021-08-26T10:38:21","date_gmt":"2021-08-26T05:08:21","guid":{"rendered":"https:\/\/python-programs.com\/?p=18577"},"modified":"2021-11-22T18:37:18","modified_gmt":"2021-11-22T13:07:18","slug":"python-program-to-check-trimorphic-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-trimorphic-number-or-not\/","title":{"rendered":"Python Program to Check Trimorphic Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Check Abundant Number or Not<\/a>
\nTrimorphic Number:<\/strong><\/p>\n

Cube the number you’ve been given. If the given number appears in the cube number in the last means, it is referred to as a trimorphic number.<\/p>\n

For example:<\/p>\n

Let the given number =25<\/p>\n

The cube of the number = 25*25*25= 15625<\/strong><\/p>\n

The Given number 25 is present at the end.<\/p>\n

Therefore, 25 is a Trimorphic Number.<\/strong><\/p>\n

The examples of the first few Trimorphic Numbers<\/strong> are 1, 4, 5, 6, 9, 24, 25, 49, 51, 75, 76, 99, 125, 249, 251, 375, 376, 499, and so on.<\/p>\n

Given the number and the task is to check\u00a0whether the given number is a Trimorphic Number or not.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 75<\/pre>\n

Output:<\/strong><\/p>\n

The given number { 75 } is a Trimorphic number<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 30<\/pre>\n

Output:<\/strong><\/p>\n

The given number { 30 } is Not a Trimorphic number<\/pre>\n

Program to Check Trimorphic Number or Not in Python<\/h2>\n

Below are the ways to check whether the given number is a Trimorphic Number or not:<\/p>\n