Search results
Results from the WOW.Com Content Network
In mathematics and computer science, Recamán's sequence [1] [2] is a well known sequence defined by a recurrence relation. Because its elements are related to the previous elements in a straightforward way, they are often defined using recursion .
Name First elements Short description OEIS Kolakoski sequence: 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, ... The n th term describes the length of the n th run : A000002: Euler's ...
The maximum number of pieces from consecutive cuts are the numbers in the Lazy Caterer's Sequence. When a circle is cut n times to produce the maximum number of pieces, represented as p = f (n), the n th cut must be considered; the number of pieces before the last cut is f (n − 1), while the number of pieces added by the last cut is n.
Lucas numbers have L 1 = 1, L 2 = 3, and L n = L n−1 + L n−2. Primefree sequences use the Fibonacci recursion with other starting points to generate sequences in which all numbers are composite. Letting a number be a linear function (other than the sum) of the 2 preceding numbers. The Pell numbers have P n = 2P n−1 + P n−2.
The sequence also has a variety of relationships with the Fibonacci numbers, like the fact that adding any two Fibonacci numbers two terms apart in the Fibonacci sequence results in the Lucas number in between. [3] The first few Lucas numbers are 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322, 521, 843, 1364, 2207, 3571, 5778, 9349, ... .
An example is 47, because the Fibonacci sequence starting with 4 and 7 (4, 7, 11, 18, 29, 47) reaches 47. A repfigit can be a tribonacci sequence if there are 3 digits in the number, a tetranacci number if the number has four digits, etc.
[2] [3] The idea of the look-and-say sequence is similar to that of run-length encoding. If started with any digit d from 0 to 9 then d will remain indefinitely as the last digit of the sequence. For any d other than 1, the sequence starts as follows: d, 1d, 111d, 311d, 13211d, 111312211d, 31131122211d, …
As another example, π is the limit of the sequence (3, 3.1, 3.14, 3.141, 3.1415, ...), which is increasing. A related sequence is the sequence of decimal digits of π, that is, (3, 1, 4, 1, 5, 9, ...). Unlike the preceding sequence, this sequence does not have any pattern that is easily discernible by inspection.