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.

A331827 Positive negabinary-Niven numbers k (A331728) such that -k is a negative negabinary-Niven number (A331819).

Original entry on oeis.org

2, 3, 4, 6, 8, 9, 12, 15, 16, 18, 20, 24, 28, 30, 32, 33, 36, 40, 42, 48, 54, 56, 60, 63, 64, 66, 68, 72, 78, 80, 84, 90, 96, 100, 102, 108, 112, 114, 120, 124, 126, 128, 129, 132, 136, 138, 140, 144, 150, 156, 160, 162, 168, 174, 175, 180, 186, 192, 198, 200
Offset: 1

Views

Author

Amiram Eldar, Jan 28 2020

Keywords

Comments

Positive numbers k that are divisible by the sums of digits in the negabinary representations of both k and -k.
All the powers of 2 above 1 are terms.

Crossrefs

Intersection of A331728 and A331819.

Programs

  • Mathematica
    negaBinWt[n_] := negaBinWt[n] = If[n==0, 0, negaBinWt[Quotient[n-1, -2]] + Mod[n, 2]]; seqQ[n_] := And @@ (Divisible[n, negaBinWt[#]] & /@ {-n, n}); Select[Range[200], seqQ]