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

Home > Numbers
Similar Six Sequence (Posted on 2005-11-18) Difficulty: 2 of 5
If A*BCDEF=GGGGGG, and each different letter stands for a different digit, what's G?

See The Solution Submitted by Old Original Oskar!    
Rating: 3.7500 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 6 of 20 |

This checks all pairs of A and G to see if a valid BCDEF is found.

DEFDBL A-Z
FOR a = 2 TO 9
 FOR g = 1 TO 9
  REDIM used(9)
  used(a) = 1: used(g) = 1
  bcdef = g * 111111 / a
  good = 0
  IF bcdef = INT(bcdef) THEN
    b$ = LTRIM$(STR$(bcdef))
    good = 1
    FOR i = 1 TO LEN(b$)
     d = VAL(MID$(b$, i, 1))
     IF used(d) THEN good = 0: EXIT FOR
     used(d) = 1
    NEXT
    IF good THEN PRINT a; bcdef; g * 111111
  END IF
 NEXT
NEXT

If finds only

 7  95238  666666


  Posted by Charlie on 2005-11-18 11:05:35
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 (7)
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