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.

A038473 Sums of 5 distinct powers of 4.

This page as a plain text file.
%I A038473 #18 Apr 04 2025 14:35:30
%S A038473 341,1109,1301,1349,1361,1364,4181,4373,4421,4433,4436,5141,5189,5201,
%T A038473 5204,5381,5393,5396,5441,5444,5456,16469,16661,16709,16721,16724,
%U A038473 17429,17477,17489,17492,17669,17681,17684,17729,17732,17744,20501,20549,20561,20564,20741
%N A038473 Sums of 5 distinct powers of 4.
%H A038473 Amiram Eldar, <a href="/A038473/b038473.txt">Table of n, a(n) for n = 1..10000</a>
%t A038473 Take[Total/@Subsets[4^Range[0,10],{5}]//Union,50] (* _Harvey P. Dale_, Oct 02 2016 *)
%o A038473 (Python)
%o A038473 from itertools import islice
%o A038473 def A038473_gen(): # generator of terms
%o A038473     yield int(bin(n:=31)[2:],4)
%o A038473     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:],4)
%o A038473 A038473_list = list(islice(A038473_gen(),30)) # _Chai Wah Wu_, Apr 04 2025
%Y A038473 Base 4 interpretation of A038447.
%Y A038473 Cf. A000302, A038470, A038471, A038472.
%K A038473 nonn,easy
%O A038473 1,1
%A A038473 _Olivier Gérard_