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

Home > Numbers
Two to the Three = Three to the Two? (Posted on 2005-03-22) Difficulty: 3 of 5
264   This 2x3 grid has an interesting
200   property: 264x200 = 22x60x40.

Build a similar grid using all digits from 2 to 7.

See The Solution Submitted by Old Original Oskar!    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution An awk solution | Comment 3 of 9 |
I like awk, and used this to find the solution:

BEGIN {
for (A=2; A<=7; A++) {
for (B=2; B<=7; B++) if (A!=B) {
for (C=2; C<=7; C++) if ((A!=C) && (B!=C)) {
for (D=2; D<=7; D++) if ((A!=D) && (B!=D) && (C!=D)) {
for (E=2; E<=7; E++) if ((A!=E) && (B!=E) && (C!=E) && (D!=E)) {
F = (2+3+4+5+6+7)-(A+B+C+D+E);
ABC = (A B C) + 0;
DEF = (D E F) + 0;
AD = (A D) + 0;
BE = (B E) + 0;
CF = (C F) + 0;
if (ABC*DEF == AD*BE*CF) \
print ABC,DEF,AD,BE,CF,ABC*DEF;
}
}
}
}
}
}
  Posted by Federico Kereki on 2005-03-23 15:36:21
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 (10)
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