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.

Showing 1-2 of 2 results.

A156253 Least k such that A054353(k) >= n.

Original entry on oeis.org

1, 2, 2, 3, 3, 4, 5, 6, 6, 7, 8, 8, 9, 9, 10, 11, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 27, 28, 29, 30, 30, 31, 32, 33, 33, 34, 35, 35, 36, 36, 37, 38, 38, 39, 39, 40, 41, 42, 42, 43, 44, 44, 45, 45, 46, 47, 47, 48, 49, 50
Offset: 1

Views

Author

Benoit Cloitre, Feb 07 2009

Keywords

Comments

a(n)=1 plus the number of symbol changes in the first n terms of A000002. - Jean-Marc Fedou and Gabriele Fici, Mar 18 2010
From N. J. A. Sloane, Nov 12 2018: (Start)
This seems to be A001462 rewritten so the run lengths are given by A000002. The companion sequence, A000002 rewritten so the run lengths are given by A001462, is A321020.
Note that Kolakoski's sequence A000002 and Golomb's sequence A001462 have very similar definitions, although the asymptotic behavior of A001462 is well-understood, while that of A000002 is a mystery. The asymptotic behavior of the two hybrids A156253 and A321020 might be worth investigating. (End)
To expand upon N. J. A. Sloane's comments, it's worth noting that Golomb's sequence has a formula from Colin Mallows: g(n) = g(n-g(g(n-1))) + 1, which closely resembles a(n) = a(n-gcd(a(a(n-1)),2)) + 1. - Jon Maiga, May 16 2023

Crossrefs

Programs

  • Mathematica
    a2 = {1, 2, 2}; Do[ a2 = Join[a2, {1 + Mod[n - 1, 2]}], {n, 3, 80}, {i, 1, a2[[n]]}]; a3 = Accumulate[a2]; a[1] = 1; a[n_] := a[n] = For[k = a[n - 1], True, k++, If[a3[[k]] >= n, Return[k]]]; Table[a[n], {n, 1, 80}] (* Jean-François Alcover, Jun 18 2013 *)
    a[1] = 1;
    a[n_]:=a[n]=a[n-GCD[a[a[n - 1]], 2]]+1
    Array[a, 100] (* Jon Maiga, May 16 2023 *)

Formula

Conjecture: a(n) should be asymptotic to 2n/3.
Length of n-th run of the sequence = A000002(n). - Benoit Cloitre, Feb 19 2009
Conjecture: a(n) = (a(a(n-1)) mod 2) + a(n-2) + 1. - Jon Maiga, Dec 09 2021
a(n) = a(n-gcd(a(a(n-1)), 2)) + 1. - Jon Maiga, May 16 2023

A321695 For any sequence f of positive integers, let g(f) be the unique Golomb-like sequence with run lengths given by f and let k(f) be the unique Kolakoski-like sequence with run lengths given by f and initial term 1; this sequence is the unique sequence f satisfying f = g(k(f)).

Original entry on oeis.org

1, 2, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 10, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 17, 18, 19, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 28, 29, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 40, 41, 42, 43, 44, 45, 46, 47
Offset: 1

Views

Author

Rémy Sigrist, Nov 17 2018

Keywords

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.

Examples

			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.
		

Crossrefs

Programs

  • PARI
    See Links section.
Showing 1-2 of 2 results.