Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Combinatorics and Progressions
                      • Combinatorics and Progressions

                      Fibonacci

                      Reading time: 1min

                      Returns the desired Fibonacci number. Fibonacci numbers are the numbers in the Fibonacci sequence, characterized by the fact that every number after the first two is the sum of the two preceding ones: F(n)=F(n-1)+F(n-2). The first two numbers are defined as 1: F(1)=1;F(2)=1.

                      If n is negative, the Fibonacci numbers are defined as F(n-2)=F(n)-F(n-1).

                      Syntax

                      fibonacci(Integer)
                      

                      Description

                      Given an integer n, returns the n-th Fibonacci number: F(n).

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Arithmetic
                      • Binomial
                      • Category
                      • Combinations
                      • Combinations with repetition

                      Fibonacci

                      Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand