OFFSET
1,2
EXAMPLE
The n-th row lists all integers that can be obtained starting with (1, ..., n):
1
2 3
5 6 7 8 9
9 10 11 12 13 14 15 16 17 18 19 20 21 24 25 26 27 28 30 32 36
MATHEMATICA
ReplaceListRepeated[forms_, rerules_]:=Union[Flatten[FixedPointList[Function[pre, Union[Flatten[ReplaceList[#, rerules]&/@pre, 1]]], forms], 1]];
Table[Length[Select[ReplaceListRepeated[{Range[n]}, {{foe___, x_, mie___, y_, afe___}:>Sort[Append[{foe, mie, afe}, x+y]], {foe___, x_, mie___, y_, afe___}:>Sort[Append[{foe, mie, afe}, x*y]]}], Length[#]==1&]], {n, 6}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Sep 29 2018
STATUS
approved