zlacker
[parent]
[thread]
4 comments
1. gnuvin+(OP)
[view]
[source]
2019-11-11 01:06:25
The problem statement said that the input would be natural numbers.
replies(1):
>>lifthr+H6
◧
2. lifthr+H6
[view]
[source]
2019-11-11 02:54:32
>>gnuvin+(OP)
Wait, do natural numbers include zero?
evil grin
replies(2):
>>talake+He
>>chopin+EH
◧◩
3. talake+He
[view]
[source]
[discussion]
2019-11-11 04:59:09
>>lifthr+H6
No support for that in Sloane's.
https://oeis.org/A000027
◧◩
4. chopin+EH
[view]
[source]
[discussion]
2019-11-11 11:59:07
>>lifthr+H6
I looked up wikipedia which says there's no conclusive definition.
replies(1):
>>lifthr+kJ
◧◩◪
5. lifthr+kJ
[view]
[source]
[discussion]
2019-11-11 12:14:16
>>chopin+EH
The joke is that, if you don't need to check if the input is negative because it is not a natural number, you can also choose a definition of the natural number without zero to avoid special casing it at all.
[go to top]