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

 Either / Or (Posted on 2006-05-13)
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

 Search: Search body:
Forums (0)