Skip to main content

Posts

Showing posts with the label Narcissistic Number

Narcissistic Number

Narcissistic number is a number that returns the original number when each digit is raised separately to the power of the number of digits. Checking a Narcissistic Number Step 1 : Consider any number. Step 2 : (Number) power of the number of digits If the number obtained in Step 2 is same as the number considered in Step 1, it is a Narcissistic number. But if the number obtained in Step 2 is different than the number considered in Step 1, it is not a Narcissistic number . Examples Example 1 Step 1 : Consider number 0. Step 2 : 0 1 => 0. The number obtained in Step 2 is same as the number considered in Step 1. Therefore, 0 is a Narcissistic number . Example 2 Step 1 : Consider number 1. Step 2 : 1 1 => 1. The number obtained in Step 2 is same as the number considered in Step 1. Therefore, 1 is a Narcissistic number . Example 3 Step 1 : Consider number 2. Step 2 : 2 1 => 2. The number obtained in Step 2 is same as the number considered in Step 1. Therefore, 2 is a Narcissistic...