If the value of (a3−b3a3+b3), when a=7 and b=2 is 335p, then p is 321.
a3−b3=(a−b)(a2+ab+b2)
a3+b3=(a+b)(a2−ab+b2)
Putting the values of a and b, we get the value of p as 351.
Alternatively, we can observe that since a and b are positive, so the denominator has to be greater than the numerator. Thus, a3+b3 will be greater than a3−b3.