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

Erdős Problem 1108

Reference: erdosproblems.com/1108

open Nat Filter BigOperators namespace Erdos1108

The set $A = \left{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right}$ of all finite sums of distinct factorials.

def FactorialSums : Set := {m : | S : Finset , m = n S, n.factorial}

A number is powerful if each prime factor appears with exponent at least 2.

def IsPowerful (n : ) : Prop := p : , p.Prime p n p ^ 2 n

For each $k \geq 2$, does the set $A = \left{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right}$ of all finite sums of distinct factorials contain only finitely many $k$-th powers?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_1108.parts.i : answer(sorry) k 2, Set.Finite { a | a FactorialSums m : , m ^ k = a } := True k 2, {a | a FactorialSums m, m ^ k = a}.Finite All goals completed! 🐙

Does the set $A = \left{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right}$ of all finite sums of distinct factorials contain only finitely many powerful numbers?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_1108.parts.ii : answer(sorry) {a FactorialSums | IsPowerful a}.Finite := True {a | a FactorialSums IsPowerful a}.Finite All goals completed! 🐙 end Erdos1108