Munchausen numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|Pascal}}: added Combinations_with_repetitions)
m (add superscript)
Line 3: Line 3:
A [[wp:Munchausen number|Munchausen number]] is a natural number ''n'' the sum of whose digits (in base 10), each raised to the power of itself, equals ''n''.
A [[wp:Munchausen number|Munchausen number]] is a natural number ''n'' the sum of whose digits (in base 10), each raised to the power of itself, equals ''n''.


For instance: 3435 = 3^3+4^4+3^3+5^5
For instance: 3435 = 3<sup>3</sup> + 4<sup>4</sup> + 3<sup>3</sup> + 5<sup>5</sup>