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