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.
%I A038477 #14 Apr 05 2025 14:55:11 %S A038477 781,3281,3781,3881,3901,3905,15781,16281,16381,16401,16405,18781, %T A038477 18881,18901,18905,19381,19401,19405,19501,19505,19525,78281,78781, %U A038477 78881,78901,78905,81281,81381,81401,81405,81881,81901,81905,82001,82005,82025,93781,93881,93901 %N A038477 Sums of 5 distinct powers of 5. %H A038477 Amiram Eldar, <a href="/A038477/b038477.txt">Table of n, a(n) for n = 1..10000</a> %t A038477 Union[Total[5^#]&/@Subsets[Range[0,8],{5}]] (* _Harvey P. Dale_, Nov 15 2012 *) %o A038477 (Python) %o A038477 from itertools import islice %o A038477 def A038477_gen(): # generator of terms %o A038477 yield int(bin(n:=31)[2:],5) %o A038477 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:],5) %o A038477 A038477_list = list(islice(A038477_gen(),30)) # _Chai Wah Wu_, Apr 05 2025 %Y A038477 Base 5 interpretation of A038447. %Y A038477 Cf. A000351, A038474, A038475, A038476. %K A038477 nonn,easy %O A038477 1,1 %A A038477 _Olivier Gérard_ %E A038477 Offset corrected by _Amiram Eldar_, Jul 13 2022