This site is supported by donations to The OEIS Foundation.
Offsets
From OeisWiki
This article needs more work.
Please help by expanding it!
The offset in an OEIS sequence entry gives the index of the first term of the sequence (in other words, it tells us where the sequence starts). Given a sequence of a function with offset 3, this tells us that the first listed corresponds to . Below are some examples.
Contents |
Examples of offsets
Offset −1
Of the small number of negative offsets in the OEIS, most are offset −1.
- A002206 Numerators of logarithmic numbers (also of Gregory coefficients G(n)).
Offset 0 (Functions that are defined for all nonnegative integers)
- Functions that are defined for all nonnegative integers, and more pointedly, are a mapping from the integers to the integers. For example, . Theoretically, we could start our listing at −3 or −7, but these are rather arbitrary choices, and the choice of doesn't give a well-ordered (i.e. no first term) sequence. Therefore, the logical offset is 0 (indeed that is the offset of A000290). In any case, for this example, since , this presents no loss of information (otherwise, there may be two separate sequences, one for and the other for ).
- Functions that are defined for all nonnegative integers. For example, (see A000196).^{[1]}
- Decimal expansion of constants that are in the interval [0.1, 1). For example, the decimal expansion of the Euler-Mascheroni constant, A001620. See OEIS format for decimal representation of constants for a more in-depth discussion of the offset of decimal expansions.
Offset 1 (Lists) (Functions that are defined for all positive integers)
The majority of sequences in the OEIS have offset 1. In particular, lists should should be 1-indexed (rather than 0-indexed). For example, in Leporello's famous "catalogue aria" from Don Giovanni, he sings five numbers, "seicento e quaranta," "duecento e trentuna," "cento," "novantuna," "mille e tre."^{[2]} So, 640 is the first number he sings, and therefore, the offset of A027885 is 1.
Offset 2
- A112823 Largest prime in any decomposition of into a sum of two primes. If a smaller value was chosen, not all values would be defined.
Offset 3
- A002374 Largest prime in any decomposition of into a sum of two odd primes. If a smaller value was chosen, not all values would be defined.
Large offsets
- Offset 12978189: A193864 Decimal expansion of the largest known prime number (as of 2011): 2^{43112609} − 1
- Offset 666262452970848504: A202955 Decimal expansion of
Some sequences have very large natural offsets, too large for inclusion in the Offset field. Such sequences are given an offset of 1 and an explanatory comment is added.
Negative offsets
Negative offsets occur almost only in the "keyword:cons" sequences, cf the OEIS format for decimal representation of constants:
- Offset −14827: A143531 Decimal expansion of the largest zero of Riemann's prime counting function R(x).
- Offset −44: A078302 Decimal expansion of Planck time.
Secondary offset
Sequence entries (generally) show two numbers in the offset field. When contributing a new sequence or revising the initial term of an old sequence, you need only concern yourself with the first number.
The second number is automatically assigned, and gives the first term such that | a(n) | > 1. For example, with the Fibonacci numbers, 0, 1, 1, 2, 3, 5, 8, 13, ..., the sequence starts with F_{0} and the fourth term shown is the first greater than 1. Thus the original contributor of the sequence put down 0 for the offset and the computer added a 4, hence the offset field of A000045 reads 0, 4
. If there are no terms with absolute value greater than 1, this second number is sometimes omitted (see, e.g., A038219) and otherwise entered as 1.
In the unusual case that the first term with absolute value greater than 1 is not within term visibility, the second offset may be added manually (e.g., A193095). Note that it counts the terms in the sequence, not the offset of that first term!
See also
Name · Data · Offset · Comments · References · Links · Formula · Example · Maple · Mathematica · Prog · Crossrefs · Keyword · Author · Extensions |
Notes
- ↑ Of course for negative integers, we need only multiply the values of this sequence by the imaginary unit, assuming we understand the definition as being , and that returns a real value that the floor function can then handle ordinarily.
- ↑ Aaron Greene, Leporello's "Catalog Aria" from Mozart's opera Don Giovanni: Lyrics and English Translation About.com