Sailors, coconuts and a monkey problem: Difference between revisions
Sailors, coconuts and a monkey problem (view source)
Revision as of 22:47, 2 April 2024
, 1 month ago→{{header|Uiua}}: Added more values
m (Corrected order) |
m (→{{header|Uiua}}: Added more values) |
||
Line 2,468:
</syntaxhighlight>
{{out}}
<pre>
3121
233275
</pre>
Or for a terse point-free loop through different numbers of sailors:
<syntaxhighlight lang="Uiua">
+2⇡7
≡(
×,⇡10000000
⊟:⊢⍥(+1×+1⟜÷⟜(⊏⊚=0◿)-1:,,),
)
</syntaxhighlight>
{{out}}
<pre>
╭─
╷ 2 3
3 25
4 765
5 3121
6 233275
7 823537
8 117440505
╯
</pre>
=={{header|VBA}}==
|