Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • 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?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • Combinatorics and Progressions
                        • Arithmetic
                        • Binomial
                        • Category
                        • Combinations

                        Fibonacci

                        Syntax Description

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand