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.

A349014 G.f. A(x) satisfies: A(x) = 1 + x + x^2 * A(x) / (1 - x) + x^2 * A(x)^2.

Original entry on oeis.org

1, 1, 2, 4, 9, 20, 47, 111, 270, 663, 1656, 4174, 10636, 27308, 70651, 183902, 481436, 1266515, 3346793, 8879116, 23642034, 63156917, 169222939, 454660940, 1224650739, 3306338583, 8945780742, 24252558183, 65872671839, 179228552638, 488443704486
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 05 2021

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 30; A[] = 0; Do[A[x] = 1 + x + x^2 A[x]/(1 - x) + x^2 A[x]^2 + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
    a[0] = a[1] = 1; a[n_] := a[n] = Sum[a[k] (1 + a[n - k - 2]), {k, 0, n - 2}]; Table[a[n], {n, 0, 30}]

Formula

a(0) = a(1) = 1; a(n) = Sum_{k=0..n-2} a(k) * (1 + a(n-k-2)).
a(n) ~ sqrt(1/r + (2-r)*s/(1-r)^2 + 2*s^2) / (2*sqrt(Pi)*n^(3/2)*r^n), where r = 0.3495518575342322867499973927570340375314361958565... and s = 3.323404276086477625771682790702806844309937221726... are real roots of the system of equations 1 + r + r^2*s*(1/(1-r) + s) = s, r^2*(1/(1-r) + 2*s) = 1. - Vaclav Kotesovec, Nov 06 2021

A349015 G.f. A(x) satisfies: A(x) = 1 + x * A(x) / (1 - x) - x * A(x)^2.

Original entry on oeis.org

1, 0, 1, 0, 2, -1, 5, -6, 16, -28, 62, -125, 267, -565, 1213, -2618, 5686, -12418, 27248, -60048, 132848, -294930, 656878, -1467257, 3286219, -7378239, 16603459, -37441989, 84599855, -191501531, 434224405, -986161958, 2243009870, -5108859820, 11651743902
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 05 2021

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 34; A[] = 0; Do[A[x] = 1 + x A[x]/(1 - x) - x A[x]^2 + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
    a[0] = 1; a[n_] := a[n] = Sum[a[k] (1 - a[n - k - 1]), {k, 0, n - 1}]; Table[a[n], {n, 0, 34}]

Formula

a(0) = 1; a(n) = Sum_{k=0..n-1} a(k) * (1 - a(n-k-1)).
a(n) = 1 - Sum_{k=0..n-1} (-1)^k * A007477(k).
a(n) ~ 3^(1 + n) * (1/((1 - 2/(19 - 3*sqrt(33))^(1/3) - (1/2)*(19 - 3*sqrt(33))^(1/3))^n * ((19 - 3*sqrt(33))^(1/6)*(2 + (19 - 3*sqrt(33))^(1/3))^2 * n^(3/2) * sqrt(((-1951699 + 339747*sqrt(33))*Pi) / (-70717234 + 12310290*sqrt(33) + (19 - 3*sqrt(33))^(2/3) * (-3903398 + 679494*sqrt(33)) + (19 - 3*sqrt(33))^(1/3) * (-35358617 + 6155145*sqrt(33))))))). - Vaclav Kotesovec, Nov 17 2021

A348328 Records inventory sequence: Record the number of record terms seen thus far, then the number of zero terms, then number of 1's, then 2's, etc until recording another zero term, at which point the count is repeated, as above.

Original entry on oeis.org

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

Views

Author

David James Sycamore, Oct 07 2021

Keywords

Comments

The sequence proceeds in cycles (rows; see example) between consecutive zero terms. Each cycle starts with the number of records seen so far and then records the cardinality of 1's, 2's, etc, until reaching a number whose cardinality is zero, because it has not yet been observed in the sequence. At this point another zero is recorded, the count is reset, and repeated as above. Records may occur mid cycle (away from a zero). The first of these is 2 (count of 1's) seen in the 2nd cycle, the next is 6 (count of 3's) seen in the 5th. These become more common as the sequence progresses. The term immediately following a zero is the current number of records seen so far. It is the sum of the number of records which have occurred between zeros so far, and the number of zeros.
Initially, the number of records is itself a record, and records over the first few hundred terms are the nonnegative integers. This changes at a(435) = 29, after which the next record is 31. Although records appear at approximately one per cycle, there are cycles later which exhibit no records.
The scatter plot depicts a chaotic tangle of trajectories (cardinalities), in which the only apparent order is the appearance of quasi parallel closely set twin curves recording the cardinalities of 0 (lower), and records (upper). As n increases the upper of these curves separates further from the lower in a number of discrete steps which have not yet been explained.

Examples

			a(0) = 0 because so far no terms have been seen, hence no records.
Following zero term a(0) we reset the count and a(1) = 1 since a(0) = 0 is a record term.
a(2) = 1, the number of 0's seen thus far,
a(3) = 2, the number of 1's,
a(4) = 1 the number of 2's,
a(5) = 0 because no 3's have been seen thus far.
Following a(5) = 0, we reset the count and record a(6) = 3, the number of record terms (0,1,2) seen thus far.
a(7) = 2 since at this point the 2 zero terms have been counted; etc.
As an irregular table the sequence starts:
0;
1, 1, 2, 1, 0;
3, 2, 3, 2, 2, 0;
4, 3, 3, 4, 4, 3, 0;
5, 4, 3, 4, 6, 5, 2, 1, 0;
7, 5, 4, 5, 6, 6, 4, 3, 1, 0;
8, 6, 5, 5, 7, 7, 6, 5, 3, 1, 0;
...
		

Crossrefs

Programs

  • Mathematica
    Block[{c, k, m, r = 0}, c[-1] = 1; c[0] = 1; {0}~Join~Reap[Do[k = -1; While[IntegerQ[c[k]], Set[m, c[k]]; Sow[m]; If[IntegerQ@ c[m], c[m]++, c[m] = 1]; If[m > r, Set[r, m]; c[-1]++]; k++]; Sow[0]; c[0]++, 11]][[-1, -1]]] (* Michael De Vlieger, Oct 14 2021 *)
Showing 1-3 of 3 results.