I do not know the rules governing the transformation of each member of the following group of equations into the the next one:
$$ 5(1 + 2^{k -1} + 3^{k -1}) - 6(1 + 2^{k -2} + 3^{k -2}) + 2 \\= (5 -6 + 2) + (5 \times 2^{k - 1} - 6 \times 2^{k - 2}) + (5 \times 3^{k -1} - 6 \times 3^{k - 2}) \\= 1 + (5 - 6 \times 2^{-1}) \times 2^{k -1} + (5 - 6 \times 3^{-1}) \times 3^{k -1} \\= 1 + (5 -3) \times 2^{k-1} + (5 - 2) \times 3^{k -1} \\= 1 + 2 \times 2^{k -1} + 3 \times 3^{k -1} \\= 1 + 2^{k} + 3^{k}$$
I need to learn rules such as these from scratch. Where can I learn them?
Could someone label the rule used to form each member of the group of equalities from the previous member?