Skip to content

#1137 - N-th Tribonacci Number

EasyDP - 1D
Open on LeetCode

The Tribonacci sequence: T₀ = 0, T₁ = 1, T₂ = 1, and Tₙ = Tₙ₋₁ + Tₙ₋₂ + Tₙ₋₃ for n >= 3. Given n, return Tₙ.

InputOutput
n = 44
n = 251389537
n = 00

Released under the MIT License.