login
A151786
a(n) = 8^(wt(n)-1) where wt(n) is the binary weight of n (A000120).
1
1, 1, 8, 1, 8, 8, 64, 1, 8, 8, 64, 8, 64, 64, 512, 1, 8, 8, 64, 8, 64, 64, 512, 8, 64, 64, 512, 64, 512, 512, 4096, 1, 8, 8, 64, 8, 64, 64, 512, 8, 64, 64, 512, 64, 512, 512, 4096, 8, 64, 64, 512, 64, 512, 512, 4096, 64, 512, 512, 4096, 512, 4096, 4096, 32768, 1, 8, 8, 64, 8, 64
OFFSET
1,3
LINKS
FORMULA
a(n) = 8^A048881(n-1). - Jon Maiga / Georg Fischer, Jun 25 2021
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
Sequence in context: A019760 A081816 A092618 * A094770 A093565 A081777
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 25 2009
STATUS
approved