for n in {0..313}; do if [[ $(bash <(printf %s 'seq -s "" 0 $1|egrep ^.{$1}0') $n) ]]; then echo $n fidone
Standard input is empty
0 11 31 51 71 91 111 131 151 171 191 192 194 197 200 203 206 209 212 215 218 222 252 282 312
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!