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.

A030717 The first list after the following procedure: starting with a list [1] and an empty list, repeatedly add the distinct values already in the first list in ascending order to the second list and add the corresponding frequencies of those values to the first list.

Original entry on oeis.org

1, 1, 2, 2, 1, 3, 2, 3, 3, 1, 4, 3, 3, 4, 3, 5, 1, 5, 3, 6, 2, 1, 6, 4, 7, 2, 2, 1, 7, 6, 7, 3, 2, 2, 1, 8, 8, 8, 3, 2, 3, 3, 8, 9, 11, 3, 2, 3, 3, 3, 8, 10, 15, 3, 2, 3, 3, 4, 1, 1, 10, 11, 18, 4, 2, 3, 3, 5, 1, 1, 1, 1, 14, 12, 20, 5, 3, 3, 3, 5, 1, 2, 2, 1
Offset: 1

Views

Author

Keywords

Comments

The clarifying comment that follows refers to the old name, which was: Row 1, where, at stage k>1, write i in row 1 and j in row 2, where i is the number of j's in row 1, for j=1,2,...,m, where m=max number in row 1 from stages 1 to k-1; state 1 is 1 in row 1.
Numbers j for which the count is 0 are omitted, cf. A333867 for the corresponding sequence where they are included. - Sean A. Irvine, Apr 08 2020

Examples

			First list begins:
  1;
  1;
  2;
  2, 1;
  3, 2;
  3, 3,  1;
  4, 3,  3;
  4, 3,  5, 1;
  5, 3,  6, 2, 1;
  6, 4,  7, 2, 2, 1;
  7, 6,  7, 3, 2, 2, 1;
  8, 8,  8, 3, 2, 3, 3;
  8, 9, 11, 3, 2, 3, 3, 3;
		

Crossrefs

Cf. A030718 (2nd list), A030719 (row lengths), A006920.
Cf. A030707 (repeatedly adds values and frequencies from both lists).
Cf. A333867 (0 counts included, but not the counts of 0s).

Programs

  • Mathematica
    t = {{1}}; Do[AppendTo[t, BinCounts[#, {1, Max[#] + 1}] &[Flatten[t]]], {25}];
    DeleteCases[Flatten[t], 0]  (* Peter J. C. Moses, Apr 09 2020 *)

Extensions

More terms from Franklin T. Adams-Watters, Dec 14 2006
Rolled back to original definition and data by Sean A. Irvine, Apr 08 2020
Name revised in line with A030777 by Peter Munn, Oct 11 2022