/-
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$a(n)$ is the integer whose decimal digits are the first $n+1$ decimal digits of $\pi$
References:
namespace OeisA11545open Real Inta n is the integer whose decimal digits are the first $n+1$ decimal digits of $\pi$.
noncomputable def a (n : ℕ) : ℕ :=
(floor (Real.pi * (10 : ℝ) ^ n.cast)).toNat@[category test, AMS 11]
theorem a_0 : a 0 = 3 := ⊢ a 0 = 3
⊢ ⌊π * 10 ^ ↑0⌋.toNat = 3
All goals completed! 🐙@[category test, AMS 11]
theorem a_1 : a 1 = 31 := ⊢ a 1 = 31
⊢ ⌊π * 10⌋.toNat = 31
exact (congr_arg _) ((Int.floor_eq_iff.2
⟨⊢ ↑31 ≤ π * 10 All goals completed! 🐙,
⊢ π * 10 < ↑31 + 1 ⊢ π * 10 < ↑31 + 1 All goals completed! 🐙⟩) : ⌊_⌋ = 31)@[category test, AMS 11]
theorem a_2 : a 2 = 314 := ⊢ a 2 = 314
⊢ ⌊π * 10 ^ 2⌋.toNat = 314
exact (congr_arg _) ((Int.floor_eq_iff.mpr
⟨⊢ ↑↑314 ≤ π * 10 ^ 2 ⊢ ↑↑314 ≤ π * 10 ^ 2 All goals completed! 🐙,
⊢ π * 10 ^ 2 < ↑↑314 + 1 ⊢ π * 10 ^ 2 < ↑↑314 + 1 All goals completed! 🐙⟩)) |>.trans (Int.toNat_natCast _)@[category test, AMS 11]
theorem a_3 : a 3 = 3141 := ⊢ a 3 = 3141
⊢ 3141 = a 3
⊢ 3141 = ⌊π * 1000⌋.toNat
exact (.symm ((congr_arg _) ((Int.floor_eq_iff.2
⟨⊢ ↑3141 ≤ π * 1000 All goals completed! 🐙,
⊢ π * 1000 < ↑3141 + 1 All goals completed! 🐙⟩) : ⌊_⌋ = 3141)))Wolfgang Haken (1977) conjectured that no term of this sequence is a perfect square, and estimated the probability that this conjecture is false to be smaller than $10^-9$.
@[category research open, AMS 11]
theorem conjecture1 : ∀ n, ¬ IsSquare (a n) := ⊢ ∀ (n : ℕ), ¬IsSquare (a n)
All goals completed! 🐙Number of collisions occurring in a system consisting of an infinitely massive, rigid wall at the origin, a ball with mass m stationary at position $x_1 > 0$, and a ball with mass $(10^2n)m$ at position $x_2 > x_1$ and rolling toward the origin, assuming perfectly elastic collisions and no friction.
Strictly speaking, this property, which is equivalent to the statement that the interval $(m\pi, \pi/\textrm{arctan}(1/m))$ does not contain an integer for all $m = 10^n$, is not known to be true for sure. In other words, we do not know for certain that A332045 does not contain a power of $10$.
@[category research open, AMS 11]
theorem conjecture2 :
∀ n : ℕ, ¬ ∃ (k : ℤ),
(Real.pi * (10 : ℝ) ^ n.cast < k.cast) ∧
(k.cast < Real.pi / Real.arctan (1 / (10 : ℝ) ^ n.cast)) := ⊢ ∀ (n : ℕ), ¬∃ k, π * 10 ^ ↑n < ↑k ∧ ↑k < π / arctan (1 / 10 ^ ↑n)
All goals completed! 🐙end OeisA11545