CAYLEY 1999 Problem 25

If a=3^p,b=3^q,c=3^r, and d=3^s and if p,q,r, and s are positive integers, determine the smallest value of p+q+r+s such that a^2+b^3+c^5=d^7.

Answer Choices
A. 17
B. 31
C. 106
D. 247
E. 353