G(N) = N-3, if N ≥ 1000, and: G(N) = G(G(N+5)), if N < 1000
For an explanation, refer to the solution submitted by Steve Herman in this location.
blackjack
flooble's webmaster puzzle