# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a278567 Showing 1-1 of 1 %I A278567 #36 Sep 01 2024 10:43:51 %S A278567 1,1,1,1,1,1,2,1,1,1,1,1,2,1,1,1,1,1,2,1,1,1,1,1,2,1,1,2,1,2,1,1,1,1, %T A278567 1,2,1,2,1,1,1,3,1,1,1,1,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,2,1, %U A278567 1,1,3,1,1,1,2,1,2,1,2,1,1,2,1,1,1,1,1,3,1,1,1,2,1,2,1,1,1,1,2,1,2,1,1,1,2 %N A278567 Maximal coefficient (in absolute value) of cyclotomic polynomial C(N,x), where N = n-th number which is a product of exactly three distinct primes = A007304(n). %C A278567 E. Lehmer (1936) shows that this sequence is unbounded. %H A278567 Alois P. Heinz, Table of n, a(n) for n = 1..20000 %H A278567 Emma Lehmer, On the magnitude of the coefficients of the cyclotomic polynomial, Bull. Amer. Math. Soc. 42 (1936), 389-392. %e A278567 The first 2 occurs in the famous C(105,x), which is x^48+x^47+x^46-x^43-x^42-2*x^41-x^40-x^39+x^36+x^35+x^34+x^33+x^32+x^31-x^28-x^26-x^24-x^22-x^20+x^17+x^16+x^15+x^14+x^13+x^12-x^9-x^8-2*x^7-x^6-x^5+x^2+x+1. %p A278567 with(numtheory): %p A278567 b:= proc(n) option remember; local k; %p A278567 for k from 1+`if`(n=1, 0, b(n-1)) while %p A278567 bigomega(k)<>3 or nops(factorset(k))<>3 do od; k %p A278567 end: %p A278567 a:= n-> max(map(abs, [coeffs(cyclotomic(b(n), x))])): %p A278567 seq(a(n), n=1..120); # _Alois P. Heinz_, Nov 26 2016 %t A278567 f[n_] := Max[ Abs[ CoefficientList[ Cyclotomic[n, x], x]]]; t = Take[ Sort@ Flatten@ Table[Prime@i Prime@j Prime@k, {i, 3, 35}, {j, 2, i -1}, {k, j -1}], 105]; f@# & /@ t (* _Robert G. Wilson v_, Dec 09 2016 *) %o A278567 (Python) %o A278567 from math import isqrt %o A278567 from sympy import primepi, primerange, integer_nthroot, cyclotomic_poly %o A278567 def A278567(n): %o A278567 def f(x): return int(n+x-sum(primepi(x//(k*m))-b for a,k in enumerate(primerange(integer_nthroot(x,3)[0]+1),1) for b,m in enumerate(primerange(k+1,isqrt(x//k)+1),a+1))) %o A278567 def bisection(f,kmin=0,kmax=1): %o A278567 while f(kmax) > kmax: kmax <<= 1 %o A278567 while kmax-kmin > 1: %o A278567 kmid = kmax+kmin>>1 %o A278567 if f(kmid) <= kmid: %o A278567 kmax = kmid %o A278567 else: %o A278567 kmin = kmid %o A278567 return kmax %o A278567 return max(int(abs(x[1][0][0])) for x in cyclotomic_poly(bisection(f)).as_terms()[0]) # _Chai Wah Wu_, Aug 31 2024 %Y A278567 See A278571 for smallest m such that a(m) = n. %Y A278567 Cf. A007304, A013595, A160340, A262404, A262405. %Y A278567 See A278570 for another version. %K A278567 nonn %O A278567 1,7 %A A278567 _N. J. A. Sloane_, Nov 26 2016 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE