write C statements for the following

sum = a(rn - 1) /r-1

please send me the solution fastly