All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Eighty Four Exercise (Posted on 2014-11-10) Difficulty: 3 of 5
The function G(N) is such that:
G(N) = N-3, if N ≥ 1000, and:
G(N) = G(G(N+5)), if N < 1000
where, N is an integer.

Find G(84)

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Working Backwards (spoiler) Comment 1 of 1
G(999) = G(G(1004)) = G(1001) = 998
G(998) = G(G(1003)) = G(1000) = 997
G(997) = G(G(1002)) = G(999) = 998
G(996) = G(G(1001)) = G(998) = 997
G(995) = G(G(1000)) = G(997) = 998
G(994) = G(G(999)) = G(998) = 997
and so forth

If N < 1000,
then G(N) = if N is odd, then 998
               = if N is even, then 997
          
So, G(84) = 997  

  Posted by Steve Herman on 2014-11-10 17:29:46
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (11)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information