Content deleted Content added
Undid revision 429666817 by 71.179.167.101 (talk) rvv |
Recursion != merely repeating the same action multiple times |
||
Line 20:
* Fib(1) is 1 [base case]
* For all integers n > 1: Fib(n) is (Fib(n-1) + Fib(n-2)) [recursive definition]
Many mathematical axioms are based upon recursive rules. For example, the formal definition of the [[natural number]]s in [[set theory]] follows: 1 is a natural number, and each natural number has a successor, which is also a natural number. By this base case and recursive rule, one can generate the set of all natural numbers
|