The Four Fours Problem

Solutions from 0 to 116, not including 113 which is probably not findable by the rules given.

This puzzle is most commonly formulated as follows:

"Given no more than 4 instances of the digit "4", represent all integers using a finite number of mathematical symbols and operators in common use."

Notes on the Rules:

Subset of acceptable symbols and operators:
+,- addition subtraction
*,/ multiplication, division
sqrt,^ square root, power
! factorial, eg: n! = n * (n-1) * (n-2) * ... * 2 * 1
. decimal point, eg: .4
′ repeating decimal, eg: .4′ = .444444444...

With other rules, other answers are possible. Some variations allow you to use any number of 4s up to 4. Others allow more obscure mathematical operators (gamma functions, for example). It can be easily demonstrated that, even by the conservative ruleset that I describe above, some numbers can be generated an infinite number of different ways. The presence of unary operators means that there are an infinite number of different patterns to search for the answers to these problems, which makes computer solutions an interesting problem, which will never have a perfect solution.

I found the following answers the old-fashioned way, by hand search and logic. Though some people put a premium on simple formulations, I have in several places listed answers that were for some reason amusing to me, or surprisingly complex. My answer to 73 is a good example of amusing complexity, as is 27. Since all the answers are integers, I started the search by generating a list of integers that could be build with one or two 4s. These became useful building blocks in finding the larger numbers. Since it is possible to create an infinite number of integers from even a single four (for example, 4! = 24. 4!! = 620448401733239439360000, and so forth). I listed only the smaller integers in my reference table, knowing that these were most likely to be useful.

For your convenience, I present a table of useful 1- and 2-4 combinations.

0 [Graphics:Images/4s_gr_1.gif] 59 [Graphics:Images/4s_gr_119.gif]
1 [Graphics:Images/4s_gr_3.gif] 60 [Graphics:Images/4s_gr_121.gif]
2 [Graphics:Images/4s_gr_5.gif] 61 [Graphics:Images/4s_gr_123.gif]
3 [Graphics:Images/4s_gr_7.gif] 62 [Graphics:Images/4s_gr_125.gif]
4 [Graphics:Images/4s_gr_9.gif] 63 [Graphics:Images/4s_gr_127.gif]
5 [Graphics:Images/4s_gr_11.gif] 64 [Graphics:Images/4s_gr_129.gif]
6 [Graphics:Images/4s_gr_13.gif] 65 [Graphics:Images/4s_gr_131.gif]
7 [Graphics:Images/4s_gr_15.gif] 66 [Graphics:Images/4s_gr_133.gif]
8 [Graphics:Images/4s_gr_17.gif] 67 [Graphics:Images/4s_gr_135.gif]
9 [Graphics:Images/4s_gr_19.gif] 68 [Graphics:Images/4s_gr_137.gif]
10 [Graphics:Images/4s_gr_21.gif] 69 [Graphics:Images/4s_gr_139.gif]
11 [Graphics:Images/4s_gr_23.gif] 70 [Graphics:Images/4s_gr_141.gif]
12 [Graphics:Images/4s_gr_25.gif] 71 [Graphics:Images/4s_gr_143.gif]
13 [Graphics:Images/4s_gr_27.gif] 72 [Graphics:Images/4s_gr_145.gif]
14 [Graphics:Images/4s_gr_29.gif] 73 [Graphics:Images/4s_gr_147.gif]
15 [Graphics:Images/4s_gr_31.gif] 74 [Graphics:Images/4s_gr_149.gif]
16 [Graphics:Images/4s_gr_33.gif] 75 [Graphics:Images/4s_gr_151.gif]
17 [Graphics:Images/4s_gr_35.gif] 76 [Graphics:Images/4s_gr_153.gif]
18 [Graphics:Images/4s_gr_37.gif] 77 [Graphics:Images/4s_gr_155.gif]
19 [Graphics:Images/4s_gr_39.gif] 78 [Graphics:Images/4s_gr_157.gif]
20 [Graphics:Images/4s_gr_41.gif] 79 [Graphics:Images/4s_gr_159.gif]
21 [Graphics:Images/4s_gr_43.gif] 80 [Graphics:Images/4s_gr_161.gif]
22 [Graphics:Images/4s_gr_45.gif] 81 [Graphics:Images/4s_gr_163.gif]
23 [Graphics:Images/4s_gr_47.gif] 82 [Graphics:Images/4s_gr_165.gif]
24 [Graphics:Images/4s_gr_49.gif] 83 [Graphics:Images/4s_gr_167.gif]
25 [Graphics:Images/4s_gr_51.gif] 84 [Graphics:Images/4s_gr_169.gif]
26 [Graphics:Images/4s_gr_53.gif] 85 [Graphics:Images/4s_gr_171.gif]
27 [Graphics:Images/4s_gr_55.gif] 86 [Graphics:Images/4s_gr_173.gif]
28 [Graphics:Images/4s_gr_57.gif] 87 [Graphics:Images/4s_gr_175.gif]
29 [Graphics:Images/4s_gr_59.gif] 88 [Graphics:Images/4s_gr_177.gif]
30 [Graphics:Images/4s_gr_61.gif] 89 [Graphics:Images/4s_gr_179.gif]
31 [Graphics:Images/4s_gr_63.gif] 90 [Graphics:Images/4s_gr_181.gif]
32 [Graphics:Images/4s_gr_65.gif] 91 [Graphics:Images/4s_gr_183.gif]
33 [Graphics:Images/4s_gr_67.gif] 92 [Graphics:Images/4s_gr_185.gif]
34 [Graphics:Images/4s_gr_69.gif] 93 [Graphics:Images/4s_gr_187.gif]
35 [Graphics:Images/4s_gr_71.gif] 94 [Graphics:Images/4s_gr_189.gif]
36 [Graphics:Images/4s_gr_73.gif] 95 [Graphics:Images/4s_gr_191.gif]
37 [Graphics:Images/4s_gr_75.gif] 96 [Graphics:Images/4s b_gr_193.gif]
38 [Graphics:Images/4s_gr_77.gif] 97 [Graphics:Images/4s b_gr_195.gif]
39 [Graphics:Images/4s_gr_79.gif] 98 [Graphics:Images/4s b_gr_197.gif]
40 [Graphics:Images/4s_gr_81.gif] 99 [Graphics:Images/4s b_gr_199.gif]
41 [Graphics:Images/4s_gr_83.gif] 100 [Graphics:Images/4s b_gr_201.gif]
42 [Graphics:Images/4s_gr_85.gif] 101 [Graphics:Images/4s b_gr_203.gif]
43 [Graphics:Images/4s_gr_87.gif] 102 [Graphics:Images/4s b_gr_205.gif]
44 [Graphics:Images/4s_gr_89.gif] 103 [Graphics:Images/4s b_gr_207.gif]
45 [Graphics:Images/4s_gr_91.gif] 104 [Graphics:Images/4s b_gr_209.gif]
46 [Graphics:Images/4s_gr_93.gif] 105 [Graphics:Images/4s b_gr_211.gif]
47 [Graphics:Images/4s_gr_95.gif] 106 [Graphics:Images/4s b_gr_213.gif]
48 [Graphics:Images/4s_gr_97.gif] 107 [Graphics:Images/4s b_gr_215.gif]
49 [Graphics:Images/4s_gr_99.gif] 108 [Graphics:Images/4s b_gr_217.gif]
50 [Graphics:Images/4s_gr_101.gif] 109 [Graphics:Images/4s b_gr_219.gif]
51 [Graphics:Images/4s_gr_103.gif] 110 [Graphics:Images/4s b_gr_221.gif]
52 [Graphics:Images/4s_gr_105.gif] 111 [Graphics:Images/4s b_gr_223.gif]
53 [Graphics:Images/4s_gr_107.gif] 112 [Graphics:Images/4s b_gr_225.gif]
54 [Graphics:Images/4s_gr_109.gif] 113
55 [Graphics:Images/4s_gr_111.gif] 114 [Graphics:Images/4s b_gr_228.gif]
56 [Graphics:Images/4s_gr_113.gif] 115 [Graphics:Images/4s b_gr_230.gif]
57 [Graphics:Images/4s_gr_115.gif] 116 [Graphics:Images/4s b_gr_232.gif]
58 [Graphics:Images/4s_gr_117.gif]

A note to math teachers: I have gotten abusive e-mails from math teachers who feel that this page is essentially a cheat sheet, giving away the answers to a puzzle they would like to give as homework. Frankly, this is a widely known puzzle that I first heard in the Reagan administration and it wasn't new then. Not only are solutions widely known, but software that allows the automated generation of solutions has also been released into the public domain (not that I have used any such software above). What I'm trying to say is it’s time to find new assignments. Assigning the four fours problem in a math class is at this point like asking student to predict the end of the vietnam war in current events class — it might have been a great question in 1970 but it doesn’t test what you want it to anymore.

other math

home