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.

A098596 Length of the n-th term in the Roman numeral Look and Say sequence A098595.

Original entry on oeis.org

1, 2, 3, 4, 3, 6, 9, 8, 10, 15, 24, 23, 29, 36, 49, 54, 62, 75, 92, 105, 115, 138, 161, 180, 202, 231, 268, 297, 331, 376, 429, 472, 524, 593, 666, 731, 815, 912, 1017, 1120, 1244, 1383, 1536, 1689, 1873, 2074, 2291, 2526, 2790, 3083, 3398, 3749, 4131, 4552, 5023
Offset: 1

Views

Author

Mark Hudson (mrmarkhudson(AT)hotmail.com), Sep 17 2004

Keywords

Examples

			The 7th term in A098595 = 111115111 so a(7)=9.
		

Crossrefs

Cf. A098595. A005150 for original Look and Say sequence.

Programs

  • Mathematica
    p={4,8,10,10,10,10,6,2,-4,-8,-10,-10,-6,-9,-13,-14,-4,8,21,28,27,18,13,23,39,50,49,43,34,26,27,35,43,40,29,15,7,3,4,9,14,14,9,4,1};
    q={-1,-2,-3,-2,1,4,5,3,-1,-4,-3,1,5,5,1,-4,-6,-3,2,5,4,0,-4,-5,-3,0,2,2,1};
    gf=Fold[x #1+#2&,0,p]/Fold[x #1+#2&,0,q];
    CoefficientList[Series[gf,{x,0,99}],x] (* Peter J. C. Moses, Jun 21 2013 *)

Formula

a(n) = length(A098595(n)).

Extensions

More terms from David Wasserman, Feb 26 2008

A363054 Look and say sequence: describe the previous term (method A, starting with 20).

Original entry on oeis.org

20, 1210, 11121110, 31123110, 132112132110, 11131221121113122110, 311311222112311311222110, 1321132132211213211321322110, 11131221131211132221121113122113121113222110, 3113112221131112311332211231131122211311123113322110
Offset: 1

Views

Author

Julia Zimmerman, May 15 2023

Keywords

Examples

			The term after 1210 is given by saying "I see one 1, one 2, one 1, and one 0", and then writing down the digits as 11-12-11-10, yielding 11121110.
		

Crossrefs

Programs

  • Mathematica
    NestList[FromDigits@ Flatten@ Map[Reverse@ Tally[#][[1]] &, Split@ IntegerDigits[#] ] &, 20, 12] (* Michael De Vlieger, Jul 05 2023 *)
  • Python
    from itertools import count, groupby, islice
    def LS(n): return int(''.join(str(len(list(g)))+k for k, g in groupby(str(n))))
    def agen(an=20): yield an; yield from (an:=LS(an) for n in count(1))
    print(list(islice(agen(), 10))) # Michael S. Branicky, May 15 2023
Showing 1-2 of 2 results.