OFFSET
1,3
LINKS
Dumitru Damian, Table of n, a(n) for n = 1..10000
FORMULA
PROG
(PARI) a(n) = 8^(hammingweight(n) - 1); \\ Michel Marcus, Jun 26 2021
(Python)
def A151786(n): return 1<<3*(n.bit_count()-1)
print(list(A151786(n) for n in range(1, 10**2))) # Dumitru Damian, Mar 04 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 25 2009
STATUS
approved