awk '$0=$exp(++$2>$1/=2-$1%2)'