OFFSET
0,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
MATHEMATICA
a[n_] := Module[{k = 2}, While[! Divisible[n^k + k, n + k], k++]; k]; Array[a, 100, 0] (* Amiram Eldar, Jun 04 2021 *)
PROG
(PARI) a(n) = my(k=2); while((n^k+k)%(n+k)!=0, k++); k;
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 04 2021
STATUS
approved