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 A319854 #23 Apr 02 2019 11:50:05 %S A319854 0,0,0,0,0,0,0,1,0,0,1,0,1,2,0,1,1,3,1,1,1,3,3,2,1,3,2,4,2,2,3,6,3,4, %T A319854 2,5,3,7,4,3,4,6,5,9,2,7,4,6,5,9,5,6,6,8,3,9,7,12,7,6,6,11,5,12,6,11, %U A319854 7,12,6,9,10,12,7,16,5,13,8,14,9,11,9,15,11,14 %N A319854 Number of ways to write n as the sum of 4 positive integers a, b, c, d such that d < b and a/b - c/d = (a - c)/(b + d). %C A319854 Number of ways to write n as the sum of 4 positive integers a, b, c, d such that d < b and a*d^2 = b^2*c. - _Robert Israel_, Oct 04 2018 %H A319854 Robert Israel, <a href="/A319854/b319854.txt">Table of n, a(n) for n = 1..10000</a> (first 500 terms from Hugo Pfoertner) %e A319854 a(8) = 1: 4/2 - 1/1 = (4 - 1)/(2 + 1) = 1; %e A319854 a(11) = 1: 4/4 - 1/2 = (4 - 1)/(4 + 2) = 1/2; %e A319854 a(13) = 1: 8/2 - 2/1 = (8 - 2)/(2 + 1) = 2; %e A319854 a(14) = 2: 4/6 - 1/3 = (4 - 1)/(6 + 3) = 1/3, 9/3 - 1/1 = (9 - 1)/(3 + 1) = 2; %e A319854 a(16) = 1: 8/4 - 2/2 = (8 - 2)/(4 + 2) = 1; %e A319854 a(17) = 1: 4/8 - 1/4 = (4 - 1)/(8 + 4) = 1/4; %e A319854 a(18) = 3: 9/3 - 4/2 = (9 - 4)/(3 + 2) = 1, 9/6 - 1/2 = (9 - 1)/(6 + 2) = 1, 12/2 - 3/1 = (12 - 3)/(2 + 1) = 3. %p A319854 N:= 1000: # for a(1)..a(N) %p A319854 V:= Vector(N): %p A319854 for d from 1 to N/2 do %p A319854 for b from d+1 to N-d do %p A319854 u:= d^2/igcd(b,d)^2; %p A319854 for c from u by u do %p A319854 v:= c*b^2/d^2+b+c+d; %p A319854 if v > N then break fi; %p A319854 V[v]:= V[v]+1 %p A319854 od od od: %p A319854 convert(V,list); # _Robert Israel_, Oct 04 2018 %t A319854 M = 100; Clear[V]; V[_] = 0; %t A319854 For[d = 1, d <= M/2, d++, %t A319854 For[b = d+1, b <= M-d, b++, %t A319854 u = d^2/GCD[b, d]^2; %t A319854 For[c = u, True, c = c+u, %t A319854 v = c*b^2/d^2 + b + c + d; %t A319854 If[v > M, Break[]]; %t A319854 V[v] = V[v]+1 %t A319854 ]]]; %t A319854 Array[V, M] (* _Jean-François Alcover_, Apr 02 2019, after _Robert Israel_ *) %o A319854 (PARI) m=84;v=vector(m);for(a=1,m,for(b=1,m,for(c=1,m,for(d=1,b-1,n=a+b+c+d;if(n<=m,if((a/b-c/d)==((a-c)/(b+d)),v[n]++))))));v %Y A319854 Cf. A026810, A319853, A320311, A320312, A320313. %K A319854 nonn,look %O A319854 1,14 %A A319854 _Hugo Pfoertner_ and _Rainer Rosenthal_, Sep 29 2018