An operation produces A−1/A from a fraction A= m/n, where m ≠ n and m ≠ 0. If the initial value of A is 24/47 and the operation is repeated 2012 times, the final output is a/b, where a and b are coprime positive integers. What is a+b?