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.

This page as a plain text file.
%I A038448 #15 Mar 11 2025 09:44:42
%S A038448 111111,1011111,1101111,1110111,1111011,1111101,1111110,10011111,
%T A038448 10101111,10110111,10111011,10111101,10111110,11001111,11010111,
%U A038448 11011011,11011101,11011110,11100111,11101011,11101101,11101110,11110011,11110101,11110110,11111001,11111010
%N A038448 Sums of 6 distinct powers of 10.
%H A038448 Amiram Eldar, <a href="/A038448/b038448.txt">Table of n, a(n) for n = 1..10000</a>
%t A038448 Sort[Plus @@@ Subsets[10^Range[0, 7], {6}]] (* _Amiram Eldar_, Jul 12 2022 *)
%o A038448 (Python)
%o A038448 from itertools import islice
%o A038448 def A038448_gen(): # generator of terms
%o A038448     yield int(bin(n:=63)[2:])
%o A038448     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:])
%o A038448 A038448_list = list(islice(A038448_gen(),20)) # _Chai Wah Wu_, Mar 11 2025
%Y A038448 Cf. A011557.
%Y A038448 Cf. A038444, A038445, A038446, A038447, A038449, A038450, A038451, A038452, A038453, A038454.
%K A038448 nonn,easy
%O A038448 1,1
%A A038448 _Olivier Gérard_
%E A038448 Offset corrected by _Amiram Eldar_, Jul 12 2022