Determ of the last term of the sequence