%I #17 Jun 05 2021 10:54:32
%S 2,2,7,3,2,3,4,5,5,3,5,5,7,11,7,5,4,7,16,5,15,3,4,9,22,5,13,6,8,7,19,
%T 7,9,11,5,5,6,19,13,9,12,7,9,5,11,10,23,5,4,7,7,9,13,19,21,5,7,13,29,
%U 9,5,4,19,9,8,7,12,10,17,7,17,6,13,5,31,5,9,7,8,7,25,9,41,15,21,10,19,9,28,11,15
%N Least k > 1 such that (n^k+k)/(n+k) is an integer.
%H Seiichi Manyama, <a href="/A341760/b341760.txt">Table of n, a(n) for n = 0..10000</a>
%t a[n_] := Module[{k = 2}, While[! Divisible[n^k + k, n + k], k++]; k]; Array[a, 100, 0] (* _Amiram Eldar_, Jun 04 2021 *)
%o (PARI) a(n) = my(k=2); while((n^k+k)%(n+k)!=0, k++); k;
%Y Cf. A242801, A242899, A341844, A341889, A341890.
%K nonn
%O 0,1
%A _Seiichi Manyama_, Jun 04 2021
|