OFFSET
2,1
COMMENTS
n^a(n) + n - 1 = A078179(n).
EXAMPLE
7^2+7-1=5*11, but 7^3+7-1=349=A000040(70), therefore a(7)=3.
MATHEMATICA
lkp[n_]:=Module[{k=2}, While[!PrimeQ[n^k+n-1], k++]; k]; Array[lkp, 100, 2] (* Harvey P. Dale, May 24 2020 *)
PROG
(Haskell)
a078178 n = head [k | k <- [2..], a010051'' (n ^ k + n - 1) == 1]
-- Reinhard Zumkeller, Jul 16 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 20 2002
EXTENSIONS
More terms from Benoit Cloitre, Nov 20 2002
STATUS
approved