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.

A385435 Row sums of A385434.

Original entry on oeis.org

1, 2, 2, 4, 4, 8, 2, 4, 4, 8, 8, 16, 4, 8, 8, 16, 13, 26, 2, 4, 4, 8, 8, 16, 4, 8, 8, 16, 16, 32, 8, 16, 16, 32, 26, 52, 4, 8, 8, 16, 13, 26, 8, 16, 16, 32, 26, 52, 13, 26, 26, 52, 40, 80, 2, 4, 4, 8, 8, 16, 4, 8, 8, 16, 16, 32, 8, 16, 16, 32, 26, 52, 4, 8, 8
Offset: 0

Views

Author

David Radcliffe, Jun 28 2025

Keywords

Crossrefs

Programs

  • Mathematica
    Total/@Table[Mod[QBinomial[n, k, 2], 3], {n, 0,74}, {k, 0, n}]  (* James C. McMahon, Jun 29 2025 *)
  • Python
    from gmpy2 import digits
    def A385435(n): return 3*3**(s:=digits(n>>1,3)).count('2')-1<>1,3)).count('2')-1<>1 # Chai Wah Wu, Jul 10 2025

Formula

a(2n) = A051638(n), a(2n+1) = 2*A051638(n).