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!)
A330925 For any n >= 0: consider all pairs of numbers (x, y) whose binary representations can be interleaved (or shuffled) to produce the binary representation of n (possibly with leading zeros); a(n) is the greatest possible value of x*y. 10
0, 0, 0, 1, 0, 2, 2, 3, 0, 4, 4, 6, 4, 6, 6, 9, 0, 8, 8, 12, 8, 12, 12, 15, 8, 12, 12, 18, 12, 18, 18, 21, 0, 16, 16, 24, 16, 24, 24, 28, 16, 24, 24, 30, 24, 30, 30, 35, 16, 24, 24, 36, 24, 36, 36, 42, 24, 36, 36, 42, 36, 42, 42, 49, 0, 32, 32, 48, 32, 48, 48 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
Interleaving (or shuffling) two strings means combining all their characters while preserving the order of all characters in individual strings; for example, "12345" is the interleaving of "14" and "235".
LINKS
Rémy Sigrist, C program for A330925
FORMULA
a(n) = 0 iff n is zero or a power of 2.
a(2*n) = 2*a(n).
EXAMPLE
For n = 5:
- the binary representation of 5 is "101",
- the possible values for (x, y), restricted to x >= y without loss of generality, are:
bin(5) x y x*y
------- - - ---
"101" 5 0 0
"1/01" 1 1 1
"10/1" 2 1 2
"1/0/1" 3 0 0
- hence a(5) = 2.
PROG
(C) See Links section.
CROSSREFS
Cf. A330955 (x AND y variant), A330958 (x OR y variant), A330959 (x XOR y variant).
Cf. A330956 (min(x, y) variant), A330957 (max(x, y) variant).
Cf. A330960 (x + y variant), A330961 (x - y variant).
Cf. A330962 (x^2 + y^2 variant), A330963 (x^2 - y^2 variant).
See A327186 for similar sequences where we split the binary representation.
Sequence in context: A079626 A257697 A088864 * A191361 A199784 A349384
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 03 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 July 13 21:44 EDT 2024. Contains 374288 sequences. (Running on oeis4.)