public int METHOD_1 ( int n ) { if ( n == 1 ) { return INT_1 ; } java.util.List < java.lang.Integer > results = METHOD_2 ( n ) ; int result = 0 ; int size = results . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int tmp = ( size - i ) - 1 ; result += ( results . get ( i ) ) * ( java.lang.Math.pow ( INT_2 , tmp ) ) ; } return result ; }

public int METHOD_1 ( int n ) { int result = 0 ; for ( int i = 1 ; i != 0 ; i <<= 1 ) { result <<= 1 ; if ( ( n & 1 ) > 0 ) { result |= 1 ; } n >>= 1 ; } return result ; }
