Nth term of an arithmetic series