OFFSET
1,2
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 1..99 (terms 1..64 from Alois P. Heinz)
FORMULA
a(n) = A143823(n+1) - n - 2. - Nathaniel Johnston, Nov 12 2010
MATHEMATICA
b[n_, s_] := Module[{sn, m}, If[n<1, 1, sn = Append[s, n]; m = Length[sn]; If[m*(m - 1)/2 == Length[Table[sn[[i]] - sn[[j]], {i, 1, m - 1}, {j, i+1, m}] // Flatten // Union], b[n - 1, sn], 0] + b[n - 1, s]]];
c[n_] := c[n] = b[n - 1, {n}] + If[n == 0, 0, c[n - 1]];
a[n_] := c[n + 1] - n - 2;
Table[Print[n, " ", a[n]]; a[n], {n, 1, 64}] (* Jean-François Alcover, Sep 02 2019, after Alois P. Heinz in A143823 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 01 2010
EXTENSIONS
More terms from R. J. Mathar, Aug 02 2010
a(22)-a(28) from Nathaniel Johnston, Nov 12 2010
More terms from Alois P. Heinz, Sep 16 2011
STATUS
approved