- or download this
perl -le'$==1,(1x$_)=~/^(1|11)*(?{$=++})^/,print$=for 0..20'
- or download this
perl -le'$==1,(1x$_)=~/^(1|11(??{}))*(?{$=++})^/,print$=for 0..20'
- or download this
perl -le'$==0,(1x$_)=~/^(1|11(??{}))*$(?{$=++})^/,print$=for 0..20'
- or download this
1 (1)(1)(1)(1)(1)(1)
2 (1)(1)(1)(1)(1 1)
...
11 (1 1)(1)(1 1)(1)
12 (1 1)(1 1)(1)(1)
13 (1 1)(1 1)(1 1)
- or download this
1 (1)(1)(1)(1)
2 (1)(1)(1) 1
...
10 (1 1)(1 1)
11 (1 1) 1 1
12 1 1 1 1