Upgrade subject to access all content
Consider the following method.
public static int mystery(int x)
if (x <=1)
return 3 * mystery(x-1);
If q > 0 and q is initialized and defined as an int, which is the following is returned as a result of the call mystery(q)?
$(3^q) - 1$