Trinomial Triangle
Details
The trinomial triangle is a triangular array of numbers similar to Pascal's triangle. The top row consists of a single 1, and each subsequent row contains 2 more numbers than the last. Each number is the sum of the 3 numbers above it, i.e.
1 2 3 6
Print the first 20 rows of the trinomial triangle.
0 bytes, 0 chars
Restore solutionCompiled from
AT&T syntax to x86-64 Linux. Use
syscalls to write output.
Arturo is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
Fennel is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
Uiua is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
ctrl + enter or