OFFSET
2,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
EXAMPLE
a(2) = 2 as 2 ^ 2 = 4 is divisible by 2 + 2 = 4.
a(3) = 6 as 3 ^ 6 = 729 is divisible by 3 + 6 = 9.
a(4) = 4 as 4 ^ 4 = 256 is divisible by 4 + 4 = 8.
a(5) = 20 as 5 ^ 20 = 95367431640625 is divisible by 5 + 20 = 25.
MATHEMATICA
spi[n_]:=Module[{k=1}, While[PowerMod[n, k, n+k]!=0, k++]; k]; Array[spi, 70, 2] (* Harvey P. Dale, Jan 16 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Apr 10 2020
STATUS
approved