Talk:Munchausen numbers: Difference between revisions

Line 5:
:: Also, if you are using an algorithm where the digits are already split up (so not derived by using mod and division), you don't have to worry about leading zeros e.g. 0030 is "Munchausen" if 0^0 = 1. The non-standard 0^0 = 0 simplifies things. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 21:55, 23 September 2016 (UTC)
::: Where would those leading zeros come from? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 00:33, 24 September 2016 (UTC)
:::: See the current ALGOL 68 sample which holds the 4 digits as separate numbers and indexes a table of powers - the non-standard 0^0 allows indexing the table of powers without having to worry whether the digit is a leading zero or not. The sample does this to avoids any multiplication, division or modulo operations. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 19:51, 24 September 2016 (UTC)
3,021

edits