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 A112802 #10 Jun 09 2014 12:21:21 %S A112802 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %T A112802 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %U A112802 0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,0,0,2 %N A112802 Number of ways of representing 2n-1 as sum of three integers with 3 distinct prime factors. %C A112802 Meng proves a remarkable generalization of the Goldbach-Vinogradov classical result that every sufficiently large odd integer N can be partitioned as the sum of three primes N = p1 + p2 + p3. The new proof is that every sufficiently large odd integer N can be partitioned as the sum of three integers N = a + b + c where each of a, b, c has k distinct prime factors for the same k. %H A112802 R. J. Mathar, <a href="/A112802/b112802.txt">Table of n, a(n) for n = 1..1290</a> %H A112802 Xianmeng Meng, <a href="http://dx.doi.org/10.1016/j.jnt.2005.04.013">On sums of three integers with a fixed number of prime factors</a>, Journal of Number Theory, Vol. 114 (2005), pp. 37-65. %F A112802 Number of ways of representing 2n-1 as sum of three members of A033992. Number of ways of representing 2n-1 as a + b + c where omega(a) = omega(b) = omega(c) = 3, where omega=A001221. %e A112802 a(83) = 1 because the only partition into three integers each with 3 distinct prime factors of (2*83)-1 = 165 is 165 = 30 + 30 + 105 = (2*3*5) + (2*3*5) + (3*5*7). Coincidentally, 165 itself has three distinct prime factors 165 = 3 * 5 * 11. %e A112802 a(89) = 1 because the only partition into three integers each with 3 distinct prime factors of (2*89)-1 = 177 = 30 + 42 + 105 = (2*3*5) + (2*3*7) + (3*5*7). %e A112802 a(107) = 2 because the two partitions into three integers each with 3 distinct prime factors of (2*107)-1 = 213 are 213 = 30 + 78 + 105 = 42 + 66 + 105. %p A112802 isA033992 := proc(n) %p A112802 numtheory[factorset](n) ; %p A112802 if nops(%) = 3 then %p A112802 true; %p A112802 else %p A112802 false; %p A112802 end if; %p A112802 end proc: %p A112802 A033992 := proc(n) %p A112802 option remember; %p A112802 local a; %p A112802 if n = 1 then %p A112802 30; %p A112802 else %p A112802 for a from procname(n-1)+1 do %p A112802 if isA033992(a) then %p A112802 return a; %p A112802 end if; %p A112802 end do: %p A112802 end if; %p A112802 end proc: %p A112802 A112802 := proc(n) %p A112802 local a,i,j,p,q,r,n2; %p A112802 n2 := 2*n-1 ; %p A112802 a := 0 ; %p A112802 for i from 1 do %p A112802 p := A033992(i) ; %p A112802 if 3*p > n2 then %p A112802 return a; %p A112802 else %p A112802 for j from i do %p A112802 q := A033992(j) ; %p A112802 r := n2-p-q ; %p A112802 if r < q then %p A112802 break; %p A112802 end if; %p A112802 if isA033992(r) then %p A112802 a := a+1 ; %p A112802 end if; %p A112802 end do: %p A112802 end if ; %p A112802 end do: %p A112802 end proc: %p A112802 for n from 1 do %p A112802 printf("%d %d\n",n,A112802(n)); %p A112802 end do: # _R. J. Mathar_, Jun 09 2014 %Y A112802 Cf. A000961, A007304, A112799, A112800, A112801. %K A112802 nonn %O A112802 1,107 %A A112802 _Jonathan Vos Post_ and _Ray Chandler_, Sep 19 2005