How many numbers can you make with four 4s?

  • Context: High School 
  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
  • Tags Tags
    Puzzle
Click For Summary

Discussion Overview

The discussion revolves around the mathematical puzzle of determining how many different numbers can be created using exactly four instances of the number 4, combined with various mathematical symbols and operations. Participants explore various approaches, including the use of integrals, logarithms, and trigonometric functions, while considering the implications of using additional mathematical concepts.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest using integrals, such as ##4444\int dx = 4444x + C##, as a way to represent numbers.
  • Others propose using logarithmic functions to create negative numbers or to represent zero, such as ##lg(4/4)=0##.
  • There are attempts to express irrational numbers like Pi using the four 4s, with various formulations being presented, including limits and inverse trigonometric functions.
  • Some participants express uncertainty about the rules of the puzzle, particularly regarding the use of variables and whether certain functions are allowed.
  • Discussions arise about the validity of using arbitrary constants and whether they trivialize the problem.
  • Several participants explore approximations and the use of factorials, with some suggesting that these methods may not align with the original intent of the puzzle.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the rules governing the use of functions and constants in the puzzle. There are competing views on what constitutes an acceptable solution, particularly regarding the use of variables and advanced mathematical functions.

Contextual Notes

Participants note that the problem may require explicit restrictions on the types of functions and operations allowed, as the current interpretations lead to a wide range of potential solutions, some of which may be considered trivial.

Messages
19,910
Reaction score
10,919
Say you've got four 4s -- 4, 4, 4, 4 -- and you're allowed to place any normal math symbols around them. How many different numbers can you make? It's best to think of a number and then try to make it.

The origination of the puzzle and some examples are in this video
 
  • Like
Likes   Reactions: Stavros Kiri, QuantumQuest, mfb and 2 others
Mathematics news on Phys.org
##4444\int dx =4444x +C## I think that about covers it. o:)
 
  • Like
Likes   Reactions: John Morrell, WWCY, Stavros Kiri and 5 others
Imagine what you could do with seven fours?

You could order Pizza Hut pizza! (From an old pizza commercial)

Nice video. I was waiting for Knuth arrow notation to come in but it never did.
 
  • Like
Likes   Reactions: ProfuselyQuarky
Student100 said:
##4444\int dx =4444x +C## I think that about covers it. o:)

I think that wraps things up!
 
Student100 said:
##4444\int dx =4444x +C## I think that about covers it. o:)

No, it doesn't. How do represent the number 10 for example?
 
I think the log based proof was quite good for numberphile.

Also it seems you are allowed to put the minus sign in front of the log function which would extend the combos into the negative numbers for reals
 
0 could also be done with something log based like

lg(4/4)=0
 
Greg Bernhardt said:
Can anyone figure out Pi?
I'm not quite certain if this is allowed by the problem such as using variable x, such as using standard symbols and four 4s as numbers...
But Pi can be gotten in certain ways

##lim_{x-> -1^{+}} =cos^{-1}(x)##

I'm not sure if cos^{-1} was defined exactluy at the value of (-1)

so that might be something like cos^{-4/4}(-4/4)= pi

But limit should still exist. I suck at trig.

that is in radians of course
 
  • #10
Student100 said:
##4444\int dx =4444x +C## I think that about covers it. o:)
This is indefinite integral, i.e. function ...

Greg Bernhardt said:
Can anyone figure out Pi?
For any real number x: x = C/4444 . Just pick a C = x•4444 ...

Or x = C/(4+4+4+4), or x = C/(4•4•4•4) ...

or even (different form) x = C(4444) [C=x/4444], etc., or use other operations or operators ...

Thus trivial, unless you put more constraints in the problem.
 
  • #11
martinbn said:
No, it doesn't. How do represent the number 10 for example?

It wasn't meant to be taken seriously.

As for ten, x = 0, C = 10. There you go.
 
  • #12
Student100 said:
It wasn't meant to be taken seriously.

As for ten, x = 0, C = 10. There you go.

Assigning variables is kind of cheating :D
 
Last edited:
  • Like
Likes   Reactions: late347 and Student100
  • #13
$$\pi = \sqrt{4}~ \arccos (\sqrt{4\cdot 4}-4) = \arccos \left(4-4-\frac 4 4 \right)$$
Similar expressions exist with the arcsine.
$$e=\exp\left(4-4+\frac 4 4 \right)$$
Well...
 
  • Like
Likes   Reactions: Student100, Stavros Kiri, jim mcnamara and 1 other person
  • #14
martinbn said:
No, it doesn't. How do represent the number 10 for example?
Let x=0, C=10
 
  • #15
Greg Bernhardt said:
Assigning variables is kind of cheating :D
It would appear so (and mine above could also be considered partially humour), but isn't solving an equation like inverting an operator or a function? Thus cosistent with:

Greg Bernhardt said:
It's best to think of a number and then try to make it.

And it is not limited by the video, or the original post [but since the OP sais now so we can now perhaps put it as a restriction ... (?)].

For example (aside/[or plus] the fact that functions can be considered as operarors, and operators are essentially functions):

If x is any real number (say π), and f any invertable real function (to avoid regular or perplexity form plain equations), and it happens that a number A which is directly/easily or else consructed by the 4 4s (say 4444) is related to x as A = f(x), then x = f-1(A)
[e.g. x (or e.g. π) = f-1(4444), and that's true for any [invertable] function f (providing it satisfies A = f(x) ) (e.g. a•x, sin, cos, exp, ln, log etc.) - just pick an appropriate one and be my guest! ...]

That's what I essentially did above, e.g.
Stavros Kiri said:
x = C(4444)
where f(x) = (1/C)•x, A = 4444, and mfb did essentially the same with cos and arccos
mfb said:
π=√4 arccos(√4⋅4−4)=arccos(4−4−44)​
since arccos = cos-1 ...

So are we joking or serious? I am a bit confused.

My opinion is that the problem on the video etc. is either trivial or one would have to put explicitly more restrictions, namely to the basic functions and operations only, with no arbitrary constants (other than the 4 4s and their obvious basic step derivatives).
[In other words functions e.g. like a•x, or a•cosx ... are not allowed, unless a=1 ... etc., otherwise one can do anything - it's trivial]

So the problem is not the variables but the arbitrary constants.
 
Last edited:
  • #16
I used common mathematical functions.
I didn't have to make up a function just for this exercise.
 
  • #17
mfb said:
I used common mathematical functions.
I didn't have to make up a function just for this exercise.
I know. Your's is ok

As long as the OP accepts inverse functions.

Mine has arbitrary constants, so may be not allowed, but the restrictions should be made explicit.
 
  • #18
Stavros Kiri said:
As long as the OP accepts inverse functions.
There is nothing inverse about it. The arccosine is a regular function (in more than one way). The cosine (restricted to [0,pi]) is the inverse function of the arccosine. And now?
 
  • Like
Likes   Reactions: PeroK and Stavros Kiri
  • #19
mfb said:
There is nothing inverse about it. The arccosine is a regular function (in more than one way). The cosine (restricted to [0,pi]) is the inverse function of the arccosine. And now?
But one has to define explicitly which functions are allowed to build from, and if inversing is allowed. (+see my edited posts above about arbitrariness of constants) But in any case I think your's is ok. I just wasn't sure if you were serious or not.
 
Last edited:
  • #20
mfb said:
$$\pi = \sqrt{4}~ \arccos (\sqrt{4\cdot 4}-4) = \arccos \left(4-4-\frac 4 4 \right)$$
Similar expressions exist with the arcsine.
$$e=\exp\left(4-4+\frac 4 4 \right)$$
Well...

Trying to come up with a simple way to get closer...

Using factorial's and decimals you can get approximately close:

$$\sum_{n=1}^{n=4} .4! = 3.54905... $$

What about...

$$ .04! \times 4 - .4 -.4 = 3.113752 $$
 
  • #21
Student100 said:
Trying to come up with a simple way to get closer...

Using factorial's and decimals you can get approximately close:

$$\sum_{n=1}^{n=4} .4! = 3.54905... $$

What about...

$$ .04! \times 4 - .4 -.4 = 3.113752 $$
A) You can just use the "Decimal Point Approximation Sequence", if you are familiar with it. You can get as close as you want [to any real (rational or irrational) number] ...

The formula is xn = [10nx]/10n, where [ ] notation is the "Integral Part" of a real number (e.g. [8.3] = 8, [11.9] = 11 , etc. ...), and xn is the n th order approximation (of x).

But any such approximations are not acceptable solutions here, I think, unless you use somehow the fact that limn→∞xn = x, and somehow involve the 4 4s ...

B) But I think there is also something wrong with your notation and/or understanding of sums and factorials ... (etc.)
[e.g. what is ".4!" ? ... . And the sum needs iteration index ...]
 
Last edited:
  • #22
This avoids .04, but introduces logs, which I didn't want to do...

$$\log(\log((4!)!^{4!} \times .4)) +.4 = 3.156352..$$

This is a better use of log maybe, base 4!

$$log_4(44) +.4 = 3.12927...$$

Okay, I'm done. :smile:
 
Last edited:
  • Like
Likes   Reactions: Stavros Kiri
  • #23
Stavros Kiri said:
B) But I think there is also something wrong with your notation and/or understanding of sums and factorials ... (etc.)
[e.g. what is ".4!" ? ... . And the sum needs iteration index ...]

Whats wrong with it? .4! is a gamma function. My sum reads... .4! + .4! + .4! + .4!. or .4!(4).
 
  • #24
Student100 said:
This avoids .04, but introduces logs, which I didn't want to do...

$$\log(\log((4!)!^{4!} \times .4)) +.4 = 3.156352..$$
This is a correct notation (no factorials on a decimal, only for integers/naturals - unless you use advanced calculus ...), I haven't checked the result though, but still approximation, not full answer ...

Interesting as inventions though, that you get so close ...
 
Last edited:
  • #25
Student100 said:
Whats wrong with it? .4! is a gamma function. My sum reads... .4! + .4! + .4! + .4!. or .4!(4).
Ok, I didn't know you knew advanced calculus, but still the sum could be fixed, as a notation. (e.g. ∑xi , and defining the limits of i on the sum ...) [unless you just want to say 4 times (.4!) , in this case, or give the explicit sum, as you mentioned ..]

Interesting as inventions though, that you get so close ...
 
Last edited:
  • #26
If you allow both factorials (as extended using the gamma function) and square roots it should be possible to get arbitrarily close to ##\pi## or any other positive real number by simply applying both operations a large number of times in an appropriately interleaved pattern such as:

##\sqrt{\sqrt{\sqrt{\frac{4+4+4}{4}!}!}}!##

Edit: while this approach will (I think) directly give you an approximation for any x > 1, one would need to apply a minor manipulation to get approximations for 0 < x < 1.
 
  • Like
Likes   Reactions: Student100
  • #27
But back on track with the exact solution (not approximation), for any real number x (e.g. π) [integer, rational, or irrational ...].

Another, perhaps better, and more direct way (than what I attempted earlier above etc. - e.g. see/cf. post #15) is to in fact begin with the actual question: x = f(A), where A is [the only constant allowed (?), besides the 4s themselves and their as stated (in the problem) derivative numbers...] a number like 4444, 4+4+4+4, and the like, as stated in the problem ..., and f an appropriate real function or operator, or combination or sequence of operations (etc.).

x = f(A) is also already the answer, as well as the method of construction, by choosing f appropriately, but the restrictions on the functions and operations (etc.) must be made explicit and clear, otherwise there are plenty of choices for f (and the problem becomes easy and trivial), if one allows arbitrariness of constants and functions [as well as inverting] (etc.). [See/cf. my other posts #15, #17, #19 (as well as #10) earlier above ...] (mainly for the restrictions)
 
Last edited:
  • #28
PAllen said:
Let x=0, C=10

This way you use four 4's, a 0 and a 10. The problem says only four 4's.
 
  • #29
martinbn said:
This way you use four 4's, a 0 and a 10. The problem says only four 4's.
But 0 and 10 can be expressed primatively in terms of 4 4s (see the video etc.), so I think it is allowed. But arbitrary constants C, A .. etc. aren't ... , if Greg has agreed on this (etc.) ...
 
Last edited:
  • #30
Stavros Kiri said:
But 0 and 10 can be expressed primatively in terms of 4 4s (see the video etc.), so I think it is allowed.
Both at the same time with a total of 4 4s? Yes they can be expressed like that, but then there is no point in introducing integrals and whatever because you have expressed 10 via 4s already.
 
  • Like
Likes   Reactions: Stavros Kiri

Similar threads

  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K