Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

A big stone weighing 40 kg fall from a certain height and split into four pieces. Interestingly, with the help of these four pieces, one can weigh any quantity from one kg to 40 kg by using these in a scale(both plates of the scale can be used for placing any stone pieces at a time).Find the weight of each piece.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

But I'm learning Haskell, so thought will try with that..

solvepuzzle = [(a,b,c,d) | a <- [1..40], b <- [a..40], c <- [b..40], d <- [c..40], a+b+c+d == 40, sort [p*a + q*b + r*c + s*d | p <- [-1,0,1], q <- [-1,0,1], r <- [-1,0,1], s <- [-1,0,1], p*a+q*b+r*c+s*d > 0] == [1..40]]

Only one solution - 1, 3, 9, 27

Link to comment
Share on other sites

  • 0

1

3-1=2

3

1+3=4

9-3-1=5

9-3=6

1+9-3=7

9-1=8

9

1+9=10

3+9-1=11

3+9=12

1+3+9=13

27-9-3-1=14

27-9-3=15

27-9-3+1=16

27-9-1=17

27-9=18

1+27-9 = 19

27-9+3-1=20

27-9+3=21

27-9+3+1=22

27-1-3=23

27-3=24

1+27-3=25

27-1=26

27

1+27=28

3+27-1=29

3+27=30

1+3+27=31

27+9-3-1=32

27+9-3=33

27+9-3+1=34

9+27-1=35

9+27=36

1+9+27=37

27+9+3-1=38

3+9+27=39

1+3+9+27=40

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...