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.

A028601 Expansion of (theta_3(z)*theta_3(9z) + theta_2(z)*theta_2(9z)).

Original entry on oeis.org

1, 0, 2, 0, 0, 4, 0, 0, 2, 4, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 4, 0, 0, 2, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 8, 0, 0, 0, 0, 6, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    r[n_]:=Reduce[{x, y}.{{2, 1}, {1, 5}}.{x, y}==n, {x, y}, Integers]; Table[rn=r[n];Which[rn===False, 0, Head[rn]===Or, Length[rn], Head[rn]===And, 1], {n, 0, 105}] (* Vincenzo Librandi, Feb 22 2020 *)
  • PARI
    a(n) = if(n<1, n==0, qfrep([2, 1; 1, 5], n)[n]*2); \\ Jinyuan Wang, Feb 21 2020

Extensions

More terms from Jinyuan Wang, Feb 21 2020