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

A055186 Cumulative counting sequence: method A (adjective-before-noun)-pairs with first term 0.

Original entry on oeis.org

0, 1, 0, 2, 0, 1, 1, 3, 0, 3, 1, 1, 2, 4, 0, 5, 1, 2, 2, 2, 3, 5, 0, 6, 1, 5, 2, 3, 3, 1, 4, 1, 5, 6, 0, 9, 1, 6, 2, 5, 3, 2, 4, 4, 5, 1, 6, 7, 0, 11, 1, 8, 2, 6, 3, 4, 4, 6, 5, 4, 6, 0, 7, 0, 8, 1, 9, 10, 0, 13, 1, 9, 2, 7, 3, 7, 4, 7, 5, 7, 6, 2, 7, 2, 8, 2, 9, 0, 10, 1, 11, 12, 0, 15, 1, 13, 2, 8, 3, 8, 4
Offset: 1

Views

Author

Clark Kimberling, Apr 27 2000

Keywords

Comments

Start with 0; at n-th step, write down what is in the sequence so far.
"Look and Say" how many times each integer (in increasing order), <= max {existing terms} appears in the sequence. Then concatenate. Sequence's graph looks roughly like that of A080096.
For the original version, where "increasing order..." is "order of 1st appearance", see A217760. The conjecture formerly placed here applies to A217760. - Clark Kimberling, Mar 24 2013

Examples

			Write 0, thus having 1 0, thus having 2 0's and 1 1, thus having 3 0's and 3 1's and 1 2, etc. 0; 1,0; 2,0,1,1; 3,0,3,1,1,2; ...
		

Crossrefs

Cf. A005150. For other versions see A051120, A079668, A079686.
Cf. A055168-A055185 (method B) and A055187-A055191 (method A).
Cf. A217760.

Programs

  • Mathematica
    s={0};Do[ta=Table[{Count[s, # ], # }&/@Range[0,Max[s]]]; s=Flatten[{s,ta}],{22}];s (* Zak Seidov, Oct 23 2009 *)

Formula

Conjectures: a(n) < 2*sqrt(n); limit as n goes to infinity Max( a(k) : 1<=k<=n)/sqrt(n) exist = 2. - Benoit Cloitre, Jan 28 2003

Extensions

Edited by N. J. A. Sloane, Jan 17 2009 at the suggestion of R. J. Mathar
Removed a conjecture. - Clark Kimberling, Oct 24 2009
Entries changed to match b-file. - N. J. A. Sloane, Oct 04 2010

A051120 Start with 1; at n-th step, write down what is in the sequence so far.

Original entry on oeis.org

1, 1, 1, 3, 1, 1, 3, 4, 1, 1, 4, 2, 3, 6, 1, 1, 6, 2, 4, 3, 3, 1, 2, 8, 1, 1, 8, 2, 6, 3, 4, 5, 3, 3, 2, 11, 1, 1, 11, 2, 8, 3, 6, 1, 5, 4, 4, 8, 3, 5, 2, 13, 1, 1, 13, 2, 11, 4, 8, 4, 6, 3, 5, 6, 4, 10, 3, 7, 2, 16, 1, 1, 16, 2, 13, 3, 11, 1, 10, 5, 8, 1, 7, 6, 6, 4, 5, 9, 4, 12, 3, 9, 2, 18, 1
Offset: 0

Views

Author

Jamie (sunshinebaby(AT)hotmail.com)

Keywords

Examples

			After 1 1 1 3 1, we see "1 3 and 4 1's", so next terms are 1 3 4 1. Then "1 4, 2 3's, 6 1's"; etc.
		

Crossrefs

Programs

  • Haskell
    import Data.List (sort, nub, group)
    a051120 n = a051120_list !! n
    a051120_list = 1 : f [1] where
      f xs = seen ++ (f $ xs ++ seen) where
        seen = look (reverse $ map length $ group xs') (reverse $ nub xs')
        xs' = sort xs
        look [] []               = []
        look (cnt:cnts) (nr:nrs) = cnt : nr : look cnts nrs
    -- Reinhard Zumkeller, Jun 22 2011
  • Mathematica
    s={1}; Do[s=Flatten[{s,{Count[s,#],#}&/@Reverse[Union[s]]}], {60}]; s (* Peter J. C. Moses, Mar 21 2013 *)

Extensions

More terms from Michael Lugo (mlugo(AT)thelabelguy.com), Dec 22 1999
a(28) corrected by Reinhard Zumkeller, Jun 22 2011

A079686 Start with 0; at n-th step, write down what is in the sequence so far.

Original entry on oeis.org

0, 1, 0, 1, 1, 2, 0, 1, 2, 3, 1, 3, 0, 2, 3, 2, 2, 5, 1, 4, 0, 1, 5, 1, 4, 3, 3, 5, 2, 6, 1, 5, 0, 1, 6, 4, 5, 2, 4, 5, 3, 6, 2, 9, 1, 6, 0, 1, 9, 0, 8, 0, 7, 4, 6, 6, 5, 4, 4, 6, 3, 8, 2, 11, 1, 7, 0, 1, 11, 0, 10, 2, 9, 2, 8, 2
Offset: 0

Views

Author

N. J. A. Sloane Jan 26 2003

Keywords

Comments

Start with the highest value currently in the sequence and count down to zero.

Examples

			After the sequence is "0, 1, 0, 1, 1, 2, 0", we see one "2", three "1"s, and three "0"s, so we add 1, 2, 3, 1, 3, 0 to the sequence.
		

Crossrefs

Cf. A005150. For other versions see A051120, A079668, A055186.

Programs

  • MATLAB
    a=[0];c=2;d=2; for j=1:7 for k=max(a):-1:0 a(c)=size(find(a(1:d-1)==k),2); a(c+1)=k; c=c+2; end; d=c; end; a' % Nathaniel Johnston, Apr 25 2011
  • Mathematica
    s={0}; Do[s=Flatten[{s, {Count[s,#],#}&/@Range[Max[s],0,-1]}], {60}]; s (* Peter J. C. Moses, Mar 21 2013 *)

Extensions

a(13) - a(75) from Nathaniel Johnston, Apr 25 2011
Showing 1-3 of 3 results.