Arithmetic with Language Models: from Memorization to Computation