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.

A038484 Sums of 2 distinct powers of 8.

This page as a plain text file.
%I A038484 #22 Apr 04 2025 11:39:57
%S A038484 9,65,72,513,520,576,4097,4104,4160,4608,32769,32776,32832,33280,
%T A038484 36864,262145,262152,262208,262656,266240,294912,2097153,2097160,
%U A038484 2097216,2097664,2101248,2129920,2359296,16777217,16777224,16777280,16777728,16781312,16809984,17039360,18874368
%N A038484 Sums of 2 distinct powers of 8.
%H A038484 Amiram Eldar, <a href="/A038484/b038484.txt">Table of n, a(n) for n = 1..10000</a>
%t A038484 Total/@Subsets[8^Range[0,10],{2}]//Union (* _Harvey P. Dale_, Jul 04 2022 *)
%o A038484 (Python)
%o A038484 from math import isqrt
%o A038484 def A038484(n): return (1<<(a:=isqrt(n<<3)+1&-2)+(m:=a>>1))+(1<<3*(n-1-(m*(m-1)>>1))) # _Chai Wah Wu_, Apr 04 2025
%Y A038484 Base-8 interpretation of A038444.
%Y A038484 Cf. A001018, A038485, A038486.
%K A038484 nonn,easy
%O A038484 1,1
%A A038484 _Olivier Gérard_
%E A038484 More terms from _Vincenzo Librandi_, Aug 06 2009
%E A038484 Offset corrected by _Amiram Eldar_, Jul 14 2022