login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 04:26 EDT 2024. Contains 370952 sequences. (Running on oeis4.)