The Algorithm Z and Ramanujan’s 1ψ1 summation