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!)
A331851 a(n) is the number of distinct values obtained by partitioning the binary representation of n into consecutive blocks, and then multiplying the numbers represented by the blocks. 5
1, 1, 2, 2, 2, 4, 3, 3, 2, 5, 4, 7, 3, 7, 4, 5, 2, 6, 5, 9, 4, 7, 7, 11, 3, 9, 7, 11, 4, 11, 6, 7, 2, 7, 6, 11, 5, 11, 9, 14, 4, 11, 7, 15, 7, 15, 11, 17, 3, 11, 9, 13, 7, 15, 11, 19, 4, 14, 11, 19, 6, 17, 8, 11, 2, 8, 7, 13, 6, 13, 11, 17, 5, 10, 11, 21, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequence is a variant of A321318.
LINKS
FORMULA
a(2^k) = 2 for any k > 0.
a(2^k+1) = k+2 for any k > 1.
EXAMPLE
For n = 6:
- the binary representation of 6 is "110",
- we can split it in 4 ways:
"110" -> 6
"1" and "10" -> 1*2 = 2
"11" and "0" -> 3*0 = 0
"1" and "1" and "0" -> 1*1*0 = 0
- we have 3 distinct values,
- hence a(6) = 3.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A321318 (additive variant).
Cf. A331852 (XOR variant), A331853 (AND variant), A331854 (OR variant).
Cf. A331855 (reverse variant).
Sequence in context: A358527 A257126 A050493 * A335607 A366192 A347628
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 29 2020
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 April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)