Dontopedia

fibonacci

From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-06.)

fibonacci has 126 facts recorded in Dontopedia across 24 references, with 19 live disagreements.

126 facts·65 predicates·24 sources·19 in dispute

Mostly:has parameter(10), appends sum of last two(6), initializes sequence(6)

Maturity scale raw canonical shape-checked rule-derived certified

Has Parameterin disputehasParameter

Inbound mentions (31)

Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.

definesFunctionDefines Function(11)

callsFunctionCalls Function(5)

hasFunctionHas Function(3)

invokesFunctionInvokes Function(3)

implementsFunctionImplements Function(2)

appendsSumOfLastTwoItemsAppends Sum of Last Two Items(1)

containsCodeDefinitionContains Code Definition(1)

containsFunctionContains Function(1)

containsFunctionDefinitionContains Function Definition(1)

describesDescribes(1)

embedsCodeEmbeds Code(1)

topicTopic(1)

Other facts (111)

The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.

111 facts
PredicateValueRef
Appends Sum of Last Twofib[-1] + fib[-2][1]
Appends Sum of Last TwoFib Sequence[2]
Appends Sum of Last Twofib[-1] + fib[-2][5]
Appends Sum of Last TwoFib Seq[7]
Appends Sum of Last Twoseq[-1] + seq[-2][12]
Appends Sum of Last Twonull[13]
Initializes Sequence[0, 1][2]
Initializes Sequence[0, 1][3]
Initializes Sequence[0, 1][11]
Initializes Sequence[0, 1][12]
Initializes Sequence[0, 1][18]
Initializes Sequence[0, 1][24]
Handles Base Casen <= 0[1]
Handles Base Casen == 1[1]
Handles Base Casen <= 0[11]
Handles Base Casen <= 0[24]
Handles Base Casen == 1[24]
Takes Parametern[1]
Takes Parametern[5]
Takes Parametern[7]
Takes Parametern[9]
Takes Parametern[12]
Rdf:typePython Function[15]
Rdf:typePython Function[17]
Rdf:typePython Function[18]
Rdf:typeMathematical Function[22]
Rdf:typeFunction[24]
Initializes List[0, 1][1]
Initializes List[0, 1][5]
Initializes List[0,1][7]
Initializes List[0, 1][13]
Returns Empty List Ifn <= 0[5]
Returns Empty List Ifn-less-than-or-equal-to-0[14]
Returns Empty List Ifn <= 0[18]
Returns Empty List Ifn <= 0[20]
Initializes VariableFib Sequence[9]
Initializes Variablefib_sequence[15]
Initializes VariableVariable Fib[16]
Initializes VariableFib List[17]
Uses While LoopLen Fib Sequence Lt N[2]
Uses While Looplen(fib_seq) < n[11]
Uses While Looplen(fib_sequence) < n[13]
Handles Casen <= 0[7]
Handles Casen == 1[7]
Handles Casen == 2[7]
Computes SequenceFibonacci Sequence[9]
Computes SequenceFibonacci Sequence[11]
Computes Sequencefibonacci[24]
ReturnsFib Sequence[9]
ReturnsFib List[17]
ReturnsList[19]
Uses While Loop Conditionlen(fib_sequence) < n[3]
Uses While Loop Conditionlen(seq) < n[12]
Defined AsFibonacci Code Block 1[5]
Defined Asdef fibonacci(n): a, b = 0, 1 result = [] while len(result) < n: result.append(a) a, b = b, a + b return result[10]
Presupposes N Positive IntegerLoop Range[7]
Presupposes N Positive IntegerParameter N[9]
Returns Variablefib_sequence[15]
Returns VariableVariable Fib[16]
Has ConditionCondition N Less Equal 0[16]
Has ConditionCondition N Equals 1[16]
Has LoopWhile Loop[16]
Has LoopWhile Loop[17]
Has ConditionalIf N Less Equal Zero[17]
Has ConditionalElif N Equals One[17]
Has Return Conditionempty-list[24]
Has Return Conditionsingle-zero-list[24]
Returns List for[0][1]
Returns Empty List forn <= 0[1]
Computes Sequence Up to Nnull[3]
Expected to Produce Outputnull[3]
Appends Next Fibfib_sequence[-1] + fib_sequence[-2][3]
Handles N Zero[][4]
Handles N One[0][4]
Uses Iterative Buildwhile len(fib) < n[4]
Returns List With Zero Ifn == 1[5]
Iterative Implementationtrue[5]
Handles Base Case N Leq0return [][6]
Depends on Iterationnull[6]
Builds Sequence Iterativelyfib = [0, 1]; while len(fib) < n: fib.append(fib[-1] + fib[-2])[6]
Handles Base Case N1return [0][6]
Returns for N Le0[][7]
Returns for N2[0,1][7]
Returns for N1[0][7]
Loops From2 to n[7]
Implements Iterative Algorithmtrue[8]
Implements AlgorithmIterative Fibonacci[9]
Has While LoopFib While Loop[9]
Generates First NFib Numbers[9]
Appends Next Termfib_seq[-1] + fib_seq[-2][11]
Handles Single Term Casen == 1[11]
Generates IterativelyFibonacci Seq 10[12]
Handles Base Case One[0][12]
Handles Base Case Zero or Negative[][12]
Teleologically Generates Sequencenull[12]
Generates Sequence Starting With0,1[13]
Returns Single Element List Ifn-equals-1[14]
Calculates SequenceFibonacci Sequence[14]
Initializes Variable to[0, 1][15]
Contains While LoopWhile Loop[15]

Timeline

Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.

initializesListblah/general/part-74
[0, 1]
handlesBaseCaseblah/general/part-74
n <= 0
returnsListForblah/general/part-74
[0]
takesParameterblah/general/part-74
n
handlesBaseCaseblah/general/part-74
n == 1
returnsEmptyListForblah/general/part-74
n <= 0
appendsSumOfLastTwoblah/general/part-74
fib[-1] + fib[-2]
initializesSequenceblah/omega-debug/part-1
[0, 1]
usesWhileLoopblah/omega-debug/part-1
ex:len-fib-sequence-lt-n
appendsSumOfLastTwoblah/omega-debug/part-1
ex:fib-sequence
computesSequenceUpToNblah/omega-debug/part-2
null
expectedToProduceOutputblah/omega-debug/part-2
null
initializesSequenceblah/omega-debug/part-2
[0, 1]
usesWhileLoopConditionblah/omega-debug/part-2
len(fib_sequence) < n
appendsNextFibblah/omega-debug/part-2
fib_sequence[-1] + fib_sequence[-2]
handlesNZeroblah/omega/part-77
[]
handlesNOneblah/omega/part-77
[0]
usesIterativeBuildblah/omega/part-77
while len(fib) < n
returnsListWithZeroIfblah/omega/part-79
n == 1
initializesListblah/omega/part-79
[0, 1]
appendsSumOfLastTwoblah/omega/part-79
fib[-1] + fib[-2]
iterativeImplementationblah/omega/part-79
true
returnsEmptyListIfblah/omega/part-79
n <= 0
definedAsblah/omega/part-79
ex:fibonacci-code-block-1
takesParameterblah/omega/part-79
n
handlesBaseCaseNLeq0blah/omega/part-88
return []
dependsOnIterationblah/omega/part-88
null
buildsSequenceIterativelyblah/omega/part-88
fib = [0, 1]; while len(fib) < n: fib.append(fib[-1] + fib[-2])
handlesBaseCaseN1blah/omega/part-88
return [0]
initializesListblah/omega/part-111
[0,1]
takesParameterblah/omega/part-111
n
appendsSumOfLastTwoblah/omega/part-111
ex:fib-seq
handlesCaseblah/omega/part-111
n <= 0
handlesCaseblah/omega/part-111
n == 1
handlesCaseblah/omega/part-111
n == 2
returnsForNLe0blah/omega/part-111
[]
returnsForN2blah/omega/part-111
[0,1]
returnsForN1blah/omega/part-111
[0]
presupposesNPositiveIntegerblah/omega/part-111
ex:loop-range
loopsFromblah/omega/part-111
2 to n
implementsIterativeAlgorithmblah/omega/part-148
true
implementsAlgorithmblah/omega/part-154
ex:iterative-fibonacci
computesSequenceblah/omega/part-154
ex:fibonacci-sequence
takesParameterblah/omega/part-154
n
initializesVariableblah/omega/part-154
ex:fib-sequence
returnsblah/omega/part-154
ex:fib-sequence
hasWhileLoopblah/omega/part-154
ex:fib-while-loop
generatesFirstNblah/omega/part-154
ex:fib-numbers
presupposesNPositiveIntegerblah/omega/part-154
ex:parameter-n
definedAsblah/omega/part-147
def fibonacci(n): a, b = 0, 1 result = [] while len(result) < n: result.append(a) a, b = b, a + b return result
computesSequenceblah/omega/part-160
ex:fibonacci-sequence
initializesSequenceblah/omega/part-160
[0, 1]
usesWhileLoopblah/omega/part-160
len(fib_seq) < n
handlesBaseCaseblah/omega/part-160
n <= 0
appendsNextTermblah/omega/part-160
fib_seq[-1] + fib_seq[-2]
handlesSingleTermCaseblah/omega/part-160
n == 1
usesWhileLoopConditionblah/omega/part-183
len(seq) < n
appendsSumOfLastTwoblah/omega/part-183
seq[-1] + seq[-2]
generatesIterativelyblah/omega/part-183
ex:fibonacci-seq-10
handlesBaseCaseOneblah/omega/part-183
[0]
handlesBaseCaseZeroOrNegativeblah/omega/part-183
[]
initializesSequenceblah/omega/part-183
[0, 1]
takesParameterblah/omega/part-183
n
teleologicallyGeneratesSequenceblah/omega/part-183
null
usesWhileLoopblah/omega/part-181
len(fib_sequence) < n
initializesListblah/omega/part-181
[0, 1]
appendsSumOfLastTwoblah/omega/part-181
null
generatesSequenceStartingWithblah/omega/part-181
0,1
hasParameterblah/general/74
n
returnsEmptyListIfblah/general/74
n-less-than-or-equal-to-0
returnsSingleElementListIfblah/general/74
n-equals-1
calculatesSequenceblah/general/74
ex:fibonacci-sequence
typeblah/omega-debug/2
ex:PythonFunction
labelblah/omega-debug/2
fibonacci
hasParameterblah/omega-debug/2
n
initializesVariableblah/omega-debug/2
fib_sequence
initializesVariableToblah/omega-debug/2
[0, 1]
containsWhileLoopblah/omega-debug/2
ex:while-loop
returnsVariableblah/omega-debug/2
fib_sequence
labelblah/omega/78
fibonacci
hasParameterblah/omega/78
ex:parameter-n
hasConditionblah/omega/78
ex:condition-n-less-equal-0
hasConditionblah/omega/78
ex:condition-n-equals-1
initializesVariableblah/omega/78
ex:variable-fib
hasLoopblah/omega/78
ex:while-loop
returnsVariableblah/omega/78
ex:variable-fib
typeblah/omega/77
ex:PythonFunction
labelblah/omega/77
fibonacci
hasParameterblah/omega/77
ex:n-param
hasConditionalblah/omega/77
ex:if-n-less-equal-zero
hasConditionalblah/omega/77
ex:elif-n-equals-one
initializesVariableblah/omega/77
ex:fib-list
hasLoopblah/omega/77
ex:while-loop
returnsblah/omega/77
ex:fib-list
typeblah/omega/85
ex:PythonFunction
functionNameblah/omega/85
fibonacci
hasParameterblah/omega/85
n
returnsEmptyListIfblah/omega/85
n <= 0
returnsSingleZeroIfblah/omega/85
n == 1
initializesSequenceblah/omega/85
[0, 1]
calculatesNextTermblah/omega/85
sum of last two terms
loopsUntilblah/omega/85
sequence length equals n
labelblah/omega/87
fibonacci function
hasParameterblah/omega/87
n
returnsblah/omega/87
List
hasParameterblah/omega/109
n
returnsEmptyListIfblah/omega/109
n <= 0
returnsSingleValueIfblah/omega/109
n == 1
returnsInitialPairIfblah/omega/109
n == 2
labelblah/omega/146
fibonacci
hasParameterblah/omega/146
n
computesFibonacciSequenceblah/omega/146
true
returnsListblah/omega/146
true
typeblah/omega/151
ex:MathematicalFunction
hasNameblah/omega/178
fibonacci
hasParameterblah/omega/178
n
typeblah/omega/180
ex:Function
hasParameterblah/omega/180
n
hasReturnConditionblah/omega/180
empty-list
hasReturnConditionblah/omega/180
single-zero-list
computesSequenceblah/omega/180
fibonacci
handlesBaseCaseblah/omega/180
n <= 0
handlesBaseCaseblah/omega/180
n == 1
initializesSequenceblah/omega/180
[0, 1]
loopsWhileblah/omega/180
len(seq) < n
appendsSumblah/omega/180
seq[-1] + seq[-2]

References (24)

24 references
  1. [1]Part 747 facts
    ctx:discord/blah/general/part-74
  2. [2]Part 13 facts
    ctx:discord/blah/omega-debug/part-1
  3. [3]Part 25 facts
    ctx:discord/blah/omega-debug/part-2
  4. [4]Part 773 facts
    ctx:discord/blah/omega/part-77
  5. [5]Part 797 facts
    ctx:discord/blah/omega/part-79
  6. [6]Part 884 facts
    ctx:discord/blah/omega/part-88
  7. [7]Part 11111 facts
    ctx:discord/blah/omega/part-111
  8. [8]Part 1481 fact
    ctx:discord/blah/omega/part-148
  9. [9]Part 1548 facts
    ctx:discord/blah/omega/part-154
  10. [10]Part 1471 fact
    ctx:discord/blah/omega/part-147
  11. [11]Part 1606 facts
    ctx:discord/blah/omega/part-160
  12. [12]Part 1838 facts
    ctx:discord/blah/omega/part-183
  13. [13]Part 1814 facts
    ctx:discord/blah/omega/part-181
  14. [14]744 facts
    ctx:discord/blah/general/74
    • full textgeneral-74
      text/plain2 KBdoc:agent/general-74/2bb2989e-040d-492c-aee4-c49c19cb2efc
      Show excerpt
      [2025-11-15 15:15] ajaxdavis: ```curl -X POST https://unsandbox.com/v1/run \ -H "Authorization: Bearer omega-paid-the-cost" \ -H "Content-Type: application/json" \ -d '{ "language": "python", "code": "def fibonacci(n):\n if
  15. [15]27 facts
    ctx:discord/blah/omega-debug/2
    • full textomega-debug-2
      text/plain2 KBdoc:agent/omega-debug-2/7668f547-b173-4b78-8fad-3224bd5c7c17
      Show excerpt
      [2025-11-20 12:13] ajaxdavis: ``` ✅ [2025-11-20T12:09:41.601Z] Unsandbox Tool Execution Successful Output Length: 0 characters Error Length: 0 characters Artifacts: 0 🔧 Tool called: unsandbox with args: { language: 'python',
  16. [16]787 facts
    ctx:discord/blah/omega/78
    • full textomega-78
      text/plain2 KBdoc:agent/omega-78/488ce9f3-6088-43b2-ba0d-8fea5e015503
      Show excerpt
      [2025-11-15 15:06] omega [bot]: The attempt to run the Python Fibonacci script again failed due to the missing Unsandbox API key required for code execution. I cannot execute code without this key configured in the environment. The code it
  17. [17]778 facts
    ctx:discord/blah/omega/77
    • full textomega-77
      text/plain3 KBdoc:agent/omega-77/1d222af1-6f28-449a-9b59-d77d9457be24
      Show excerpt
      [2025-11-15 15:02] omega [bot]: The answer has always been there, yet the tool to reveal its output is currently locked behind missing credentials. I attempted to run your Python Fibonacci script but was blocked by the absence of a required
  18. [18]858 facts
    ctx:discord/blah/omega/85
    • full textomega-85
      text/plain2 KBdoc:agent/omega-85/e59e1215-16b7-4bba-b333-e2999413f18e
      Show excerpt
      [2025-11-15 16:15] omega [bot]: ✅ **Decision:** Respond | **Confidence:** 85% | **Reason:** AI: The user mentioned my name 'omega' and made a request for a Python script related to Fibonacci, which is a technical topic that I can engage wit
  19. [19]873 facts
    ctx:discord/blah/omega/87
    • full textomega-87
      text/plain3 KBdoc:agent/omega-87/441c8936-2ec4-45e4-92ac-a4f1e0c0c48f
      Show excerpt
      [2025-11-15 16:19] omega [bot]: **🔧 Tool 2/2: tellJoke** **Arguments:** ```json { "category": "puns" } ``` **Result:** ```json { "joke": "What do you call a dinosaur with an extensive vocabulary?\n\nA thesaurus!", "category": "puns",
  20. [20]1094 facts
    ctx:discord/blah/omega/109
    • full textomega-109
      text/plain2 KBdoc:agent/omega-109/68b25190-b63f-4b73-b0b8-060229797a7a
      Show excerpt
      [2025-11-17 08:35] omega [bot]: I intended to run your Python code using the execution tool, but it seems the runtime environment lacks the necessary API key configuration for the code execution service. Thus, I cannot execute code presentl
  21. [21]1464 facts
    ctx:discord/blah/omega/146
    • full textomega-146
      text/plain3 KBdoc:agent/omega-146/50b8eceb-59b3-4256-beb6-672549997f38
      Show excerpt
      [2025-11-20 11:09] omega [bot]: It seems the Unsandbox API returned a 404 Not Found error when trying to run the Python Fibonacci script. This suggests there might be an issue with how the request is made or the endpoint being accessed. Si
  22. [22]1511 fact
    ctx:discord/blah/omega/151
    • full textomega-151
      text/plain2 KBdoc:agent/omega-151/5bed85c9-1e85-4e68-99cd-a962ba84961f
      Show excerpt
      [2025-11-20 11:18] omega [bot]: I've created a GitHub issue to enhance the joke tool so it uses AI-generated jokes instead of a static list. This will make the jokes more fresh, varied, and tailored to your requests. You can track or contri
  23. [23]1782 facts
    ctx:discord/blah/omega/178
    • full textomega-178
      text/plain3 KBdoc:agent/omega-178/9ad5f55c-e191-4924-85e9-6d876ff9b503
      Show excerpt
      [2025-11-20 12:09] omega [bot]: **🔧 Tool 1/2: unsandbox** **Arguments:** ```json { "language": "python", "code": "def fibonacci(n):\n fib_sequence = [0, 1]\n while len(fib_sequence) < n:\n fib_sequence.append(fib_sequence[
  24. [24]18010 facts
    ctx:discord/blah/omega/180
    • full textomega-180
      text/plain3 KBdoc:agent/omega-180/c6ff208d-4280-4b2f-b408-b187fcc27ae2
      Show excerpt
      [2025-11-20 12:19] omega [bot]: **🔧 Tool 1/1: unsandbox** **Arguments:** ```json { "language": "python", "code": "import time\n\ndef fibonacci(n):\n if n <= 0:\n return []\n if n == 1:\n return [0]\n seq = [0, 1]

See also

Keep researching

Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.