Having trouble understanding how this recursive function works.
int F( int X )
{
return (X<=0) ? 3 : F(X/2)+F(X-3);
}
I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 returns 15. How?