/- 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) = 2^(2^n)$

References:

namespace OeisA1146

The primary defining sequence a. $a(n) = 2^{2^n}$.

def a (n : ) : := 2 ^ (2 ^ n)@[category test, AMS 11] theorem a_0 : a 0 = 2 := a 0 = 2 All goals completed! 🐙@[category test, AMS 11] theorem a_1 : a 1 = 4 := a 1 = 4 All goals completed! 🐙@[category test, AMS 11] theorem a_2 : a 2 = 16 := a 2 = 16 All goals completed! 🐙@[category test, AMS 11] theorem a_3 : a 3 = 256 := a 3 = 256 All goals completed! 🐙@[category API, AMS 11] lemma n_add_two_le_two_pow (n : ) (hn : 2 n) : n + 2 2 ^ n := n:hn:2 nn + 2 2 ^ n n:2 + 2 2 ^ 2n:k:hk:2 kih:k + 2 2 ^ kk + 1 + 2 2 ^ (k + 1) n:2 + 2 2 ^ 2 All goals completed! 🐙 n:k:hk:2 kih:k + 2 2 ^ kk + 1 + 2 2 ^ (k + 1) calc k + 1 + 2 = k + 2 + 1 := n:k:hk:2 kih:k + 2 2 ^ kk + 1 + 2 = k + 2 + 1 All goals completed! 🐙 _ 2 ^ k + 1 := n:k:hk:2 kih:k + 2 2 ^ kk + 2 + 1 2 ^ k + 1 All goals completed! 🐙 _ 2 ^ k + 2 ^ k := n:k:hk:2 kih:k + 2 2 ^ k2 ^ k + 1 2 ^ k + 2 ^ k n:k:hk:2 kih:k + 2 2 ^ k1 2 ^ k All goals completed! 🐙 _ = 2 ^ (k + 1) := n:k:hk:2 kih:k + 2 2 ^ k2 ^ k + 2 ^ k = 2 ^ (k + 1) All goals completed! 🐙

The forward direction: if $k = a(n)$ for $n \ge 2$, then $k^4 - 1$ divides $2^k - 1$.

n:hn:2 nm: := 2 ^ (2 ^ n - (n + 2))h_exp:2 ^ 2 ^ n = 2 ^ n * 4 * mH2:2 ^ a n = (a n ^ 4) ^ ma n ^ 4 - 1 (a n ^ 4) ^ m - 1 All goals completed! 🐙

I conjecture that { $a(n)$ ; $n>1$ } are the numbers such that $n^4-1$ divides $2^n-1$, intersection of A247219 and A247165. - M. F. Hasler, Jul 25 2015 This formalizes the reverse direction.

@[category research open, AMS 11] theorem conjecture : k : , ((k^4 - 1) : ) (2^k - 1 : ) k > 1 n : , 2 n k = a n := (k : ), k ^ 4 - 1 2 ^ k - 1 k > 1 n, 2 n k = OeisA1146.a n All goals completed! 🐙end OeisA1146