This hole is experimental, no solutions will be saved. Please leave feedback on the GitHub issue.

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 solution
All
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
Fennel is an experimental language, no solutions will be saved. Please leave feedback on the GitHub issue.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Trinomial Triangle?

If you have seperate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.