API reference@evolu/commonNumber › fibonacciAt

function fibonacciAt(
  index: number &
    Brand<"Int"> &
    Brand<"NonNegative"> &
    Brand<"Positive"> &
    Brand<"LessThanOrEqualTo78"> &
    Brand<"FibonacciIndex">,
): number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive">;

Defined in: packages/common/src/Number.ts:113

Returns the Fibonacci number at the given index (1-indexed: 1,1,2,3,5,8,...).