how to get the arithmetic sequens?