The 2’s complement of the number (1010101)2 is found in two steps. First, convert the given number into its l’s complement.
1’s complement of a binary number is just an inversion of individual bits.
1’s complement of (1010101)2 is (0101010)2
To find 2’s complement of the number add one to the least significant bit (LSB). So