Four fours is a mathematical puzzle, the goal of which is to find the simplest mathematical expression for every whole number from 0 to some maximum, using only common mathematical symbols and the digit four. No other digit is allowed. Most versions of the puzzle require that each expression have exactly four fours, but some variations require that each expression have some minimum number of fours. The puzzle requires skill and mathematical reasoning. The first printed occurrence of the specific problem of four fours is in Knowledge: An Illustrated Magazine of Science in 1881. A similar problem involving arranging four identical digits to equal a certain amount was given in Thomas Dilworth's popular 1734 textbook The Schoolmaster's Assistant, Being a Compendium of Arithmetic Both Practical and Theoretical. W. W. Rouse Ball described it in the 6th edition (1914) of his Mathematical Recreations and Essays. In this book it is described as a "traditional recreation".
Rules There are many variations of four fours; their primary difference is which mathematical symbols are allowed. Essentially all variations at least allow addition ("+"), subtraction ("−"), multiplication ("×"), division ("÷"), and parentheses, as well as concatenation (e.g., "44" is allowed). Most also allow the factorial ("!"), exponentiation (e.g. "444"), the decimal point (".") and the square root ("√") operation. Other operations allowed by some variations include the reciprocal function ("1/x"), subfactorial ("!" before the number: !4 equals 9), overline (an infinitely repeated digit), an arbitrary root, the square function ("sqr"), the cube function ("cube"), the cube root, the gamma function (Γ(), where Γ(x) = (x − 1)!), and percent ("%"). Therefore:
4%=0.04 sqr(4)=16 cube(4)=64 4=2 4!=24 Γ(4)=6 !4=9 4′=14=0.25 .4=0.4=410=25 4.4=425 .4‾=.4444...=49 etc. A common use of the overline in this problem is for this value:
.4‾=.4444...=49 Typically, the successor function is not allowed since any integer above 4 is trivially reachable with it. Similarly, "log" operators are usually not allowed as they allow a general method to produce any non-negative integer. This works by noticing three things:
It is possible to take square roots repeatedly without using any additional 4s A square root can also be written as the exponent (^(1/2)) Exponents have logarithms as their inverse. ⋯4⏟n=4(1/2)n Writing repeated square root in this form we can isolate n, which is the number of square roots:
4(1/2)n We can isolate both exponents by using the base 4 logarithm:
log44(1/2)n This logarithm can be thought of as the answer to the question: "4 to what power gives me 4 to the half power to the n power?"
4x=4(1/2)n so we are now left with:
(1/2)n and now we can take a logarithm to isolate the exponent, n:
n=log(1/2)(1/2)n so, putting it all together:
n=log(1/2)log44(1/2)n Now, we can rewrite the base (1/2) with only 4s and the exponent (1/2) back to a square root:
n=log4/4log4⋯4⏟n We have used four fours and now the number of square roots we add equals whatever non-negative integer we wanted. Paul Bourke credits Ben Rudiak-Gould with a different description of how four fours can be solved using natural logarithms (ln(n)) to represent any positive integer n as:
n=−4ln[(ln⋯4⏟n)/ln4]ln4 Additional variants (usually no longer called "four fours") replace the set of digits ("4, 4, 4, 4") with some other set of digits, say of the birthyear of someone. For example, a variant using "1975" would require each expression to use one 1, one 9, one 7, and one 5.
Solutions Here is a set of four fours solutions for the numbers 0 through 32, using typical rules. Some alternate solutions are listed here, although there are actually many more correct solutions. The entries in blue are those that use four integers 4 (rather than four digits 4) and the basic arithmetic operations. Numbers without blue entries have no solution under these constraints. Additionally, solutions that repeat operators are marked in italics.
0 = 4 ÷ 4 × 4 − 4 = 44 − 44 1 = 4 ÷ 4 + 4 − 4 = 44 ÷ 44 2 = 4 −(4 + 4)÷ 4 = (44 + 4) ÷ 4! 3 = (4 × 4 − 4)÷ 4 = (4 + 4 + 4) ÷ 4 4 = 4 + 4 ×(4 − 4) = −44 + 4! + 4! 5 = (4 × 4 + 4)÷ 4 = (44 − 4!)÷ 4 6 = (4 + 4)÷ 4 + 4 = 4.4+ 4 ×.4 7 = 4 + 4 − 4 ÷ 4 = 44 ÷ 4 − 4 8 = 4 ÷ 4 × 4 + 4 = 4.4−.4 + 4 9 = 4 ÷ 4 + 4 + 4 = 44 ÷ 4 −√4 10 = (4 + 4 + 4)−√4 = (44 − 4) ÷ 4 11 = (4!×√4 − 4)÷ 4 = √4 ×(4! −√4) ÷ 4 12 = 4 ×(4 − 4 ÷ 4) = (44 + 4) ÷ 4 13 = (4!×√4 + 4)÷ 4 = (4 −.4) ÷.4 + 4 14 = 4 × 4 − 4 ÷√4 = 4 ×(√4 +√4) −√4 15 = 4 × 4 − 4 ÷ 4 = 44 ÷ 4 + 4 16 = 4 × 4 + 4 − 4 = (44 − 4) ×.4 17 = 4 × 4 + 4 ÷ 4 = (44 + 4!)÷ 4 18 = 4 × 4 + 4 −√4 = (44 ÷√4) − 4 19 = 4!− 4 − 4 ÷ 4 = (4 + 4 −.4) ÷.4 20 = 4 ×(4 ÷ 4 + 4) = (44 − 4) ÷√4 21 = 4!− 4 + 4 ÷ 4 = (44 −√4) ÷√4 22 = 4!÷ 4 + 4 × 4 = 44 ÷(4 −√4) 23 = 4!+ 4 ÷ 4 −√4 = (44 +√4) ÷√4 24 = 4 × 4 + 4 + 4 = (44 + 4) ÷√4 25 = 4!− 4 ÷ 4 +√4 = (4 + 4 +√4) ÷.4 26 = 4!+√4 + 4 − 4 27 = 4!+√4 +(4 ÷ 4) 28 = (4 + 4)× 4 − 4 = 4! + 4 + 4 − 4 29 = 4!+ 4 +(4 ÷ 4) 30 = 4!+ 4 + 4 −√4 31 = 4!+(4!+ 4)÷ 4 32 = 4 × 4 + 4 × 4 100 = 4 × 4!+√4 +√4 1000 = 4 × 4 ^ 4 − 4! 1000000 = (4 ÷.4)^(4 +√4)
… excerpt ends here. Continue reading the full article.