Question: 2. Curious Numbers - PE 34 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 =
2. Curious Numbers - PE 34 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Note: as 1! = 1 and 2! = 2 are not sums they are not included. Attempt the following questions: a) Write a function that determines if a number is a curious number. b) Modify your function that returns the list of curious numbers up to some value (for example, all curious numbers less than 1000) c) Find the sum of all numbers which are equal to the sum of the factorial of their digits.
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
def factorialy factorial of a number p 1 f... View full answer
Get step-by-step solutions from verified subject matter experts
