Excel in math, science, and engineering
A = 1
A[i] = A[i-1]+(i-1)+i [i>1]
A % 10 = ?
Details and assumptions:-
M % N means the remainder when M is divided by N.