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.

A371970 Exponents k such that the binary expansion of 3^k has an even number of ones.

Original entry on oeis.org

1, 2, 3, 5, 6, 8, 9, 12, 14, 17, 18, 21, 23, 24, 25, 26, 27, 31, 32, 33, 35, 37, 38, 39, 40, 42, 44, 45, 47, 51, 52, 55, 57, 58, 59, 60, 61, 64, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 96, 99, 102, 104, 105, 106, 109, 112, 116, 127, 131, 132, 133, 134, 135, 136
Offset: 1

Views

Author

Hugo Pfoertner, Apr 24 2024

Keywords

Crossrefs

Complement of A223024.

Programs

  • Maple
    q:= n-> is(add(i, i=Bits[Split](3^n))::even):
    select(q, [$0..150])[];  # Alois P. Heinz, Apr 24 2024
  • Mathematica
    Select[Range[136], EvenQ@ DigitCount[3^#, 2, 1] &] (* Michael De Vlieger, Apr 24 2024 *)
  • PARI
    is_a371970(k) = hammingweight(3^k)%2 == 0