/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Value of $n$-th cyclotomic polynomial at $n$

The sequence $a(n) = \Phi_n(n)$ gives the value of the $n$-th cyclotomic polynomial evaluated at $n$: $$a(n) = |\Phi_n(n)|$$

References:

namespace OeisA70518open Polynomial

Value of the $n$-th cyclotomic polynomial at $n$.

noncomputable def a (n : ) : := ((cyclotomic n ).eval (n : )).natAbs

Value of the sequence a at 1.

(eval 1 (X - 1)).natAbs = 0 All goals completed! 🐙

Value of the sequence a at 2.

(eval 2 (X + 1)).natAbs = 3 All goals completed! 🐙

Value of the sequence a at 3.

this:Fact (Nat.Prime 3)(eval 3 (∑ i Finset.range 3, X ^ i)).natAbs = 13 All goals completed! 🐙

Value of the sequence a at 5.

this:Fact (Nat.Prime 5)(eval 5 (∑ i Finset.range 5, X ^ i)).natAbs = 781 All goals completed! 🐙open scoped Classical in

$a(28341)$ is divisible by $283411^2$. What is the next $n$ such that $a(n)$ is not squarefree?

@[category research open, AMS 11] theorem conjecture : answer(sorry) = if h : n, 28341 < n ¬ Squarefree (a n) then some (sInf {n | 28341 < n ¬ Squarefree (a n)}) else none := sorry = if h : n, 28341 < n ¬Squarefree (a n) then some (sInf {n | 28341 < n ¬Squarefree (a n)}) else none All goals completed! 🐙end OeisA70518