login
A100439
Number of distinct values of i*j + j*k + k*i with 1 <= i<j<k <= n.
3
0, 0, 1, 4, 10, 20, 31, 48, 70, 96, 123, 161, 197, 240, 293, 340, 394, 460, 524, 596, 670, 744, 819, 918, 1016, 1112, 1217, 1322, 1429, 1561, 1679, 1798, 1943, 2072, 2218, 2379, 2518, 2669, 2838, 3009, 3178, 3361, 3536, 3713, 3924, 4120, 4304, 4522, 4727
OFFSET
1,4
MAPLE
f:=proc(n) local i, j, k, t1; t1:={}; for i from 1 to n-2 do for j from i+1 to n-1 do for k from j+1 to n do t1:={op(t1), i*j+j*k+k*i}; od: od: od: t1:=convert(t1, list); nops(t1); end;
MATHEMATICA
f[n_] := Length[ Union[ Flatten[ Table[i*j + j*k + k*i, {i, n}, {j, i + 1, n}, {k, j + 1, n}] ]]]; Table[ f[n], {n, 49}] (* Robert G. Wilson v, Dec 14 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 21 2004
EXTENSIONS
More terms from Robert G. Wilson v, Dec 14 2004
STATUS
approved