Computer Science, asked by shreesidheshwara, 8 months ago

write a Java program to check whether number is manchausen number​

Answers

Answered by nanda402np
0

Answer:

...

Explanation:

search

Sign In

Home

Courses

Hire With Us

Algorithmskeyboard_arrow_down

Data Structureskeyboard_arrow_down

Languageskeyboard_arrow_down

Interview Cornerkeyboard_arrow_down

GATEkeyboard_arrow_down

CS Subjectskeyboard_arrow_down

Studentkeyboard_arrow_down

GBlog

Puzzles

What's New ?

Münchhausen Number

Last Updated: 14-12-2018

Given a number N, output all Munchhausen numbers from 1 to n.

Introduction : A Münchhausen number is a number equal to the sum of its digits raised to each digit’s power. It is similar to that of Narcissistic Number.

For example:

3435 = 33 + 44 + 33 + 55

One can also be considered as Münchhausen Number because when 1 raised to the power 1 is 1 itself.

Since, the number 3435 can be expressed as sum of each digits of the number when each digits of the numbers are raised to power equivalent to the digits itself i.e., ((3 raised to the power 3) + (4 raised to the power 4) + (3 raised to the power 3) + (5 raised to the power 5)) will give output to the same number i.e. 3435, then the number can be called as Münchhausen Number.

hey I hope you understand it.........

Similar questions