OFFSET
0,2
EXAMPLE
a(3) = 5 counts numbers { 0, 1/3, 1/2, 5/6, 1 }, each of which is can be represented as the sum of distinct reciprocals 1/1, 1/2, and 1/3.
MAPLE
s:= proc(n) option remember;
`if`(n=0, {0}, map(x-> `if`(n-1<n*x, x, [x, x+1/n][]), s(n-1)))
end:
a:= n-> nops(s(n)):
seq(a(n), n=0..20); # Alois P. Heinz, May 23 2012
MATHEMATICA
s[_] := s[n] = If[n == 0, {0}, If[n-1 < n*#, #, {#, # + 1/n}]& /@ s[n-1] // Flatten];
a[n_] := Length[s[n]];
Table[Print[n, " ", a[n]]; a[n], {n, 0, 32}] (* Jean-François Alcover, May 13 2019, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, May 22 2012
EXTENSIONS
a(27)-a(32) from Alois P. Heinz, May 23 2012
STATUS
approved