The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A368824 a(n) is the smallest degree of (0,1)-polynomial with exactly n real distinct roots. 2
1, 2, 7, 10, 19, 28 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
(0,1) (or Newman) polynomials have coefficients from {0,1}.
LINKS
P. Borwein, T. Erdélyi, and G. Kós, Littlewood-type problems on [0,1], Proc. London Math. Soc. 79 (1999), 22-46.
A. Odlyzko and B. Poonen, Zeros of polynomials with 0,1 coefficients, L’Enseignement Mathématique 39 (1993), 317-348.
FORMULA
a(n) ~ C*n^2 (see Odlyzko and Poonen) with numerical estimate 0.7 < C < 0.9.
MATHEMATICA
(* Suitable only for 1 <= n <= 4;
for larger n, special Julia and Python packages are needed *)
Table[Exponent[Monitor[Catch[Do[
poly = FromDigits[IntegerDigits[k, 2], x];
res = Length@{ToRules@Reduce[poly == 0, x, Reals]};
If[res == n, Throw@{res, Expand@poly}]
, {k, 2000}]], k][[2]], x], {n, 1, 4}]
PROG
(Python)
from itertools import count
from sympy.abc import x
from sympy import sturm, oo, sign, nan, LT
def A368824(n):
for m in count(2):
l = len(s:=bin(m)[2:])
q = sturm(sum(int(s[i])*x**(l-i-1) for i in range(l)))
a = [1 if (k:=LT(p).subs(x, -oo))==nan else sign(k) for p in q[:-1]]+[sign(q[-1])]
b = [1 if (k:=LT(p).subs(x, oo))==nan else sign(k) for p in q[:-1]]+[sign(q[-1])]
if n==sum(1 for i in range(len(a)-1) if a[i]!=a[i+1])-sum(1 for i in range(len(b)-1) if b[i]!=b[i+1]):
return l-1 # Chai Wah Wu, Feb 15 2024
CROSSREFS
Sequence in context: A152211 A309805 A125852 * A336903 A155171 A049830
KEYWORD
nonn,hard,more
AUTHOR
Denis Ivanov, Jan 07 2024
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 June 6 16:47 EDT 2024. Contains 373133 sequences. (Running on oeis4.)