cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A220659 Irregular table: row n (n >= 1) consists of numbers 0..A084558(n).

Original entry on oeis.org

0, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2012

Keywords

Comments

The term a(n) gives the position (zero-based, starting from the left hand end of permutation) of a corresponding permutation A055089 and A060117/A060118 from which the term A055089(n) or A060118(n) is to be picked.

Examples

			Rows of this irregular table begin as:
0;
0, 1;
0, 1, 2;
0, 1, 2;
0, 1, 2;
0, 1, 2;
0, 1, 2, 3;
The term 2 occurs four times in A084558, in positions 2, 3, 4 and 5. Thus rows 2, 3, 4 and 5 (zero-based) of this irregular table are all 0,1,2.
		

Programs

Formula

a(n) = n - A220657(A220658(n)).