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.

A038448 Sums of 6 distinct powers of 10.

Original entry on oeis.org

111111, 1011111, 1101111, 1110111, 1111011, 1111101, 1111110, 10011111, 10101111, 10110111, 10111011, 10111101, 10111110, 11001111, 11010111, 11011011, 11011101, 11011110, 11100111, 11101011, 11101101, 11101110, 11110011, 11110101, 11110110, 11111001, 11111010
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Sort[Plus @@@ Subsets[10^Range[0, 7], {6}]] (* Amiram Eldar, Jul 12 2022 *)
  • Python
    from itertools import islice
    def A038448_gen(): # generator of terms
        yield int(bin(n:=63)[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:])
    A038448_list = list(islice(A038448_gen(),20)) # Chai Wah Wu, Mar 11 2025

Extensions

Offset corrected by Amiram Eldar, Jul 12 2022