An integer sequence is a sequence whose terms are integers. It can be specified by a formula, a recurrence relation, a counting interpretation or a finite computational rule. Examples include , the Fibonacci numbers and the prime numbers.
A finite prefix does not determine a unique infinite sequence. If a polynomial matches , adding leaves those values unchanged and usually changes later ones. Identifying a sequence therefore requires its definition, indexing convention and domain, rather than a few suggestive values alone.
The integer sequence proposed by Bernardo Recamán Santos starts at zero. At step , subtract if the result is positive and has not appeared before; otherwise add . The commonly written nonnegative version gives the same sequence because zero is already present. The initial values are . The addition branch can repeat a value: . Avoiding a repeated subtraction is therefore not a global injectivity condition.[ref]
Since , induction gives . A prefix scan needs only constant extra storage but can take quadratic membership work. A bitset-style bounded membership table makes each lookup constant time, while its allocation cost depends on the chosen value universe. This separates the number of generated terms from the range of possible stored values.
A divisibility sequence is an integer sequence satisfying , with any conventions about zero terms stated. For example has this property because if , then
The Fibonacci numbers also form a divisibility sequence. The stronger identity defines a strong divisibility property and does not follow from the basic implication alone. Such sequences organize common-factor questions by relationships among their indices.
A divisibility sequence associated with multiples of a point on an elliptic curve, using suitably normalized division polynomials. With and , its terms satisfy the Ward identity . Setting nearby indices gives doubling identities, enabling logarithmic-depth evaluation.
Starting with two distinct positive integers , repeatedly append the smallest integer larger than the previous term that is expressible in exactly one way as the sum of two distinct earlier terms. Requiring distinct summands and counting unordered pairs are both essential parts of the definition.
The nondecreasing sequence of positive integers beginning with in which the integer occurs exactly times. Its first terms are . The prefix sum gives the last position occupied by .
Terms of a sequence satisfying the third-order linear recurrence . Initial values vary by convention; some counting problems specify . To study divisibility by , retain three consecutive remainders modulo , a deterministic state with at most possibilities.

Articles by others on the same topic (2)

Integer sequence by Ciro Santilli 40 Created 2025-06-12 Updated 2025-07-16
An integer sequence is a list of numbers arranged in a specific order, where each number in the list (called a term) is an integer. Integer sequences can be defined in various ways, such as by a formula, a recurrence relation, or by specifying initial terms.