{
  "id": "fibonacci-sequence",
  "title": "Fibonacci Sequence",
  "lang": "en",
  "source_lang": "en",
  "summary": "An integer sequence in which each term is the sum of the preceding two, linking recurrence relations, counting problems, and the golden ratio.",
  "category": "mathematics",
  "subcategory": "discrete-logic",
  "type": "concept",
  "aliases": [
    "Fibonacci numbers",
    "Fibonacci series"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/fibonacci-sequence/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/fibonacci-sequence/",
      "json": "https://aiwiki.page/zh/fibonacci-sequence.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Fibonacci sequence is a sequence of integers in which each term is the sum of the two preceding terms. Under the standard indexing convention, it begins \\(0,1,1,2,3,5,8,13,21,34,55,\\ldots\\). Its simple definition produces connections among number theory, combinatorics, and algebra. The sequence is named after Fibonacci, the medieval mathematician Leonardo of Pisa, although its formation rule was known in India before his work. (dlmf.nist.gov)"
    },
    {
      "heading": "Definition and indexing",
      "text": "The Fibonacci numbers \\(F_n\\) are defined by the initial conditions\n\n\\[F_0=0,\\qquad F_1=1,\\]\n\nand the recurrence relation\n\n\\[F_n=F_{n-1}+F_{n-2}\\qquad(n\\geq2).\\]\n\nThus \\(F_2=1\\), \\(F_3=2\\), and \\(F_4=3\\). The initial conditions are essential: the same recurrence with different starting values generally produces a different sequence. (dlmf.nist.gov)\n\nSome presentations omit the initial zero and begin with \\(F_1=F_2=1\\); others shift the indices. Consequently, “the \\(n\\)th Fibonacci number” is unambiguous only when the indexing convention is specified. This article uses \\(F_0=0\\) and \\(F_1=1\\). (dlmf.nist.gov)"
    },
    {
      "heading": "Historical origins",
      "text": "The sequence arose in Indian studies of Sanskrit poetic meter. If a short syllable contributes one unit of duration and a long syllable contributes two, counting the arrangements of a given total duration leads to the Fibonacci recurrence. Historical scholarship identifies this formation rule in the work of Virahāṅka, dated between approximately 600 and 800 CE, Gopāla before 1135, and Hemacandra around 1150. These precede Fibonacci’s account. (sciencedirect.com)\n\nFibonacci presented the sequence through a rabbit-breeding problem in Liber abaci, first written in 1202 and revised in 1228. The idealized population begins with one pair; each pair becomes reproductive after a fixed delay and subsequently produces one new pair per month, while no rabbits die. The population in a month equals the surviving population from the previous month plus offspring produced by pairs present two months earlier. This yields the recurrence, not a realistic model of rabbit ecology. (mathshistory.st-andrews.ac.uk)"
    },
    {
      "heading": "Closed form and the golden ratio",
      "text": "Although defined recursively, \\(F_n\\) has an explicit expression, commonly called Binet’s formula:\n\n\\[F_n=\\frac{\\varphi^n-\\psi^n}{\\sqrt5}, \\qquad \\varphi=\\frac{1+\\sqrt5}{2}, \\qquad \\psi=\\frac{1-\\sqrt5}{2}.\\]\n\nThe number \\(\\varphi\\approx1.6180339887\\) is the golden ratio, and \\(\\psi=-1/\\varphi\\). (dlmf.nist.gov)\n\nThe formula follows by looking for solutions of the recurrence proportional to \\(r^n\\). Substitution gives the polynomial equation\n\n\\[r^2=r+1,\\]\n\nwhose roots are \\(\\varphi\\) and \\(\\psi\\). A suitable linear combination of their powers satisfies the two initial conditions. Thus the irrational quantities in Binet’s formula combine to give an integer for every nonnegative integer \\(n\\). (fibonacci-numbers.surrey.ac.uk)\n\nBecause \\(|\\psi|<1\\), its powers tend to zero. Consequently,\n\n\\[F_n\\sim\\frac{\\varphi^n}{\\sqrt5}, \\qquad \\lim_{n\\to\\infty}\\frac{F_{n+1}}{F_n}=\\varphi.\\]\n\nThe sequence therefore grows exponentially, while ratios of consecutive terms approach the golden ratio. More precisely, for \\(n\\geq0\\),\n\n\\[F_n=\\left\\lfloor\\frac{\\varphi^n}{\\sqrt5}+\\frac12\\right\\rfloor.\\]\n\nThis rounding identity assumes exact arithmetic; it does not guarantee correct results when large powers are evaluated with limited numerical precision. (fibonacci-numbers.surrey.ac.uk)"
    },
    {
      "heading": "Algebraic representations",
      "text": "A matrix packages the recurrence as a single transformation. For \\(n\\geq1\\),\n\n\\[\\begin{pmatrix} 1&1\\\\ 1&0 \\end{pmatrix}^{n} = \\begin{pmatrix} F_{n+1}&F_n\\\\ F_n&F_{n-1} \\end{pmatrix}.\\]\n\nThe matrix’s eigenvalues are \\(\\varphi\\) and \\(\\psi\\). Its diagonalization supplies another derivation of Binet’s formula. (fibonacci-numbers.surrey.ac.uk)\n\nThe ordinary generating function is\n\n\\[G(x)=\\sum_{n=0}^{\\infty}F_nx^n =\\frac{x}{1-x-x^2}.\\]\n\nTo derive this expression, multiply the series by \\(1-x-x^2\\): the recurrence cancels every coefficient beyond the coefficient of \\(x\\). The identity holds as a formal power series and, analytically, for \\(|x|<1/\\varphi\\). (fibonacci-numbers.surrey.ac.uk)"
    },
    {
      "heading": "Counting interpretations",
      "text": "Fibonacci numbers count arrangements built from pieces of size one and two. Consider tiling a strip of \\(n\\) unit cells using single-cell tiles and two-cell dominoes. Every tiling ends either with a single tile, leaving a strip of length \\(n-1\\), or with a domino, leaving one of length \\(n-2\\). With one empty tiling and one tiling of length one, the number of tilings is \\(F_{n+1}\\). The same reasoning counts ordered sums of \\(n\\) whose summands are one or two. (fibonacci-numbers.surrey.ac.uk)\n\nGrouping such tilings by the number \\(k\\) of dominoes gives a formula using binomial coefficients:\n\n\\[F_{n+1} = \\sum_{k=0}^{\\lfloor n/2\\rfloor} \\binom{n-k}{k}.\\]\n\nThere are \\(n-k\\) tiles altogether, and choosing which \\(k\\) are dominoes determines the tiling. This also explains the appearance of Fibonacci numbers in diagonal sums of Pascal’s triangle. (fibonacci-numbers.surrey.ac.uk)"
    },
    {
      "heading": "Identities and divisibility",
      "text": "Several identities express the structure of the sequence:\n\n\\[\\sum_{k=0}^{n}F_k=F_{n+2}-1,\\]\n\n\\[\\sum_{k=0}^{n}F_k^2=F_nF_{n+1},\\]\n\nand Cassini’s identity,\n\n\\[F_{n+1}F_{n-1}-F_n^2=(-1)^n \\qquad(n\\geq1).\\]\n\nCassini’s identity follows by taking the determinant of the matrix representation, since the defining matrix has determinant \\(-1\\). (fibonacci-numbers.surrey.ac.uk)\n\nA central divisibility property is\n\n\\[\\gcd(F_m,F_n)=F_{\\gcd(m,n)},\\]\n\nwhere \\(\\gcd\\) denotes the greatest common divisor. Consecutive Fibonacci numbers are therefore relatively prime, and \\(F_m\\) divides \\(F_n\\) whenever \\(m\\) divides \\(n\\). (fibonacci-numbers.surrey.ac.uk)\n\nFibonacci numbers also provide a unique representation of positive integers. Zeckendorf’s theorem states that every positive integer is a sum of distinct, nonconsecutive Fibonacci numbers drawn from \\(F_2,F_3,\\ldots\\). For example,\n\n\\[100=89+8+3=F_{11}+F_6+F_4.\\]\n\nExcluding \\(F_1\\) avoids ambiguity from the two occurrences of 1. (fibonacci-numbers.surrey.ac.uk)"
    },
    {
      "heading": "Computation",
      "text": "Direct recursive evaluation repeats many calculations. An iterative algorithm instead retains two consecutive values and repeatedly replaces them by the next pair. Computing \\(F_n\\) this way requires a number of additions proportional to \\(n\\), while storing only a fixed number of integer variables. (fibonacci-numbers.surrey.ac.uk)\n\nFaster evaluation uses doubling identities:\n\n\\[F_{2k}=F_k(2F_{k+1}-F_k),\\]\n\n\\[F_{2k+1}=F_k^2+F_{k+1}^2.\\]\n\nThese compute a pair of consecutive terms by repeatedly halving the target index, giving logarithmically many arithmetic stages. Matrix exponentiation offers a related method. This is an arithmetic-operation count, not a claim of logarithmic bit-level running time: the integers themselves grow in length with \\(n\\). (fibonacci-numbers.surrey.ac.uk)"
    },
    {
      "heading": "Related sequences",
      "text": "The Lucas numbers follow the same recurrence but begin with \\(L_0=2\\) and \\(L_1=1\\):\n\n\\[2,1,3,4,7,11,18,\\ldots\\]\n\nThey satisfy\n\n\\[L_n=F_{n-1}+F_{n+1}\\qquad(n\\geq1).\\]\n\nThey illustrate how changing initial conditions preserves the recurrence while altering its particular solution. (dlmf.nist.gov)"
    },
    {
      "heading": "Plant patterns and limits of interpretation",
      "text": "Fibonacci numbers occur frequently in phyllotaxis, the arrangement of leaves and other plant organs. Spiral patterns in flower heads and cones often have clockwise and counterclockwise spiral counts that are consecutive Fibonacci numbers. Mathematical growth models connect these patterns with divergence angles near the golden angle, approximately \\(137.5^\\circ\\), and the rational approximations associated with the golden ratio. (arxiv.org)\n\nThese patterns are prevalent, not universal. Some plants exhibit Lucas-number counts or other arrangements. Their occurrence concerns particular growth and packing processes; it does not establish a general law that all natural forms follow the Fibonacci sequence. (fibonacci-numbers.surrey.ac.uk)"
    }
  ],
  "links": [
    "integer",
    "number-theory",
    "combinatorics",
    "fibonacci",
    "recurrence-relation",
    "sanskrit",
    "poetic-meter",
    "golden-ratio",
    "polynomial",
    "matrix",
    "eigenvalues-and-eigenvectors",
    "matrix-diagonalization",
    "generating-function",
    "binomial-coefficient",
    "determinant",
    "greatest-common-divisor",
    "recursion",
    "algorithm",
    "lucas-numbers",
    "phyllotaxis"
  ],
  "sources": [
    {
      "title": "DLMF: §26.11 Integer Partitions: Compositions",
      "url": "https://dlmf.nist.gov/26.11"
    },
    {
      "title": "DLMF: §24.15 Related Sequences of Numbers",
      "url": "https://dlmf.nist.gov/24.15"
    },
    {
      "title": "Fibonacci (1170–1250) — Biography — MacTutor History of Mathematics",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Fibonacci/"
    },
    {
      "title": "Fibonacci's Rabbits",
      "url": "https://math.oxford.emory.edu/site/math125/fibonacciRabbits/"
    },
    {
      "title": "A Formula for the n-th Fibonacci number",
      "url": "https://fibonacci-numbers.surrey.ac.uk/fibonacci/FibFormula.html"
    },
    {
      "title": "Two Proofs of the Fibonacci Numbers Formula",
      "url": "https://fibonacci-numbers.surrey.ac.uk/fibonacci/fibformproof.html"
    },
    {
      "title": "The Mathematical Magic of the Fibonacci Numbers",
      "url": "https://fibonacci-numbers.surrey.ac.uk/Fibonacci/fibmaths.html"
    },
    {
      "title": "Fibonacci bases and Other Ways of Representing Numbers",
      "url": "https://fibonacci-numbers.surrey.ac.uk/Fibonacci/fibrep.html"
    },
    {
      "title": "Fibonacci numbers in phyllotaxis: a simple model",
      "url": "https://arxiv.org/abs/1203.6257"
    },
    {
      "title": "Phyllotaxis, disk packing and Fibonacci numbers",
      "url": "https://arxiv.org/abs/1608.05824"
    },
    {
      "title": "The Fibonacci Numbers and Golden section in Nature — 1",
      "url": "https://fibonacci-numbers.surrey.ac.uk/fibonacci/fibnat.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}