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-4 of 4 results.

A075992 Duplicate of A022294.

Original entry on oeis.org

4, 5, 7, 7, 10, 10, 10, 37, 37, 37, 37, 55, 55, 55, 55, 55, 55, 55, 82, 82, 82, 82, 82, 82
Offset: 1

Views

Author

Keywords

A074300 Position of first repeat of the opening sequence of length n occurring after the first repeat of the opening sequence of length n-1 in the Kolakoski sequence (A000002).

Original entry on oeis.org

4, 5, 7, 10, 25, 37, 55, 82, 137, 164, 205, 307, 460, 542, 1057, 1319, 1583, 1736, 1976, 2370, 2921, 3717, 4380, 4503, 4965, 5572, 6308, 6752, 7446, 10389, 10659, 12782, 15585, 15991, 19884, 20154, 23374, 23985, 24638, 26638, 27802, 30495, 35981, 45747, 53975
Offset: 1

Views

Author

Jon Perry, Sep 21 2002

Keywords

Examples

			a(3)=7 because A000002 begins 1,2,2 and this first repeats at position 7.
		

Crossrefs

Programs

  • C
    See Links section.
  • Maple
    lim:=1000: s:=[1, 2, 2]: for n from 3 to lim do for i from 1 to s[n] do s:=[op(s), 1+((n-1)mod 2)]: od: od: k:=1: for n from 1 to 1400 do inseq:=true: for m from 1 to k do if(not s[n+m]=s[m])then inseq:=false:break: fi: od: if(inseq)then printf("%d, ",n+1): k:=k+1:fi: od: # Nathaniel Johnston, May 02 2011

Extensions

Extended and edited by John W. Layman, Sep 28 2002

A022295 Least k>1 such that first n terms of Kolakoski sequence A000002 repeat in reverse order beginning at k-th term.

Original entry on oeis.org

4, 3, 2, 7, 16, 15, 14, 75, 74, 73, 72, 296, 295, 294, 293, 292, 291, 290, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 6253, 6252, 6251, 6250, 6249, 6248, 6247, 6246, 6245, 6244, 6243, 6242, 6241, 6240, 6239, 9379, 9378, 9377, 9376, 9375, 9374, 9373
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    (* Here, the condition k>1 is removed, so the 1st term is 1 instead of 4. *)
    n = 28; w = Prepend[Nest[Flatten[Partition[#, 2] /. {{2, 2} -> {2, 2, 1, 1}, {2, 1} -> {2, 2, 1}, {1, 2} -> {2, 1, 1}, {1, 1} -> {2, 1}}] &, {2, 2}, n], 1];
    wStr = ToString[FromDigits[w]];
    Map[StringPosition[wStr, StringReverse[StringTake[wStr, #]],1][[1]][[1]] &, Range[100]]   (* Peter J. C. Moses, Feb 18 2021 *)

A022296 Least k>1 such that complement of first n terms of Kolakoski sequence (A000002) repeats beginning at k-th term.

Original entry on oeis.org

2, 3, 3, 3, 15, 15, 15, 15, 15, 15, 15, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • C
    See Links section.
Showing 1-4 of 4 results.