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

A309048 Expansion of Product_{k>=0} (1 + x^(3^k) + x^(2*3^k) - x^(3^(k+1))).

Original entry on oeis.org

1, 1, 1, 0, 1, 1, 0, 1, 1, -1, 0, 0, 1, 1, 1, 0, 1, 1, -1, 0, 0, 1, 1, 1, 0, 1, 1, -2, -1, -1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, -1, 0, 0, 1, 1, 1, 0, 1, 1, -2, -1, -1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, -1, 0, 0, 1, 1, 1, 0, 1, 1, -3, -2, -2, 1, -1, -1, 0, -1, -1, 2, 1, 1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1
Offset: 0

Views

Author

Ilya Gutkovskiy, Jul 09 2019

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 109; CoefficientList[Series[Product[(1 + x^(3^k) + x^(2 3^k) - x^(3^(k + 1))), {k, 0, Floor[Log[3, nmax]] + 1}], {x, 0, nmax}], x]
    nmax = 109; A[] = 1; Do[A[x] = (1 + x + x^2 - x^3) A[x^3] + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
    a[0] = 1; a[n_] := Switch[Mod[n, 3], 0, a[n/3] - a[(n - 3)/3], 1, a[(n - 1)/3], 2, a[(n - 2)/3]]; Table[a[n], {n, 0, 109}]

Formula

G.f. A(x) satisfies: A(x) = (1 + x + x^2 - x^3) * A(x^3).
a(0) = 1; a(3*n) = a(n) - a(n-1), a(3*n+1) = a(n), a(3*n+2) = a(n).
Showing 1-1 of 1 results.