/- 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

Partitions of $n$ into distinct non-squarefree parts for $n > 23$

a: Number of partitions of $n$ into distinct parts that are not squarefree. This is the number of finite subsets of positive integers $P$ such that $\sum_{k \in P} k = n$ and every element $k \in P$ is not squarefree.

References:

    A256012

    arxiv/2605.22763 Advancing Mathematics Research with AI-Driven Formal Proof Search by George Tsoukalas et al.

namespace OeisA256012open Nat Finset

a: Number of partitions of $n$ into distinct parts that are not squarefree. This is the number of finite subsets of positive integers $P$ such that $\sum_{k \in P} k = n$ and every element $k \in P$ is not squarefree.

def a (n : ) : := -- The parts must be $\le n$ to sum to $n$. -- This is $\{1, 2, \dots, n\}$ let potential_parts : Finset := range (n + 1) \ {0} -- We count all subsets P of potential_parts that satisfy the sum and the property. card <| filter (fun P : Finset => P.sum id = n ( k P, ¬ Squarefree k) ) (powerset potential_parts)@[category test, AMS 11] lemma a_0 : a 0 = 1 := a 0 = 1 All goals completed! 🐙@[category test, AMS 11] lemma a_1 : a 1 = 0 := a 1 = 0 All goals completed! 🐙@[category test, AMS 11] lemma a_2 : a 2 = 0 := a 2 = 0 All goals completed! 🐙@[category test, AMS 11] lemma a_3 : a 3 = 0 := a 3 = 0 All goals completed! 🐙@[category test, AMS 11] lemma a_4 : a 4 = 1 := a 4 = 1 All goals completed! 🐙

Conjecture: $a(n) > 0$ for $n > 23$.

A formal proof has been found with the methods described in arxiv/2605.22763.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/256012.wip.lean#L91"] theorem a_pos_of_gt (n : ) (hn : n > 23) : a n > 0 := n:hn:n > 23a n > 0 All goals completed! 🐙end OeisA256012