Since both the problem statement and the winning condition are given in terms of divisibility by 17, it is sufficient to consider the numbers modulo 17. In the beginning, all the remainders are different from zero and Alice wins if the sum modulo 17 becomes zero.
The moves a↦a2 and b↦b3 turn remainders into powers of the original nonzero values. Therefore, Fermat's little theorem can be applied. For a≡0(mod17) and the prime number 17, one has
a16≡1(mod17).
So if Alice squares the same number a four times in a row, then the remainder 1 modulo 17 is always obtained. Bob cannot do anything about it, because if Bob raises this number to the third power k times, we get a result of
a2⋅3k=163k≡13k=1(mod17).
The timing of Bob's moves does not matter, as the order of the factors in the exponent does not change anything.
Therefore, Alice can make all the remainders equal to 1 by squaring each number four times. Then of course the sum is 17⋅1≡0(mod17) and Alice has won.