OFFSET
1,2
COMMENTS
EXAMPLE
After a(1) = 1, a(2) = 2, all products are present, so we add the first integer not included, namely 3. Then we add all products of any subset of {1, 2, 3} which include 3 and are not already present, in this case just 6. Then we add the next integer not already present, 4. Then we add all products of any subset of {1, 2, 3, 6, 4} which include 4 and are not already present, 8 (=2*4), 12 (=3*4), 24 (=2*3*4=6*4), 48 (=2*6*4), 72 (=3*6*4) and 144 (=2*3*6*4). Then we add 5, the next integer not already present. And so on.
MATHEMATICA
M[2]={1, 2} M[n_]:= Join[M[n-1], Complement[Union[M[n-1][[ -1]] * Exp[Map[Total, Log[Subsets[Delete[Delete[M[n-1], 1], -1]]]]]], M[n-1]], {n}] M[6]
CROSSREFS
KEYWORD
nonn
AUTHOR
Joel B. Lewis, Nov 15 2006
STATUS
approved