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 A038464 #17 Apr 05 2025 15:52:05 %S A038464 4,10,12,28,30,36,82,84,90,108,244,246,252,270,324,730,732,738,756, %T A038464 810,972,2188,2190,2196,2214,2268,2430,2916,6562,6564,6570,6588,6642, %U A038464 6804,7290,8748,19684,19686,19692,19710,19764,19926,20412,21870,26244,59050,59052 %N A038464 Sums of 2 distinct powers of 3. %H A038464 Amiram Eldar, <a href="/A038464/b038464.txt">Table of n, a(n) for n = 1..10000</a> %t A038464 Sort[Plus @@@ Subsets[3^Range[0, 10], {2}]] (* _Amiram Eldar_, Jul 13 2022 *) %o A038464 (Python) %o A038464 from math import isqrt %o A038464 def A038464(n): return 3**(m:=isqrt(n<<3)+1>>1)+3**(n-1-(m*(m-1)>>1)) # _Chai Wah Wu_, Apr 05 2025 %Y A038464 Base-3 interpretation of A038444. %Y A038464 Cf. A000244, A038465, A038466, A038467, A038468, A038469. %K A038464 nonn,easy %O A038464 1,1 %A A038464 _Olivier Gérard_ %E A038464 Offset corrected by _Amiram Eldar_, Jul 13 2022