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.

Showing 1-1 of 1 results.

A306922 Number of distinct powers of two obtained by breaking the binary representation of n into consecutive blocks, and then adding the numbers represented by the blocks.

Original entry on oeis.org

1, 2, 1, 3, 1, 1, 1, 4, 1, 2, 1, 1, 1, 1, 2, 5, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 2, 1, 6, 1, 2, 1, 3, 1, 2, 2, 2, 1, 1, 2, 2, 2, 3, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 3, 2, 2, 2, 2, 2, 7, 1, 2, 1, 3, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 2, 2, 3, 1
Offset: 1

Views

Author

Peter Kagey, Mar 16 2019

Keywords

Comments

1's appear at indices given by A321321.

Examples

			For n = 46, the a(46) = 3 powers of two that come from the partition of "101110" are 4, 8, and 16:
[10, 1110]         -> [2, 14]            -> 16
[1, 0, 1, 110]     -> [1, 0, 1, 6]       -> 8
[101, 1, 10]       -> [5, 1, 2]          -> 8
[1, 0, 111, 0]     -> [1, 0, 7, 0]       -> 8
[101, 11, 0]       -> [5, 3, 0]          -> 8
[1, 0, 1, 1, 1, 0] -> [1, 0, 1, 1, 1, 0] -> 4
		

Crossrefs

Showing 1-1 of 1 results.