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.

A038478 Sums of 2 distinct powers of 6.

This page as a plain text file.
%I A038478 #18 Apr 04 2025 11:39:52
%S A038478 7,37,42,217,222,252,1297,1302,1332,1512,7777,7782,7812,7992,9072,
%T A038478 46657,46662,46692,46872,47952,54432,279937,279942,279972,280152,
%U A038478 281232,287712,326592,1679617,1679622,1679652,1679832,1680912,1687392,1726272,1959552,10077697,10077702
%N A038478 Sums of 2 distinct powers of 6.
%H A038478 Amiram Eldar, <a href="/A038478/b038478.txt">Table of n, a(n) for n = 1..10000</a>
%t A038478 Total/@Subsets[6^Range[0,10],{2}]//Union (* _Harvey P. Dale_, Aug 11 2018 *)
%o A038478 (Python)
%o A038478 from math import isqrt
%o A038478 def A038478(n): return 6**(m:=isqrt(n<<3)+1>>1)+6**(n-1-(m*(m-1)>>1)) # _Chai Wah Wu_, Apr 04 2025
%Y A038478 Base-6 interpretation of A038444.
%Y A038478 Cf. A000400, A038479, A038480.
%K A038478 nonn,easy
%O A038478 1,1
%A A038478 _Olivier Gérard_
%E A038478 Offset corrected by _Amiram Eldar_, Jul 14 2022