Fibonacci numbers (fibonacci)
The n-th Fibonacci number, with F(1) = F(2) = 1.
How to write it
fibonacci(n)
- n
- Which number, from 0. Takes a whole number.
Examples
fibonacci(10)In the solver,
Open in the solverfibonacci(10)gives55.
Related functions
- from_continued_fraction
The number a continued fraction stands for.
- factor_integer
Prime factorization of a whole number, as a list of prime and exponent pairs.
- harmonic_number
The n-th harmonic number: 1 + 1/2 + ... + 1/n.
- extended_gcd
Greatest common divisor of two whole numbers with the multipliers that give it.
- integer_exponent
The exponent of a prime in a whole number.
- euler_phi
Euler's totient: how many whole numbers up to n are coprime to n.