Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

10 answers to this question

Recommended Posts

  • 0

solve:

GET*IT=RIGHT where each letter stands for a different number.

R=3

All variables are equal to 1. Thus (1)(1)(1)*(1)(1)=(1)(1)(1)(1)(1) = 1*1=1

Wrong... all numbers have to be different

nope the answer as i see it is far more complex

GET*IT=RIGHT

where i say

G=x1

E=x2

T=x3

I=x4

h=x5

that gives us the formula

(100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3

which will have to be solved manually

where there is 10*9*8*7*6 times answers however only a few of them is correct

i then use mapple or any other program code to find the answer

for x1 from 0 to 9 do for x2 from 0 to 9 do for x2 from 0 to 9 do for x3 from 0 to 9 do for x4 from 0 to 9 do for x5 from 0 to 9 do if (100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3 then print(x1,x2,x3,x4,x5) end if end do end do end do end do end do end do;

which gives

x1=6, x2=2,x3=1,x4=5,x5=7

or

x1=7, x2=9,x3=5,x4=4,x5=7

however as it said in the text the numbers have to be different

so the answer is

621*51=31671

Ps. my very first post :D, just couldn't resist to find an answer for it :D

Edited by jan
Link to comment
Share on other sites

  • 0

the code is

for x1 from 0 to 9 do

for x2 from 0 to 9 do

for x3 from 0 to 9 do

for x4 from 0 to 9 do

for x5 from 0 to 9 do

if (100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3

then print(x1,x2,x3,x4,x5)

end if

end do

end do

end do

end do

end do;

Link to comment
Share on other sites

  • 0

Wrong... all numbers have to be different

nope the answer as i see it is far more complex

GET*IT=RIGHT

where i say

G=x1

E=x2

T=x3

I=x4

h=x5

that gives us the formula

(100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3

which will have to be solved manually

where there is 10*9*8*7*6 times answers however only a few of them is correct

i then use mapple or any other program code to find the answer

for x1 from 0 to 9 do for x2 from 0 to 9 do for x2 from 0 to 9 do for x3 from 0 to 9 do for x4 from 0 to 9 do for x5 from 0 to 9 do if (100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3 then print(x1,x2,x3,x4,x5) end if end do end do end do end do end do end do;

which gives

x1=6, x2=2,x3=1,x4=5,x5=7

or

x1=7, x2=9,x3=5,x4=4,x5=7

however as it said in the text the numbers have to be different

so the answer is

621*51=31671

Ps. my very first post :D, just couldn't resist to find an answer for it :D

In your solution RIGHT=31671, so I=T=1 which is prohibited by the condition. Wrong answer. Nice first post.

There is just a couple of posts and the problem can be solve without hints. Why do you give so many?

851*41=34891

Link to comment
Share on other sites

  • 0

I count 5 answers. But I brute forced it..

20:22:57 0:1065 wede@v-ger:~ $>./puzzle.sh

306 * 96 = 29376 : G=3 E=0 T=6 I=9 R=2 H=7

415 * 95 = 39425 : G=4 E=1 T=5 I=9 R=3 H=2

516 * 96 = 49536 : G=5 E=1 T=6 I=9 R=4 H=3

635 * 75 = 47625 : G=6 E=3 T=5 I=7 R=4 H=2

851 * 41 = 34891 : G=8 E=5 T=1 I=4 R=3 H=9

DONE


#!/bin/bash

G=1

E=0

I=1

R=1

H=0

T=0

while true ; do

        one="$G$E$T"

        two="$I$T"

        three="$R$I$G$H$T"

        if [[ $((  $one * $two )) -eq $three ]] ; then

                differents=$( foo=`printf "$G\n$E\n$I\n$R\n$H\n$T\n" | sort -u | wc -l`; echo $foo )

                if [[ "$differents" == "6" ]] ; then

                        echo "$one * $two = $three : G=$G E=$E T=$T I=$I R=$R H=$H"

                fi

        fi

        (( T++ ))

        if [[ $T -eq 10 ]] ; then T=0; (( H++ ))

                if [[ $H -eq 10 ]] ; then H=0; (( R++ ))

                        if [[ $R -eq 10 ]] ; then R=1; (( I++ ))

                                if [[ $I -eq 10 ]] ; then I=1; (( E++ ))

                                        if [[ $E -eq 10 ]] ; then E=0; (( G++ ))

                                                if [[ $G -eq 10 ]] ; then echo "DONE"; exit 0

                                                fi

                                        fi

                                fi

                        fi

                fi

        fi

done

Link to comment
Share on other sites

  • 0

In your solution RIGHT=31671, so I=T=1 which is prohibited by the condition. Wrong answer. Nice first post.

There is just a couple of posts and the problem can be solve without hints. Why do you give so many?

851*41=34891

>< was a typo

Wrote

(100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x3+100*x1+10*x5+x3

was supposed to be

(100*x1+10*x2+x3)*(10*x4+x3) = 30000+1000*x4+100*x1+10*x5+x3

which gives the 5 correct answers as the guy above me say

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...