{"id":6717,"date":"2021-05-22T10:14:25","date_gmt":"2021-05-22T04:44:25","guid":{"rendered":"https:\/\/python-programs.com\/?p=6717"},"modified":"2021-11-22T18:40:46","modified_gmt":"2021-11-22T13:10:46","slug":"disarium-number-in-python","status":"publish","type":"post","link":"https:\/\/python-programs.com\/disarium-number-in-python\/","title":{"rendered":"Disarium Number in Python"},"content":{"rendered":"

Disarium Number:<\/strong><\/p>\n

A Disarium number is one in which the sum of each digit raised to the power of its respective position equals the original number.<\/p>\n

like 135 , 89 etc.<\/p>\n

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

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

number =135<\/pre>\n

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

135 is disarium number<\/pre>\n

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

Here 1^1 + 3^2 + 5^3 = 135 so it is disarium Number<\/pre>\n

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

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

number =79<\/pre>\n

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

79 is not disarium number<\/pre>\n

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

Here 7^1 + 9^2 = 87 not equal to 79  so it is not disarium Number<\/pre>\n

Disarium Number in Python<\/h2>\n

Below are the ways to check Disarium number in python<\/p>\n