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.

A073141 Product of the largest and smallest number having in binary representation the same number of 0's and 1's as n.

Original entry on oeis.org

0, 1, 4, 9, 16, 30, 30, 49, 64, 108, 108, 154, 108, 154, 154, 225, 256, 408, 408, 532, 408, 532, 532, 690, 408, 532, 532, 690, 532, 690, 690, 961, 1024, 1584, 1584, 1960, 1584, 1960, 1960, 2340, 1584, 1960, 1960, 2340, 1960, 2340, 2340, 2914, 1584, 1960
Offset: 0

Views

Author

Reinhard Zumkeller, Jul 16 2002

Keywords

Comments

a(n) = A073137(n) * A073138(n).

Crossrefs

Programs

  • Mathematica
    pls[n_]:=With[{d=FromDigits[#,2]&/@Select[Permutations[IntegerDigits[n,2]],#[[1]]==1&]},Max[d]Min[d]]; Join[{0},Array[pls,50]] (* Harvey P. Dale, May 29 2025 *)