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

A030777 The first list after the following procedure: starting with a list [3] and an empty list, repeatedly add the distinct values in both lists in descending order to the second list and add the corresponding frequencies of those values to the first list.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The length of the first row after stage k is 1, 2, 4, 7, 10, 15, 22, 31, 42, 55, 70, 87, 106, ... - Peter Kagey, Apr 09 2020

Examples

			Stage 1: [
  [3],
  []
]
Stage 2: [
  [3, 1],
     [3]
]
Stage 3: [
  [3, 1, 2, 1],
     [3, 3, 1]
]
Stage 4: [
  [3, 1, 2, 1, 3, 1, 3],
     [3, 3, 1, 3, 2, 1]
]
Stage 5: [
  [3, 1, 2, 1, 3, 1, 3, 6, 2, 5],
     [3, 3, 1, 3, 2, 1, 3, 2, 1]
]
Stage 6: [
  [3, 1, 2, 1, 3, 1, 3, 6, 2, 5, 1, 1, 7, 4, 6],
     [3, 3, 1, 3, 2, 1, 3, 2, 1, 6, 5, 3, 2, 1]
]
		

Crossrefs

The second row is A030778.
Cf. A030717.

Programs

  • Ruby
    def a030777_list(generations)
        rows = [[3], []]
        (2..generations).each do
            new_additions = rows.flatten.uniq.sort.reverse.map do |j|
                [rows.flatten.count(j), j]
            end
            rows = rows.zip(new_additions.transpose).map { |r, n| r + n }
        end
        rows[0]
    end # Peter Kagey, Apr 09 2020

A030708 The second list after the following procedure: starting with a list [1] and an empty list, repeatedly add the distinct values already in both lists 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, 1, 3, 1, 3, 4, 1, 2, 3, 4, 6, 1, 2, 3, 4, 6, 8, 1, 2, 3, 4, 5, 6, 8, 11, 1, 2, 3, 4, 5, 6, 8, 11, 13, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 22, 1, 2
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A030707 (1st list).

Extensions

Name revised in line with A030778 by Peter Munn, Oct 08 2022

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

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The first list is A030757.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 08 2022

A030718 The second 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, 1, 2, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 18, 20
Offset: 1

Views

Author

Keywords

Examples

			Second list begins:
  1;
  1;
  1, 2;
  1, 2;
  1, 2, 3;
  1, 2, 3;
  1, 2, 3, 4;
  1, 2, 3, 4, 5;
  1, 2, 3, 4, 5, 6;
  1, 2, 3, 4, 5, 6, 7;
  1, 2, 3, 4, 5, 6, 7;
  1, 2, 3, 4, 5, 6, 7, 8;
  1, 2, 3, 4, 5, 6, 7, 8, 9, 11;
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15;
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 18;
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 18, 20;
		

Crossrefs

Cf. A030717 (1st list).

Programs

  • Mathematica
    s = t = {{1}}; Do[AppendTo[t, BinCounts[#, {1, Max[#] + 1}] &[Flatten[t]]]; AppendTo[s, Union@ Flatten@ t], {12}]; Flatten[s] (* Michael De Vlieger, Nov 15 2022, after Peter J. C. Moses at A030717 *)

Extensions

Name revised in line with A030778 by Peter Munn, Oct 11 2022

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

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The first list is A030727.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 08 2022

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

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The 1st list is A030737.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 09 2022

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

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The 1st list is A030747.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 09 2022

A030768 The second list after the following procedure: starting with a list [2] and an empty list, repeatedly add the distinct values already in both lists in descending order to the second list and add the corresponding frequencies of those values to the first list.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The 1st list is A030767.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 09 2022

A030788 The second list after the following procedure: starting with a list [4] and an empty list, repeatedly add the distinct values already in both lists in descending order to the second list and add the corresponding frequencies of those values to the first list.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

The 1st list is A030787.

Extensions

Name revised in line with A030778 by Peter Munn, Oct 09 2022
Showing 1-9 of 9 results.