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.

A327190 For any n > 0: consider the different ways to split the binary representation of 2*n+1 into two nonempty parts, say with value x and y; a(n) is the least possible value of x * y.

This page as a plain text file.
%I A327190 #15 Aug 27 2019 01:20:40
%S A327190 1,1,3,1,3,3,7,1,3,5,7,3,9,7,15,1,3,5,7,5,11,11,15,3,9,13,21,7,21,15,
%T A327190 31,1,3,5,7,9,11,13,15,5,15,21,23,11,27,23,31,3,9,15,21,13,33,27,45,7,
%U A327190 21,29,49,15,45,31,63,1,3,5,7,9,11,13,15,9,19,21
%N A327190 For any n > 0: consider the different ways to split the binary representation of 2*n+1 into two nonempty parts, say with value x and y; a(n) is the least possible value of x * y.
%C A327190 All terms are odd.
%H A327190 Rémy Sigrist, <a href="/A327190/b327190.txt">Table of n, a(n) for n = 1..8192</a>
%F A327190 a(n) = 1 iff n is a power of 2.
%F A327190 a(n) = n iff n is a positive Mersenne number (A000225). - _Bernard Schott_, Aug 26 2019
%e A327190 For n=42:
%e A327190 - the binary representation of 85 is "1010101",
%e A327190 - there are 6 ways to split it:
%e A327190    - "1" and "010101": x=1 and y=21: 1 * 21 = 21,
%e A327190    - "10" and "10101": x=2 and y=21: 2 * 21 = 42,
%e A327190    - "101" and "0101": x=5 and y=5: 5 * 5 = 25,
%e A327190    - "1010" and "101": x=10 and y=5: 10 * 5 = 50,
%e A327190    - "10101" and "01": x=21 and y=1: 21 * 1 = 21,
%e A327190    - "101010" and "1": x=42 and y=1: 42 * 1 = 42,
%e A327190 - hence a(42) = 21.
%o A327190 (PARI) a(n) = my (v=oo, b=binary(2*n+1)); for (w=1, #b-1, v=min(v, (fromdigits(b[1..w],2) * fromdigits(b[w+1..#b],2)))); v
%Y A327190 See A327186 for other variants.
%Y A327190 Cf. A000225.
%K A327190 nonn,base
%O A327190 1,3
%A A327190 _Rémy Sigrist_, Aug 25 2019