{ result = 0 for ( i = 1 ; i < NF+1 ; i++ ) { result = result * 2 + $i } printf("%d\n",$0,result) }