234k views
1 vote
Using the same algorithm:

• Start with a number and add 2 to it.
Double the result.
• Subtract 3 from that quantity.
If the function outputs a value of 21, what was the value of the input?

User Dparpyani
by
8.9k points

2 Answers

4 votes

Answer:

• let the number be x:


• { \tt{ \dashrightarrow \: 2(x + 2)}}


• \dashrightarrow{ \tt{2x + 1}}


• \dashrightarrow{ \tt{ 2x + 1 = 21}} \\ \\ { \tt{2x = 20}} \\ \\ • \: { \boxed{ \tt{output : \: \: x = 10 \: \: }}}

User Dotnethaggis
by
7.5k points
2 votes

Let input be x


\\ \bull\tt\dashrightarrow 2(x+2)-3=21


\\ \bull\tt\dashrightarrow 2(x+2)=21+3


\\ \bull\tt\dashrightarrow 2(x+2)=24


\\ \bull\tt\dashrightarrow x+2=(24)/(2)


\\ \bull\tt\dashrightarrow x+2=12


\\ \bull\tt\dashrightarrow x=12-2


\\ \bull\tt\dashrightarrow x=10

User Josh Barker
by
8.1k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories