Ducci sequence

From Wikipedia, the free encyclopedia

A Ducci sequence is a sequence of n-tuples of integers. Given an n-tuple of integers (a1,a2,...,an), a new n-tuple is formed by taking the absolute differences: ( | a1a2 | , | a2a3 | ,..., | ana1 | ). Put another way: Arrange n numbers on a circle and make a new circle by taking the difference between them. Ignore any minus signs and repeat the operation.

It has been proven that one will always reach the sequence (0,0,...,0) in a finite number of steps if n is a power of 2

With n being a finite number, the sequence must of course start repeating itself sooner or later. It has been proved that if n is not a power of two, the Ducci sequence will either converge to zeros or settle on a loop with 'binary' sequences. That is, with elements composed of only two different digits.

[edit] Example sequences

This 5-tuple sequence enters a period 15 binary 'loop' after 7 iterations.


\begin{matrix}
1     5     7     9     9\\
4     2     2     0     8\\
2     0     2     8     4\\
2     2     6     4     2\\
0     4     2     2     0\\
4     2     0     2     0\\
2     2     2     2     4\\
\end{matrix}


\begin{matrix}
0     0     0     2     2\\
0     0     2     0     2\\
0     2     2     2     2\\
2     0     0     0     2\\
2     0     0     2     0\\
2     0     2     2     2\\
2     2     0     0     0\\
0     2     0     0     2\\
2     2     0     2     2\\
0     2     2     0     0\\
2     0     2     0     0\\
2     2     2     0     2\\
0     0     2     2     0\\
0     2     0     2     0\\
2     2     2     2     0\\
\end{matrix}


\begin{matrix}
0     0     0     2     2\\
0     0     2     0     2\\
\end{matrix}


The following sequence has length 6 which is not a power of two, but it still converges to zeros:


\begin{matrix}
1     2     1     2     1     0\\
1     1     1     1     1     1\\
0     0     0     0     0     0\\
\end{matrix}


Ducci sequences are also known as the n-numbers game. Numerous extensions and generalisations exist.

[edit] External links

This number theory-related article is a stub. You can help Wikipedia by expanding it.