This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A242879 #7 May 25 2014 09:34:37 %S A242879 0,0,0,2,2,2,3,2,2,3,4,2,2,3,2,3,4,7,2,2,3,4,2,3,4,13,6,7,11,13,10,11, %T A242879 2,3,4,18,6,7,2,3,4,2,2,3,4,6,6,2,3,2,2,3,4,2,2,3,4,6,6,2,3,2,3,4,7,2, %U A242879 3,2,3,4,7,2,2,2,2,3,2,3,4,7 %N A242879 Least positive integer k < n such that k*p == 1 (mod prime(k)) for some prime p < prime(k) and (n-k)*q == 1 (mod prime(n-k)) for some prime q < prime(n-k), or 0 if such a number k does not exist. %C A242879 According to the conjecture in A242753, a(n) should be positive for all n > 3. %C A242879 We have verified that a(n) > 0 for all n = 4, ..., 10^8. %H A242879 Zhi-Wei Sun, <a href="/A242879/b242879.txt">Table of n, a(n) for n = 1..10000</a> %e A242879 a(4) = 2 since 4 = 2 + 2 and 2*2 == 1 (mod prime(2)=3). %e A242879 a(7) = 3 since 7 = 3 + 4, 3*2 == 1 (mod prime(3)=5) with 2 prime, and also 4*2 == 1 (mod prime(4)=7) with 2 prime, but 5*9 == 1 (mod prime(5)=11) with 9 not prime. %t A242879 p[n_]:=PrimeQ[PowerMod[n,-1,Prime[n]]] %t A242879 Do[Do[If[p[k]&&p[n-k],Print[n," ",k];Goto[aa]];Continue,{k,1,n/2}];Print[n," ",0];Label[aa];Continue,{n,1,80}] %Y A242879 Cf. A000040, A242425, A242748, A242753, A242754, A242755. %K A242879 nonn %O A242879 1,4 %A A242879 _Zhi-Wei Sun_, May 25 2014