This function is used to calculate (a)r.
AR(a, r)
a
first value.
r
second value.
returns the value for the a(r) function.