/- 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. -/ module public import FormalConjecturesUtil

Erdős Problem 366

Reference: erdosproblems.com/366

@[expose] public sectionnamespace Erdos366

Are there any $2$-full $n$ such that $n+1$ is $3$-full?

@[category research open, AMS 11] theorem erdos_366 : answer(sorry) n > 0, (2).Full n (3).Full (n + 1) := True n > 0, Nat.Full 2 n Nat.Full 3 (n + 1) All goals completed! 🐙

Note that $8$ is $3$-full and $9$ is 2-full.

@[category test, AMS 11] theorem exists_three_full_then_two_full : n > 0, (3).Full n (2).Full (n + 1) := n > 0, Nat.Full 3 n Nat.Full 2 (n + 1) 8 > 0 Nat.Full 3 8 Nat.Full 2 (8 + 1) All goals completed! 🐙

Erdős and Graham asked whether $(8, 9)$ is the only pair of consecutive integers $n$, $n+1$ with $n$ $3$-full and $n+1$ $2$-full. The answer is no: $12167 = 23^3$ and $12168 = 2^3 3^2 13^2$ is another such pair, already known to Golomb [Go70].

@[category research solved, AMS 11] theorem erdos_366.variants.three_two : answer(False) n > 0, (3).Full n (2).Full (n + 1) n = 8 := False n > 0, Nat.Full 3 n Nat.Full 2 (n + 1) n = 8 refine False.elim, fun h absurd (h 12167 (h: n > 0, Nat.Full 3 n Nat.Full 2 (n + 1) n = 812167 > 0 All goals completed! 🐙) ?_) (h: n > 0, Nat.Full 3 n Nat.Full 2 (n + 1) n = 8¬12167 = 8 All goals completed! 🐙) All goals completed! 🐙

Are there any consecutive pairs of $3$-full integers?

@[category research open, AMS 11] theorem erdos_366.variants.weaker : answer(sorry) n > 0, (3).Full n (3).Full (n + 1) := True n > 0, Nat.Full 3 n Nat.Full 3 (n + 1) All goals completed! 🐙end Erdos366