OFFSET
1,2
COMMENTS
More precisely:
- g(f) is the lexicographically earliest nondecreasing sequence of positive numbers whose RUNS transform equals f,
- k(f) is the lexicographically earliest sequence of 1's and 2's whose RUNS transform equals f,
- in particular:
See A321696 for the RUNS transform of this sequence.
By applying twice the RUNS transform on this sequence, we recover the initial sequence; the same applies for A321696.
This sequence has connections with A288723; in both cases, we have sequences cyclically connected by RUNS transforms.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program for A321695
EXAMPLE
We can build this sequence alongside A321696 iteratively:
- this sequence starts with 1,
- hence A321696 starts with 1, 2 (after the initial run of 1's, we have a run of 2's),
- hence this sequence starts with 1, 2, 2, 3 (after the runs of 1's and 2's, we have a run of 3's),
- hence A321696 starts with 1, 2, 2, 1, 1, 2, 2, 2, 1,
- hence this sequence starts 1, 2, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 10,
- etc.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 17 2018
STATUS
approved
