OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = minimal value of k>0 such that n^4 + k^2 is semiprime.
EXAMPLE
a(0) = 2 because 0^4 + 1^2 = 1 is not semiprime, but 0^4 + 2^2 = 4 = 2^2 is.
a(1) = 3 because 1^4 + 1^2 and 1^4 + 2^2 are not semiprime, but 1^4 + 3^2 = 10 = 2 * 5 is semiprime.
a(90) = 31 because 90^4 + 31^2 = 65610961 = 13 * 5046997 and for no smaller k>0 is 90^4 + k^2 a semiprime.
a(100) = 1 because 100^4 + 1^2 = 100000001 = 17 * 5882353.
MATHEMATICA
n4sp[n_]:=Module[{k=1, n4=n^4}, While[PrimeOmega[n4+k^2]!=2, k++]; k]; Array[n4sp, 100, 0] (* Harvey P. Dale, Dec 03 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jun 22 2005
STATUS
approved