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

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

这篇文章探讨了一个数学难题:仅使用数字“ 2”和数学操作的四个实例表达任何自然数字。复杂性范围从儿童的简单算术到高级技术,例如阶乘,伽马功能,积分甚至复杂数字。目的是找到创造性和令人惊讶的解决方案。 在具有挑战性的同时,保罗·迪拉克(Paul Dirac)著名地提供了使用嵌套方形根和基本2对数的一般解决方案。尽管他的解决方案最初仅使用了三个“ 2”,但该帖子演示了如何通过策略性地插入“ 22/22”来修改它以使用四个,从本质上乘以一个。这允许表达任何数字,例如7个“ 2” S和标准数学操作。嵌套的正方形根部可能会变得非常广泛,但是该原理仍然很简单。这个难题似乎被一般解决方案破坏了,由于人们可以探索的各种方法,就像1920年代一样。格雷厄姆·法洛洛(Graham Farmelo)的著作《奇怪的人:保罗·迪拉克(Paul Dirac)的隐藏生活》(Paul Dirac),《量子天才》(Quantum Genius)中提到了这个难题。


原文
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