A Calculus of Sequences