Integer sequence: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>Tule-hog
 
imported>Malparti
manual revert of spam
 
Line 3: Line 3:
In [[mathematics]], an '''integer sequence''' is a [[sequence]] (i.e., an ordered list) of [[integer]]s.
In [[mathematics]], an '''integer sequence''' is a [[sequence]] (i.e., an ordered list) of [[integer]]s.


An integer sequence may be specified ''explicitly'' by giving a formula for its ''n''th term, or ''implicitly'' by giving a relationship between its terms. For example, the sequence 0, 1, 1, 2, 3, 5, 8, 13,&nbsp;... (the [[Fibonacci number|Fibonacci sequence]]) is formed by starting with 0 and 1 and then adding any two consecutive terms to obtain the next one: an implicit description {{OEIS|id=A000045}}. The sequence 0, 3, 8, 15,&nbsp;... is formed according to the formula ''n''<sup>2</sup>&nbsp;&minus;&nbsp;1 for the ''n''th term: an explicit definition.
An integer sequence may be specified ''explicitly'' by giving a formula for its ''n''th term, or ''implicitly'' by giving a relationship between its terms. For example, the sequence 0, 1, 1, 2, 3, 5, 8, 13,&nbsp;... (the [[Fibonacci number|Fibonacci sequence]]) is formed by starting with 0 and 1 and then adding any two consecutive terms to obtain the next one: an implicit description {{OEIS|id=A000045}}. The sequence 0, 3, 8, 15,&nbsp;... is formed according to the formula <math>n^2-1</math> for the ''n''th term: an explicit definition.


Alternatively, an integer sequence may be defined by a property which members of the sequence possess and other integers do not possess. For example, we can determine whether a given integer is a [[perfect number]], {{OEIS|id=A000396}}, even though we do not have a formula for the ''n''th perfect number.
Alternatively, an integer sequence may be defined by a property which members of the sequence possess and other integers do not possess. For example, we can determine whether a given integer is a [[perfect number]], {{OEIS|id=A000396}}, even though we do not have a formula for the ''n''th perfect number.


==Computable and definable sequences==
==Computable and definable sequences==
An integer sequence is '''[[computable function|computable]]''' if there exists an algorithm that, given ''n'', calculates ''a''<sub>''n''</sub>, for all ''n'' &gt; 0. The set of computable integer sequences is [[countable]]. The set of all integer sequences is [[uncountable]] (with [[cardinality]] equal to [[beth one|that of the continuum]]), and so not all integer sequences are computable.
An integer sequence is '''[[computable function|computable]]''' if there exists an algorithm that, given <math>n</math>, calculates <math>a_n</math>, for all <math>n>0</math>. The set of computable integer sequences is [[countable]]. The set of all integer sequences is [[uncountable]] (with [[cardinality]] equal to [[beth one|that of the continuum]]), and so not all integer sequences are computable.


Although some integer sequences have definitions, there is no systematic way to define what it means for an integer sequence to be definable in the universe or in any absolute (model independent) sense.
Although some integer sequences have definitions, there is no systematic way to define what it means for an integer sequence to be definable in the universe or in any absolute (model independent) sense.


Suppose the set ''M'' is a [[transitive model]] of [[ZFC set theory]]. The transitivity of M implies that the integers and integer sequences inside M are actually integers and sequences of integers. An integer sequence is a '''[[definable set|definable]] sequence relative to ''M''''' if there exists some formula ''P''(''x'') in the language of set theory, with one free variable and no parameters, which is true in ''M'' for that integer sequence and false in ''M'' for all other integer sequences. In each such ''M'', there are definable integer sequences that are not computable, such as sequences that encode the [[Turing jump]]s of computable sets.
Suppose the set <math>M</math> is a [[transitive model]] of [[ZFC set theory]]. The transitivity of <math>M</math> implies that the integers and integer sequences inside <math>M</math> are actually integers and sequences of integers. An integer sequence is a '''[[definable set|definable]] sequence relative to <math>M</math>''' if there exists some formula <math>P(x)</math> in the language of set theory, with one free variable and no parameters, which is true in <math>M</math> for that integer sequence and false in <math>M</math> for all other integer sequences. In each such <math>M</math>, there are definable integer sequences that are not computable, such as sequences that encode the [[Turing jump]]s of computable sets.


For some transitive models ''M'' of ZFC, every sequence of integers in ''M'' is definable relative to ''M''; for others, only some integer sequences are. There is no systematic way to define in ''M'' itself the set of sequences definable relative to ''M'' and that set may not even exist in some such ''M''. Similarly, the map from the set of formulas that define integer sequences in ''M'' to the integer sequences they define is not definable in ''M'' and may not exist in ''M''. However, in any model that does possess such a definability map, some integer sequences in the model will not be definable relative to the model.{{sfn|Hamkins|Linetsky|Reitz|2013}}
For some transitive models <math>M</math> of ZFC, every sequence of integers in <math>M</math> is definable relative to <math>M</math>; for others, only some integer sequences are. There is no systematic way to define in <math>M</math> itself the set of sequences definable relative to <math>M</math> and that set may not even exist in some such <math>M</math>. Similarly, the map from the set of formulas that define integer sequences in <math>M</math> to the integer sequences they define is not definable in <math>M</math> and may not exist in <math>M</math>. However, in any model that does possess such a definability map, some integer sequences in the model will not be definable relative to the model.{{sfn|Hamkins|Linetsky|Reitz|2013}}


If ''M'' contains all integer sequences, then the set of integer sequences definable in ''M'' will exist in ''M'' and be countable and countable in ''M''.
If <math>M</math> contains all integer sequences, then the set of integer sequences definable in <math>M</math> will exist in <math>M</math> and be countable and countable in <math>M</math>.


==Complete sequences==
==Complete sequences==
Line 72: Line 72:
* [[Constant-recursive sequence]]
* [[Constant-recursive sequence]]
* [[On-Line Encyclopedia of Integer Sequences]]
* [[On-Line Encyclopedia of Integer Sequences]]
** [[List of OEIS sequences]]
* [[List of integer sequences]]


==References==
==References==

Latest revision as of 00:00, 14 June 2026

Template:Short description

File:Goteborg ciag Fibonacciego.jpg
Beginning of the Fibonacci sequence on a building in Gothenburg

In mathematics, an integer sequence is a sequence (i.e., an ordered list) of integers.

An integer sequence may be specified explicitly by giving a formula for its nth term, or implicitly by giving a relationship between its terms. For example, the sequence 0, 1, 1, 2, 3, 5, 8, 13, ... (the Fibonacci sequence) is formed by starting with 0 and 1 and then adding any two consecutive terms to obtain the next one: an implicit description (sequence A000045 in the OEIS). The sequence 0, 3, 8, 15, ... is formed according to the formula n2−1 for the nth term: an explicit definition.

Alternatively, an integer sequence may be defined by a property which members of the sequence possess and other integers do not possess. For example, we can determine whether a given integer is a perfect number, (sequence A000396 in the OEIS), even though we do not have a formula for the nth perfect number.

Computable and definable sequences

An integer sequence is computable if there exists an algorithm that, given n, calculates an, for all n>0. The set of computable integer sequences is countable. The set of all integer sequences is uncountable (with cardinality equal to that of the continuum), and so not all integer sequences are computable.

Although some integer sequences have definitions, there is no systematic way to define what it means for an integer sequence to be definable in the universe or in any absolute (model independent) sense.

Suppose the set M is a transitive model of ZFC set theory. The transitivity of M implies that the integers and integer sequences inside M are actually integers and sequences of integers. An integer sequence is a definable sequence relative to M if there exists some formula P(x) in the language of set theory, with one free variable and no parameters, which is true in M for that integer sequence and false in M for all other integer sequences. In each such M, there are definable integer sequences that are not computable, such as sequences that encode the Turing jumps of computable sets.

For some transitive models M of ZFC, every sequence of integers in M is definable relative to M; for others, only some integer sequences are. There is no systematic way to define in M itself the set of sequences definable relative to M and that set may not even exist in some such M. Similarly, the map from the set of formulas that define integer sequences in M to the integer sequences they define is not definable in M and may not exist in M. However, in any model that does possess such a definability map, some integer sequences in the model will not be definable relative to the model.Script error: No such module "Footnotes".Script error: No such module "Check for unknown parameters".

If M contains all integer sequences, then the set of integer sequences definable in M will exist in M and be countable and countable in M.

Complete sequences

A sequence of positive integers is called a complete sequence if every positive integer can be expressed as a sum of values in the sequence, using each value at most once.

Examples

Integer sequences that have their own name include:

<templatestyles src="Div col/styles.css"/>

See also

References

<templatestyles src="Reflist/styles.css" />

Script error: No such module "Check for unknown parameters".

  • Script error: No such module "citation/CS1"..

External links

Template:Series (mathematics) Script error: No such module "Authority control".