what is the remainder when 9 ^ 19 is divided by 5 ?
"9 ^ 0 = 1 9 ^ 1 = 9 9 ^ 2 = 81 9 ^ 3 = 729 9 ^ 4 = . . . 1 9 ^ 5 = . . . . . 9 and so on in a distinct last - digit pattern of 9,1 , 9,1 . . . after ignoring the first last - digit of 1 19 / 2 = 9 ( with a remainder of 1 ) so the last number is a 9 . alternatively , 19 is an odd number and hence the last digit is a 9 when 9 ^ 19 is divided by 5 the remainder is 4 , ans = e"
subtract(divide(5, const_2), multiply(9, 9))