I believe the answer is 39.
The sum will be 2005(20052005 -1)/2004
The exponential will end in a 5 and the term in parentheses will end in a 4 which will divide into the denominator to give 51. 51 divided into 2005 ends in 39.
Please let me know if this is not correct.