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

Home > General > Tricks
Keeping it Positive (Posted on 2005-12-29) Difficulty: 3 of 5
x = O - 1
x is a positive integer
solve for x

See The Solution Submitted by tanx    
Rating: 4.3333 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts A possible solution | Comment 18 of 24 |

O, in the equation x = O -1, is either a variable or it is the character O.  

As a variable, to solve for x would simply be a simple restatement of the given:

            x = O -1 : x is a positive integer > 1

<o:p> </o:p>

In many computer programming languages, though, the uppercase O is an ASCII character represented by the decimal value of 79.  Subtracting 1 from this value gives the positive integer value 78.


  Posted by Dej Mar on 2006-03-01 22:46:45
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (13)
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