dynamic_programming.tribonacci

Functions

tribonacci(→ list[int])

Given a number, return first n Tribonacci Numbers.

Module Contents

dynamic_programming.tribonacci.tribonacci(num: int) list[int]

Given a number, return first n Tribonacci Numbers. >>> tribonacci(5) [0, 0, 1, 1, 2] >>> tribonacci(8) [0, 0, 1, 1, 2, 4, 7, 13]