when n is divided by 5 the remainder is 3 . what is the remainder when ( n - 1 ) ^ 2 is divided by 5 ?
n = 5 x + 3 , for some integer x ( n - 1 ) ^ 2 = ( 5 x + 2 ) ^ 2 = 5 y + 4 , for some integer y when we divide this by 5 , the remainder is 4 . the answer is e .
subtract(power(subtract(add(5, 3), 1), 2), multiply(floor(divide(power(subtract(add(5, 3), 1), 2), 5)), 5))