Skip to main content
Typo fixed
Source Link
Daniele Tampieri
  • 6.4k
  • 7
  • 30
  • 45

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

Also, it is only allowsallowed to take the square root of $A$ when this square root yields a natural number.

How can one find the minimum amount of operations in order to get from $A$ to $B$?

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

Also, it is only allows to take the square root of $A$ when this square root yields a natural number.

How can one find the minimum amount of operations in order to get from $A$ to $B$?

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

Also, it is only allowed to take the square root of $A$ when this square root yields a natural number.

How can one find the minimum amount of operations in order to get from $A$ to $B$?

Incorporate a critical requirement from the comments.
Source Link

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

Also, it is only allows to take the square root of $A$ when this square root yields a natural number.

How can one find the minimum amount of operations in order to get from $A$ to $B$?

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

How can one find the minimum amount of operations in order to get from $A$ to $B$?

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

Also, it is only allows to take the square root of $A$ when this square root yields a natural number.

How can one find the minimum amount of operations in order to get from $A$ to $B$?

There'reThere are two integers $A$ and: $B$$A, B$. Only with four operationGiven the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

How to countcan one find the minimum numbersamount of 'operation' above neededoperations in order to changeget from $A$ to $B$?

There're two integers $A$ and $B$. Only with four operation below:

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

How to count minimum numbers of 'operation' above needed to change $A$ to $B$?

There are two integers: $A, B$. Given the below four allowed operations (and only them):

$A+1$, $A-1$, $\sqrt{A}$, $A^2$

How can one find the minimum amount of operations in order to get from $A$ to $B$?

Became Hot Network Question
Minor changes aimed at clarifying the question and further tagging
Source Link
Daniele Tampieri
  • 6.4k
  • 7
  • 30
  • 45
Loading
Source Link
Loading