{"id":8179,"date":"2021-06-07T18:22:34","date_gmt":"2021-06-07T12:52:34","guid":{"rendered":"https:\/\/python-programs.com\/?p=8179"},"modified":"2021-11-22T18:38:38","modified_gmt":"2021-11-22T13:08:38","slug":"python-program-to-check-whether-the-given-number-is-strong-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-whether-the-given-number-is-strong-number-or-not\/","title":{"rendered":"Python Program to Check Whether the given Number is Strong Number or Not"},"content":{"rendered":"

Strong number:<\/strong><\/p>\n

A Strong number is a special number in which the total of all digit factorials equals the number itself.<\/p>\n

Ex: 145 the sum of factorial of digits = 1 ! + 4 ! +5 ! = 1 + 24 +125<\/p>\n

To determine whether a given number is strong or not. We take each digit from the supplied number and calculate its factorial , we will do this for each digit of the number.<\/p>\n

We do the sum of factorials once we have the factorial of all digits. If the total equals the supplied number, the given number is strong; otherwise, it is not.<\/p>\n

Given a number the task is to check whether the given number is strong number or not.<\/p>\n

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

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

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

given number = 145<\/pre>\n

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

The given number 145 is strong number<\/pre>\n

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

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

given number = 176<\/pre>\n

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

The given number 176 is not a strong number<\/pre>\n

Python Program to Check Whether the given Number is Strong Number or Not<\/h2>\n

There are several ways to check whether the given number is strong number or not some of them are:<\/p>\n