OFFSET
0,2
COMMENTS
We use the notation [n] = {0, 1, ..., n-1}. If S is a subset of [n] then we define the distset of S (set of distances of S) as {|x - y|: x, y in S}. We call a subset S of the natural numbers self-measuring if and only if S = distset(S).
LINKS
Winston de Greef, Table of n, a(n) for n = 0..10000
Peter Luschny, Illustrating self-measuring subsets of {0, 1, 2, 3}.
FORMULA
EXAMPLE
a(0) = 1 = card({}).
a(4) = 7 = card({}, {0}, {0, 1}, {0, 2}, {0, 3}, {0, 1, 2}, {0, 1, 2, 3}).
a(6) = 12 = card({}, {0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 1, 2}, {0, 2, 4}, {0, 1, 2, 3}, {0, 1, 2, 3, 4}, {0, 1, 2, 3, 4, 5}).
MAPLE
MATHEMATICA
a[0] = 1; a[1] = 2; a[n_] := a[n] = a[n - 1] + DivisorSigma[0, n - 1];
Table[a[n], {n, 0, 58}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Dec 14 2021
STATUS
approved