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.

A038446 Sums of 4 distinct powers of 10.

Original entry on oeis.org

1111, 10111, 11011, 11101, 11110, 100111, 101011, 101101, 101110, 110011, 110101, 110110, 111001, 111010, 111100, 1000111, 1001011, 1001101, 1001110, 1010011, 1010101, 1010110, 1011001, 1011010, 1011100, 1100011, 1100101, 1100110, 1101001, 1101010, 1101100, 1110001
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Total/@Subsets[10^Range[0,6],{4}]//Union (* Harvey P. Dale, Nov 07 2021 *)
  • Python
    from itertools import islice
    def A038446_gen(): # generator of terms
        yield int(bin(n:=15)[2:])
        while True: yield int(bin((n:=n^((a:=-n&n+1)|(a>>1)) if n&1 else ((n&~(b:=n+(a:=n&-n)))>>a.bit_length())^b))[2:])
    A038446_list = list(islice(A038446_gen(),20)) # Chai Wah Wu, Mar 11 2025

Extensions

Offset corrected by Amiram Eldar, Jul 12 2022