STATUS
proposed
approved
proposed
approved
editing
proposed
sk[n_]:=Module[{k=1}, While[PrimeQ[n^k+1], k++]; k]; Array[sk, 110, 2] (* Harvey P. Dale, Apr 09 2016 *)
approved
editing
proposed
approved
editing
proposed
Robert Israel, <a href="/A102368/b102368.txt">Table of n, a(n) for n = 2..10000</a>
A102368:= proc(n)
if n::odd or not isprime(n+1) then 1
elif isprime(n^2+1) then 3 else 2
fi
end proc; # Robert Israel, Jun 15 2014
proposed
editing
editing
proposed
Since n + 1 divides n^3 + 1, a(n) <= 3. - Robert Israel, Jun 15 2014
Cf. A070689: a(n) = 3.
approved
editing
_Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), _, Feb 22 2005
nonn,new
nonn
Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystemsgmail.com), Feb 22 2005