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

Home > Numbers
Either / Or (Posted on 2006-05-13) Difficulty: 2 of 5
I am a three digit number.
I am either divisible by 3 or by 5.
I am either divisible by 4 or by 6.
I am either divisible by 5 or by 7.
I am either divisible by 6 or by 8.
I am either divisible by 7 or by 9.
I am either divisible by 9 or by 11.

What am I?

(Note: "divisible" means leaving no remainder.)

See The Solution Submitted by tomarken    
Rating: 3.0000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: That depends on what "or" is -- the exclusive story (spoiler) | Comment 5 of 17 |
(In reply to That depends on what "or" is -- computer solution by Charlie)

FOR n = 100 TO 999
  IF n MOD 3 = 0 XOR n MOD 5 = 0 THEN
  IF n MOD 4 = 0 XOR n MOD 6 = 0 THEN
  IF n MOD 5 = 0 XOR n MOD 7 = 0 THEN
  IF n MOD 6 = 0 XOR n MOD 8 = 0 THEN
  IF n MOD 7 = 0 XOR n MOD 9 = 0 THEN
  IF n MOD 9 = 0 XOR n MOD 11 = 0 THEN
   PRINT n

  END IF
  END IF
  END IF
  END IF
  END IF
  END IF

NEXT

does indeed produce 462.


  Posted by Charlie on 2006-05-13 12:25:52
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 (9)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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