A055272: First differences of 7^n (A000420).
Statement
Conjecture in "Introduction à la théorie des nombres" by J. M. Deconinck and Armel Mercier: this is the period length of the fraction 1/7^n. For example 1/7^2=0.0204081632653061224489795918367346938775510204....with a period of 42 digits =6*7=a(2). The period of 1/7^3 has exactly 294=a(3) digits. · For n >= 1, the conjecture of De Koninck and Mercier cited in the comment of Feb 02 2002 holds: a(n) is the period length of the decimal expansion of 1/7^n. Indeed, 10 is a primitive root modulo 7 (see A001913), and 10^6 == 8 (mod 49), so 7 is not in A045616. By lifting theorem for primitive roots, 10 is a primitive root modulo 7^n for every n >= 1. Consequently, the multiplicative order of 10 modulo 7^n is phi(7^n) = 6*7^(n-1) = a(n). Since gcd(10, 7^n) = 1, the decimal expansion of 1/7^n is purely periodic with this period length.
Posed by Benoit Cloitre, Eiver Rodríguez · OEIS
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a055272.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a055272.lean
import Mathlib /-! # A055272: First differences of 7^n (A000420). Source: https://oeis.org/A055272 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_oeis_a055272 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a055272