OFFSET
0,2
COMMENTS
EXAMPLE
0, 1 and 2 substitutions produce lengths 1, 3 and 10:
{1}; {-2,0,2}; {-3,-1,1,3, -1,1, -3,-1,1,3} with sums of absolute values 1,4,18.
MATHEMATICA
Table[Plus@@Abs@Flatten[Nest[ #/.k_Integer:>Table[i, {i, -1-Abs[k], Abs[k]+1, 2}]&, {1}, w]], {w, 0, 10}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wouter Meeussen, May 03 2003
STATUS
approved