Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/omega-rosetta/blob/main/drafts/rosettacode/catalan-numbers.wiki
# omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
branch `main` Branches Tags History
`omega-rosetta / drafts / rosettacode / catalan-numbers.wiki`
82 lines ยท 2320 bytes Raw Blame History
1 =={{header|Omegese}}==
2 {{works with|omc|sha256 `2c824805`, aien-dev/omega-mv `e5b32567`, Linux AArch64}}
3 Omega has no imports, so the small output helpers (emit and friends) are part of the program.
4
66 n, C(n) by C(n+1) = 2(2n+1)/(n+2) C(n), and again by C(n+1) = sum C(i) C(n-i): 67 C(0) = 1 by the recurrence, 1 by the convolution sum 68 C(1) = 1 by the recurrence, 1 by the convolution sum 69 C(2) = 2 by the recurrence, 2 by the convolution sum 70 C(3) = 5 by the recurrence, 5 by the convolution sum 71 C(4) = 14 by the recurrence, 14 by the convolution sum 72 C(5) = 42 by the recurrence, 42 by the convolution sum 73 C(6) = 132 by the recurrence, 132 by the convolution sum 74 C(7) = 429 by the recurrence, 429 by the convolution sum 75 C(8) = 1430 by the recurrence, 1430 by the convolution sum 76 C(9) = 4862 by the recurrence, 4862 by the convolution sum 77 C(10) = 16796 by the recurrence, 16796 by the convolution sum 78 C(11) = 58786 by the recurrence, 58786 by the convolution sum 79 C(12) = 208012 by the recurrence, 208012 by the convolution sum 80 C(13) = 742900 by the recurrence, 742900 by the convolution sum 81 C(14) = `2674440` by the recurrence, `2674440` by the convolution sum 82