用四个2s制作任何整数
Making any integer with four 2s

原始链接: https://eli.thegreenplace.net/2025/making-any-integer-with-four-2s/

本摘录讨论了数学难题:使用数字2和数学操作的四个实例表达任何自然数字。困难随数学知识而异。基本操作可用于简单数字,而指数和阶乘扩大了可能性。诸如将“ 22”视为两个2s的有效用途之类的技巧进一步扩大了范围。 难题的挑战启发了创意解决方案,包括积分和复杂数字。但是,保罗·迪拉克(Paul Dirac)使用嵌套的方形根和对数找到了一般的解决方案,从本质上讲,解决了所有数字的难题。他的方法依赖于重复的平方根和对数底座2,用三个2s表达。 为了满足四2级规则,可以通过用“ 2/2”代替一个“ 2”来调整Dirac的解决方案。这仅使用基本操作和四个2S为任何数字创建一个有效的表达式,尽管具有许多嵌套的方形根。作者从Graham Farmelo的Paul Dirac传记中学到了这个故事。


原文
Tags Math

There's a cute math puzzle that can be interesting to folks on very different levels:

Given exactly four instances of the digit 2 and some target natural number, use any mathematical operations to generate the target number with these 2s, using no other digits.

Some examples can be done by elementary school kids:

In middle school, kids learn about exponents, factorials, etc. which expands the range considerably:

Then come the tricks; for example, the number 22 (twenty two) can be seen as a valid use of two 2s, and so on; so we can have:

Getting to 7 is notoriously difficult, but if you allow even more mathematical tools like the Gamma function, it becomes easy:

The more math skill people have, the more numbers they can make. See this thread for some fun concoctions using integrals, repeating fractions and combinatorial operators. One of my favorite examples involves complex numbers:

So the fun doesn't end even after one graduates from university! In fact, this seems to have been a favorite pastime for mathematicians in the 1920s. Until Paul Dirac ruined it for everyone by finding a general solution for every number.

It's all about nested square roots:

If the square root is applied n times:

All that's left now is some base-2 logarithms:

And another:

This leads to the general formula:

There's just one small wrinkle: it uses three instances of the digit 2, not four. This is easy to amend, however; since , we can replace any single digit with that and get exactly four:

One may claim this is cheating, but it seems to be in line with the rules of the puzzle! Note that the entity n doesn't actually appear anywhere - it's just a helper to count the number of repeated square roots. For example, another way to express 7 is:

There are exactly four 2s, and this uses only reasonable, elemental math operations to do the calculation. It's clear that any number can be expressed this way; the only challenge is properly drawing all those square roots!

I've read about this story in Graham Farmelo's book The Strangest Man: The Hidden Life of Paul Dirac, Quantum Genius. I'm enjoying this book so far.

联系我们 contact @ memedata.com