OFFSET
0,3
COMMENTS
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 0..10386
MAPLE
See A275899.
# Alternative Maple program from N. J. A. Sloane, Oct 03 2016
M1:=100000; M2:=22000; M3:=10000;
xx:=Array(0..M1, 0); yy:=Array(0..M1, 0); ss:=Array(0..M1, 0); dd:=Array(0..M1, 0);
xx[0]:=0; yy[0]:=0; ss[0]:=0; dd[0]:=0;
for n from 1 to M2 do
sw:=-1;
for s from ss[n-1]+1 to M2 do
for i from 0 to s do
x:=s-i; y:=i;
if not member(x, xx, 'p') and
not member(y, yy, 'p') and
not member(x-y, dd, 'p') then sw:=1; break; fi;
od: # od i
if sw=1 then break; fi;
od: # od s
if sw=-1 then lprint("error, n=", n); break; fi;
xx[n]:=x; yy[n]:=y; ss[n]:=x+y; dd[n]:=x-y;
od: # od n
[seq(xx[i], i=0..M3)]:
[seq(yy[i], i=0..M3)]:
[seq(ss[i], i=0..M3)]:
[seq(dd[i], i=0..M3)]:
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 24 2016
STATUS
approved