A109201 Minimal value of k>0 such that n^6 + k^2 is a semiprime.
2, 3, 1, 4, 1, 3, 7, 2, 5, 10, 1, 2, 5, 6, 5, 2, 7, 6, 11, 6, 3, 5, 3, 7, 11, 2, 3, 2, 9, 10, 7, 5, 5, 5, 5, 2, 1, 2, 5, 2, 3, 2, 5, 4, 9, 4, 3, 2, 5, 11, 3, 11, 3, 3, 5, 7, 1, 4, 3, 4, 11, 4, 5, 16, 7, 2, 7, 2, 3, 25, 9, 6, 5, 2, 5, 2, 5, 2, 5, 4, 17, 20, 7, 4, 5, 4, 15, 2, 5, 6, 7, 6, 3, 5, 1, 2, 5, 8, 3
Offset: 0
Examples
a(0) = 2 because 0^6 + 1^2 = 1 is not semiprime, but 0^6 + 2^2 = 4 = 2^2 is. a(1) = 3 because 1^6 + 1^2 and 1^6 + 2^2 are not semiprime, but 1^6 + 3^2 = 10 = 2 * 5 is semiprime. a(2) = 1 because 2^6 + 1^2 = 65 = 5 * 13 is semiprime. a(69) = 25 because 69^6 + 25^2 = 107918163706 = 2 * 53959081853 and for no smaller k>0 is 69^6 + k^2 a semiprime. a(100) = 7 because 100^6 + 7^2 = 1000000000049 = 6337 * 157803377 and for no smaller k>0 is 100^6 + k^2 a semiprime.
Formula
a(n) = minimal value of k>0 such that n^6 + k^2 is semiprime.
Comments