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.

A071925 Digitally balanced numbers: binary numbers which have the same number of 0's as 1's; decimal representation: A031443.

Original entry on oeis.org

10, 1001, 1010, 1100, 100011, 100101, 100110, 101001, 101010, 101100, 110001, 110010, 110100, 111000, 10000111, 10001011, 10001101, 10001110, 10010011, 10010101, 10010110, 10011001, 10011010, 10011100, 10100011
Offset: 1

Views

Author

Reinhard Zumkeller, Jun 14 2002

Keywords

Crossrefs

Programs

  • Mathematica
    Select[FromDigits/@Tuples[{0,1},8],DigitCount[#,10,1]==DigitCount[#,10,0]&] (* Harvey P. Dale, Sep 08 2024 *)
  • Python
    from itertools import islice, count
    from sympy.utilities.iterables import multiset_permutations
    def A071925gen(): # generator of terms
        for n in count(1):
            yield from (int('1'+''.join(p)) for p in multiset_permutations('0'*n+'1'*(n-1)))
    A071925_list = list(islice(A071925gen(),30)) # Chai Wah Wu, Dec 06 2021

Formula

a(n) = A007088(A031443(n)).