restonpiston

Hi, I was looking at youtube videos haphazardly and stumble upon this one:

Here they explain a cool way to decompose numbers but they don't know the method to do that.

The decomposition rules are as follows:

Using this rules you can decompose 814 in:

22*(2+2+2)^2+22

I thought about it for a bit and realize that it would be an interesting challenge for many people.

So here is my idea, post your solution of the problem if you have one and we will discuss it against the others.

I dont have the solution myself, so it would be challenge for me. Also, use your favourite language,

but if you don't mind, make it in python so we all have a common syntaxis.

Have fun!

Here they explain a cool way to decompose numbers but they don't know the method to do that.

The decomposition rules are as follows:

You can only use one type of number from 1 to 9

You can only use operations of sum, subtraction, multiplication, division, exponentiation and concatenation

You must look for the shortest expression

Using this rules you can decompose 814 in:

22*(2+2+2)^2+22

I thought about it for a bit and realize that it would be an interesting challenge for many people.

So here is my idea, post your solution of the problem if you have one and we will discuss it against the others.

I dont have the solution myself, so it would be challenge for me. Also, use your favourite language,

but if you don't mind, make it in python so we all have a common syntaxis.

Have fun!