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.

A261366 a(n) = number of even terms in row n of triangle A261363.

Original entry on oeis.org

0, 1, 1, 2, 1, 4, 3, 4, 1, 8, 7, 8, 5, 10, 7, 8, 1, 16, 15, 16, 13, 18, 15, 16, 9, 22, 19, 20, 13, 22, 15, 16, 1, 32, 31, 32, 29, 34, 31, 32, 25, 38, 35, 36, 29, 38, 31, 32, 17, 46, 43, 44, 37, 46, 39, 40, 25, 50, 43, 44, 29, 46, 31, 32, 1, 64, 63, 64, 61
Offset: 0

Views

Author

Reinhard Zumkeller, Aug 16 2015

Keywords

Crossrefs

Programs

  • Haskell
    a261366 = sum . map ((1 -) . flip mod 2) . a261363_row
  • Mathematica
    a[n_] := Count[Accumulate[Array[Boole[0 == BitAnd[n - #, #]] &, n + 1, 0]], ?EvenQ]; Array[a, 100, 0] (* _Amiram Eldar, May 13 2025 *)

Formula

For n > 0: a(n) = n + 1 - A001316(n-1).