# Calculate : 1

This question inspired me to lớn write the same puzzle but instead replace the "= 100" with "= 1" with similar requirements và restrictions.

Bạn đang xem: Calculate : 1

What is the expression with the fewest number of operators inserted that evaluates to 1?

Restrictions:

The numbers need khổng lồ be in the order that"s shown in the question.Only use the operators +,−,×,÷ và √ và ! (Implies that modulus "%", exponent "^", binomial coefficients, and other operators are not allowed).Parentheses will not be counted, so they can be used khổng lồ change the order of operations.Rounding is not allowed, so it have to lớn equal to 1.

Verify your calculations in that calculator application that comes with your PC, if it ever did came with your PC.

This is my first time writing a puzzle here so obviously I should have thought this out a lot more instead of adding rules when situation comes.

cốt truyện
Improve this question
Follow
edited Apr 13, 2017 at 12:50

CommunityBot
1
asked Apr 15, 2015 at 20:35

John OdomJohn Odom
\$endgroup\$
7

Sorted by: Reset to default
Highest score (default) Date modified (newest first) Date created (oldest first)
38
\$egingroup\$
If √ can mean nth root:

\$\$sqrt<1234567>-8+9\$\$

3 operators. Obviously...

tóm tắt
Follow
answered Apr 16, năm ngoái at 6:11

user23013user23013
\$endgroup\$
3
22
\$egingroup\$

uses four. (I wrote a Python script.)

share
Follow
answered Apr 15, năm ngoái at 20:52

LynnLynn
\$endgroup\$
5
11
\$egingroup\$
How many significant digits matter here for rounding? Because if it"s anything less than \$3,456,789\$ zeroes, I can solve it in three ;)

\$1+2/3456789! = ~1\$

Many programming languages will evaluate it as "1". Even Wolfram Alpha can"t show me enough decimal digits lớn tell me I"m wrong ;P

EDIT:Yes, I know this is no longer valid as of the rule change that doesn"t include rounding. I didn"t expect it would be allowed anyways, just figured it would be worth submitting, since it comes so infinitesimally close khổng lồ 1. Besides, kgull managed to get even closer using a similar method.

cốt truyện
Follow
edited May 1, 2018 at 4:25

SteamCode
answered Apr 15, năm ngoái at 21:02
Mwr247Mwr247
\$endgroup\$
4
5
\$egingroup\$
Assuming the binomial coefficient is not an operator itself & parentheses are allowed and not counted, this requires only 1 operator.

\$\$1+2345choose6789=1\$\$

Check the Pochhammer symbol too:

\$\$1+(-2)_3456789\$\$

Some useful information on Wolfram Alpha.

Xem thêm: Miệng Giếng Nước Là Một Hình Tròn Có Bán Kính, Một Giếng Nước Là Một Hình Tròn Có Bán Kính 0,7M

chia sẻ
Follow
edited Jun 25, 2015 at 17:35
grg
answered Apr 16, 2015 at 13:51
Francesco De LisiFrancesco De Lisi
\$endgroup\$
8
4
\$egingroup\$
If parentheses will not be counted và if we could use it as multiply:

\$12(34)-5(67)-8(9) = 1\$

I used only 2 operators.

nội dung
Follow
edited May 1, 2018 at 3:49
JMP
answered Apr 16, năm ngoái at 21:07
AlexAlex
\$endgroup\$
3
địa chỉ cửa hàng a phản hồi |
3
\$egingroup\$
A simple expression that is exact, and only uses four operations without bending the rules (if exponentiation isn"t permitted, I assume that neither is using the numbers khổng lồ create n-th roots) while using at least one non-basic operation, is\$\$((1+2-3) imes456789)!\$\$That"s one addition, one subtraction, one multiplication, & one factorial (actually, zero factorial, but you know what I mean). Another similar option is\$\$((12/3-4) imes56789)!\$\$A slightly more bendy solution using the fact that negative integer factorials can be considered to lớn be infinite is\$\$1+2/(3-456789)!\$\$

cốt truyện
Follow
answered Apr 17, 2015 at 7:54
Glen OGlen O
\$endgroup\$
showroom a phản hồi |
3
\$egingroup\$
\$\$(1 + 23 + 45 + 6! - 789)! = 1\$\$

\$\$((1+2-3) imes456789)!=1\$\$

Everyone is trying with minimum operators.I guess, with
user23013"s solution, we can try with various possibilities :)

nói qua
Follow
edited Jun 17, 2020 at 8:22
CommunityBot
1
answered Apr 17, 2015 at 8:57
thepacethepace
\$endgroup\$
1
1
\$egingroup\$
Three Operators

Similar idea to Mwr247"s solution, but even more significant figures:

\$\$left(frac123456789! ight)! = 1\$\$

Wolfram Alpha seems to think it is exactly 1. Good enough for me >_>

tóm tắt
Follow
edited Jun 25, năm ngoái at 17:35
grg
answered Apr 16, 2015 at 6:42
Kyle GKyle G
\$endgroup\$
6
| Show 1 more bình luận
0
\$egingroup\$
\$\$1-23+45+67-89\$\$uses only 4 operators.

nói qua
Follow
edited Jun 25, 2015 at 17:36
grg
answered Apr 15, 2015 at 21:08
My Life for AuirMy Life for Auir
\$endgroup\$
1
địa chỉ a comment |
0
\$egingroup\$
Edit: I realized Alex did it using 2 operations using this loophole so this is nothing special. I"d delete this normally but I think this solution is still kinda cool.

I got three operations without using an nth root:

\$(12)(3)(4)(.5)(-6+7)/((8)(9))=1\$Taking advantage of parentheses not counting. (Yes I know the rule wasn"t meant for them khổng lồ be used this way but I spent a long time thinking of how to exploit this loophole so cut me some slack.)

chia sẻ
Follow
edited Jun 26, 2015 at 3:54
answered Jun 26, 2015 at 3:46
QuarkQuark
\$endgroup\$
-3
\$egingroup\$
In languages like C# and Java dividing two integers will always result in an integer (decimals will be omitted).Therefore only one operation is required khổng lồ solve this problem:

12345/6789Which will result in 1.

nói qua
Follow
answered Apr 16, năm ngoái at 12:28
Mike.Mike.
\$endgroup\$
5
showroom a bình luận |
-4
\$egingroup\$
One operator.

Taking advantage of user23013 "s loop hole.

Xem thêm: Viết Chương Trình Nhập 2 Số Nguyên A Và B Từ Bàn Phím, Viết Chương Trình Nhập 2 Số Nguyên A Và B

If √ can mean nth root:

\$\$sqrt<23456789>1\$\$

mô tả
Follow
answered Apr 16, năm ngoái at 10:42
user288447user288447
101
\$endgroup\$
1
địa chỉ a comment |
Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam & non-answer activity.
Featured on Meta
79
Making π from 1 2 3 4 5 6 7 8 9
47
1 2 3 4 5 6 7 8 9 = 100
12
123456789=1 problem
Related
47
1 2 3 4 5 6 7 8 9 = 100
0
Smallest impossible positive integer with 5 ones and 5 operators
24
Make numbers 1 - 30 using the digits 2, 0, 1, 8
3
Make numbers 1-30 using 2, 0, 1, 9
11
Create the numbers 1 - 30 using the digits 2, 0, 1, 9 in this particular order!
1
Create Numbers 1 - 100 using 1,9,6,8
3
1 0 1 0 1 0 1 0 1 0 1
15
Make 24 using exactly three 3s
2
Make the numbers 1-100 using 1,7,3,4
Hot Network Questions more hot questions
Question feed