A069566
a(1)=0; for n >= 2, a(n) = smallest value of k such that the concatenation 1,n,n^2,…, n^(k-1), n^k,n^(k-1),…n^2,n,1 is a prime.
offset: 1
codomain: ℕ
The OEIS sequence has the tags “hard” and/or “more” and few known values. It is likely that the Lean code is not representing the actual sequence, even though it coincides in the known values.
Declarations
Section titled “Declarations”- A069566computable