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.

A127802 a(0) = 1, a(n) = 3*A036987(n), n>1.

Original entry on oeis.org

1, 3, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Paul Barry, Jan 29 2007

Keywords

Comments

Row sums of number triangle A127801.

Crossrefs

Programs

  • Mathematica
    Join[{1},3*Rest[Table[PadRight[{1}, 2^k, 0], {k, 0, 6}]//Flatten]] (* James C. McMahon, Jan 04 2025 *)
  • Python
    def A127802(n): return 3*int(not(n&(n+1))) if n else 1 # Chai Wah Wu, Jul 06 2022