OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..2000
MAPLE
F:= proc(n) local i, j;
{seq(seq(i*j + (i+j)*n, i=1..j), j=1..n-1)}
end proc:
R:= NULL:
S:= {}:
for n from 1 to 100 do
S:= S union F(n);
R:= R, nops(S);
od:
R; # Robert Israel, Dec 15 2024
MATHEMATICA
f[n_] := Length[ Union[ Flatten[ Table[i*j + j*k + k*i, {i, n}, {j, i, n}, {k, j + 1, n}]]]]; Table[ f[n], {n, 48}] (* Robert G. Wilson v, Jan 13 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jan 13 2005
STATUS
approved