WoodCentral Forums

Est. 1998 — 27 years of woodworking knowledge

Friday puzzle -- Team effort 2,3,7, &8

Posts

Friday puzzle -- Team effort 2,3,7, &8

#1

Friday puzzle -- Team effort 2,3,7, &8

This is a two-part challenge. Hopefully, lots of folks will contribute to the first part.

Express nearly every positive integer from 1 to 30 inclusive using all four of the numbers 2,3,7, &8; any or all of the four basic arithmetic functions indicated by +, -, *, and /; and parentheses for grouping. For instance, 3 can be expressed as (7+8)/3-2. (Note, 2,3,7,&8 are numbers here, not digits, so 23-7-8 is not a solution for 8.)

Part one is to find solutions for 29 of these numbers, and thus to identify the one that can't be expressed in those terms.

Part two is to determine what other operator could be added to allow this last one to be solved.

Suggested process: When you find one or several, put the number(s) in the subject line, and the solutions in the body. I'll check in periodically and post a "yet-to-be-found" list.

Computer-types: Writing a program to solve this may also be fun. If you do so, please just announce your accomplishment without revealing any solutions or the impossible number. Then, we'll call on you if our collective efforts fall short.

I'll kick it off with a couple of solutions.

Re: Friday puzzle -- Team effort 2,3,7, &8

#2

1,2,3

1 = (3+7)/(2+8)

2 = 3+8-7-2

3 = (8+7)/(3+2)

Re: Friday puzzle -- Team effort 2,3,7, &8

#3

Re: 5

5=(3x7)-(2x8)

Re: Friday puzzle -- Team effort 2,3,7, &8

#4

Re: 7, 10, 12, 14, 19, 20, 26

7=3x2-7+8

10=3x8-2x7

12=2x8+3-7

14=8/2+3+7

19=(3x8)/2+7

20=2x8-3+7

26=2x8+3+7

Re: Friday puzzle -- Team effort 2,3,7, &8

#5

Re: 0, 8, 9, 21, 25, 27, 30

0=8/2-(3-7)

8=8/2-3+7

9=2x7-8+3

21=2x3+7+8

25=2x7+3+8

27=7x3+8-2

30=7x8-3-2

Re: Friday puzzle -- Team effort 2,3,7, &8

#6

Re: 6, 11, 29

6=2+3-7+8

11=(7+2)/3+8

29=3x8+7-2

What is left.

4,13,15,16,17,18,22,23,24,28

Re: Friday puzzle -- Team effort 2,3,7, &8

#7

Re: 17

17=3x7-8/2

Numbers that are left:

4,13,15,16,18,22,23,24,28,30

previous wrong 30=7x8-3-2

it is 51=7x8-3-2

Re: Friday puzzle -- Team effort 2,3,7, &8

#8

Re: 13

13=(3+7)/2+8

Numbers that are left:

4,15,16,18,22,23,24,28,30

Re: Friday puzzle -- Team effort 2,3,7, &8

#9

Re: 15,24

15=(3-2)x(7+8)

24=(7-3)x(8-2)

Nr. left:

04,16,18,22,23,28,30

Re: Friday puzzle -- Team effort 2,3,7, &8

#10

Re: 16

16=((7-3)/2)x8

Nr. left:

04,18,22,23,28,30

Re: Friday puzzle -- Team effort 2,3,7, &8

#11

Re: Friday puzzle -- Team effort 2,3,7, &8

0=8/2-(3-7)

1 = (3+7)/(2+8)

2 = 3+8-7-2

3 = (8+7)/(3+2)

4

5=(3x7)-(2x8)

6=2+3-7+8

7=3x2-7+8

8=8/2-3+7

9=2x7-8+3

10=3x8-2x7

11=(7+2)/3+8

12=2x8+3-7

13=(3+7)/2+8

14=8/2+3+7

15=(3-2)x(7+8)

16=((7-3)/2)x8

17=(3x7)-(8/2)

18

19=(3x8)/2+7

20=2x8-3+7

21=2x3+7+8

22

23

24=(7-3)x(8-2)

25=2x7+3+8

26=2x8+3+7

27=7x3+8-2

28

29=3x8+7-2

30

What is left.

4,18,22,23,28,30

Re: Friday puzzle -- Team effort 2,3,7, &8

#12

Re: 28

28=(3+7)x2+8

nr. left:

4,18,22,23,30

Re: Friday puzzle -- Team effort 2,3,7, &8

#13

Re: Friday puzzle -- Team effort 2,3,7, &8

0<>8/2-(3-7) , but the fix is easy, an the question was only for 1-30. Rest look good.

Re: Friday puzzle -- Team effort 2,3,7, &8

#14

Still looking for 4,18,22,23,30

Joel's knocked this one out of the park. Anyone else before he wraps it up?

Re: Friday puzzle -- Team effort 2,3,7, &8

#15

Computer solvers

Anyone working on a program for this one? If so, it might be interesting to add to your code a count of distinct solutions for each number (or even better, distinct solutions excluding commutation).

Re: Friday puzzle -- Team effort 2,3,7, &8

#16

4

4=(7+3+2)-8

Re: Friday puzzle -- Team effort 2,3,7, &8

#17

18

((7*8)-2))/3=18

Re: Friday puzzle -- Team effort 2,3,7, &8

#18

And then there were three: 22, 23, and 30

Two of which are solvable.

Re: Friday puzzle -- Team effort 2,3,7, &8

#19

Re: Friday puzzle -- Team effort 2,3,7, &8

0<>8/2-(3-7) , but the fix is easy, an the question was only for 1-30.

0 = (8/2)+(+3-7) sorry reversed the neg. sign.

Re: Friday puzzle -- Team effort 2,3,7, &8

#20

Re: And then there were three: 22, and 30

23=(2+8)x3-7

Re: Friday puzzle -- Team effort 2,3,7, &8

#21

23 solved, one of 22 or 30 is possible

Re: Friday puzzle -- Team effort 2,3,7, &8

#22

Re: And then there were one: 22

0 = 8/2+(3-7)

1 = (3+7)/(2+8) or (7-3)/(8/2)

2 = 3+8-7-2

3 = (8+7)/(3+2)

4 = 7+3+2-8

5 = (3x7)-(2x8)

6 = 2+3-7+8

7 = 3x2-7+8

8 = 8/2-3+7

9 = 2x7-8+3

10 = 3x8-2x7

11 = (7+2)/3+8

12 = 2x8+3-7

13 = (3+7)/2+8

14 = 8/2+3+7 or ((8-2)x7)/3

15 = (3-2)x(7+8) or (3+8)x2-7

16 = ((7-3)/2)x8

17 = (3x7)-(8/2)

18 = ((7*8)-2)/3

19 = (3x8)/2+7 or 2x7+8-3

20 = 2x8-3+7 or 8+7+3+2

21 = 2x3+7+8

22 =

23 = (2+8)x3-7

24 = (7-3)x(8-2)

25 = 2x7+3+8 or (7x8)/2-3 or 3x7+8/2

26 = 2x8+3+7

27 = 7x3+8-2 or (7+8)x2-3

28 = (3+7)x2+8

29 = 3x8+7-2 or (3+8)x2+7

30 = (7-3)x8-2

31 = (8x7)/2+3

Re: Friday puzzle -- Team effort 2,3,7, &8

#23

Now on to part 2

22 cannot be expressed with 2,3,7,&8 and the four most basic arithmetic operations. What one additional operator can be added to get a solution for 22, and what is that solution? (There may be more than one answer.)

Re: Friday puzzle -- Team effort 2,3,7, &8

#24

Re: Now on to part 2

How about ((8!/7!)x3)-2.

Re: Friday puzzle -- Team effort 2,3,7, &8

#25

Beautimous ;-)

That is one operation that I didn't think of.

👍 This page answered my questions

Your vote helps other woodworkers quickly find the answers and techniques that actually work in the shop.