Four-Slots Problem

Algebra Level 3

expression \underbrace{\huge \square^{\square}\square^{\square}}_{\normalsize\text{expression}} Each slot must only contain one number which should only be 2 2 , 3 3 , 4 4 , or 5 5 . Once that number is placed in a slot, it cannot be used again on another inside the expression.

In the equality below, apply the rule above. In each of the expressions, each slot must only contain one of the four mentioned numbers. After doing so, the expressions should be equal to each other. Example: 2 3 4 5 = 4 5 2 3 \small\boxed{2}^{\boxed{3}}\boxed{4}^{\boxed{5}} = \boxed{4}^{\boxed{5}}\boxed{2}^{\boxed{3}}

How many equalities can there be?

= \huge \square^{\square}\square^{\square} = \square^{\square}\square^{\square}

Note: It still counts if the two expressions are completely the same, like 5 4 3 2 = 5 4 3 2 \small \boxed{5}^{\boxed{4}}\boxed{3}^{\boxed{2}} =\boxed{5}^{\boxed{4}}\boxed{3}^{\boxed{2}} .


The answer is 64.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Kyle T
Feb 22, 2019

<?php
//build all 4 digit combinations (2345 through 5432)
$arr = array(2,3,4,5);
do{
$newarr = array();
foreach($arr as $a){
for($i=2; $i<=5; $i++){
if( !preg_match('@'.$i.'@',$a) ){
$newarr[] = $a.$i;
}
}
}
$arr = $newarr;
} while( strlen( $arr[0] ) < 4 );


//keep a counter
$c = 0;
//loop through the array twice, calculating and comparing results
foreach($arr as $a){
foreach($arr as $b){
if( pow($a[0],$a[1]) * pow($a[2],$a[3]) == pow($b[0],$b[1]) * pow($b[2],$b[3]) ){
$c++;
}
}
}
//print result
echo $c; //64
?>

Kaizen Cyrus
Feb 16, 2019

Let's list all of the possible permutations that can be put in the expression.

Expression Product Number of Appearance of the Product 2 3 4 5 8192 2 2 3 5 4 5000 2 2 4 3 5 3888 4 2 4 5 3 2000 4 2 5 3 4 2592 2 2 5 4 3 2048 2 3 2 4 5 9216 2 3 2 5 4 5625 2 3 4 2 5 2592 2 3 4 5 2 2025 2 3 5 2 4 3888 4 3 5 4 2 3888 4 4 2 3 5 3888 4 4 2 5 3 2000 4 4 3 2 5 2048 2 4 3 5 2 1600 2 4 5 2 3 8192 2 4 5 3 2 9216 2 5 2 3 4 2025 2 5 2 4 3 1600 2 5 3 2 4 2000 4 5 3 4 2 2000 4 5 4 2 3 5000 2 5 4 3 2 5625 2 \scriptsize \begin{array}{ccc}\text{Expression} & \text{Product} & \text{Number of Appearance of the Product} \\ 2^{3}4^{5} & 8192 & 2 \\ 2^{3}5^{4} & 5000 & 2 \\ 2^{4}3^{5} & 3888 & 4 \\ 2^{4}5^{3} & 2000 & 4 \\ 2^{5}3^{4} & 2592 & 2 \\ 2^{5}4^{3} & 2048 & 2 \\ 3^{2}4^{5} & 9216 & 2 \\ 3^{2}5^{4} & 5625 & 2 \\ 3^{4}2^{5} & 2592 & 2 \\ 3^{4}5^{2} & 2025 & 2 \\ 3^{5}2^{4} & 3888 & 4 \\ 3^{5}4^{2} & 3888 & 4 \\ 4^{2}3^{5} & 3888 & 4 \\ 4^{2}5^{3} & 2000 & 4 \\ 4^{3}2^{5} & 2048 & 2 \\ 4^{3}5^{2} & 1600 & 2 \\ 4^{5}2^{3} & 8192 & 2 \\ 4^{5}3^{2} & 9216 & 2 \\ 5^{2}3^{4} & 2025 & 2 \\ 5^{2}4^{3} & 1600 & 2 \\ 5^{3}2^{4} & 2000 & 4 \\ 5^{3}4^{2} & 2000 & 4 \\ 5^{4}2^{3} & 5000 & 2 \\ 5^{4}3^{2} & 5625 & 2 \end{array}

The total number of possible permutations is 24 24 . The right row indicates how many times the (expression's) product on its left appeared in the list. Knowing all of these, we can get how many equal pairs there can be.

If a product were to appear once in the list, then its expression can be paired to itself. In this case, there are no products that only appear once in the list. If a product appears twice in the list, then its expression can be paired to itself and onto the other expression which is equal to it. For example, 5000 5000 appears as a product of two expressions which are 2 3 5 4 2^{3}5^{4} and 5 4 2 3 5^{4}2^{3} . Then 2 3 5 4 2^{3}5^{4} can be paired to 2 3 5 4 2^{3}5^{4} ( itself ) and 5 4 2 3 5^{4}2^{3} , i.e.

2 3 5 4 = 2 3 5 4 \boxed{2}^{\boxed{3}} \boxed{5}^{\boxed{4}}= \boxed{2}^{\boxed{3}} \boxed{5}^{\boxed{4}} or

2 3 5 4 = 5 4 2 3 \boxed{2}^{\boxed{3}} \boxed{5}^{\boxed{4}} = \boxed{5}^{\boxed{4}} \boxed{2}^{\boxed{3}}

, making two pairs. The number of appearances of a product indicates how many pairs there can be using its originating expressions.

Adding all the numbers of appearance of the products, we can get the number of equal pairs, which is 64 \boxed{64} .

Since I did this manually, I'm eager to see other solutions for this problem.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...