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.

Original entry on oeis.org

9, 65, 72, 513, 520, 576, 4097, 4104, 4160, 4608, 32769, 32776, 32832, 33280, 36864, 262145, 262152, 262208, 262656, 266240, 294912, 2097153, 2097160, 2097216, 2097664, 2101248, 2129920, 2359296, 16777217, 16777224, 16777280, 16777728, 16781312, 16809984, 17039360, 18874368
Offset: 1

Views

Author

Keywords

Crossrefs

Base-8 interpretation of A038444.

Programs

  • Mathematica
    Total/@Subsets[8^Range[0,10],{2}]//Union (* Harvey P. Dale, Jul 04 2022 *)
  • Python
    from math import isqrt
    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

Extensions

More terms from Vincenzo Librandi, Aug 06 2009
Offset corrected by Amiram Eldar, Jul 14 2022