Problem 1137 · Easy

N-th Tribonacci Number

Build a sequence in which each term is the sum of the three terms before it, then return the requested term. The visual slides a window of three values forward and adds them to produce the next one.

Open the interactive visualisation