OFFSET
0,3
FORMULA
EXAMPLE
a(59)=4 because 5+9 = 14 = 4 mod 10
MATHEMATICA
Table[Mod[Total[IntegerDigits[n]], 10], {n, 0, 120}] (* Harvey P. Dale, Oct 02 2018 *)
PROG
(PARI) a(n)=sumdigits(n)%10 \\ Charles R Greathouse IV, Feb 02 2023
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Henry Bottomley, Mar 28 2000
STATUS
approved