Making any integer with four 2s (2025)
172 points - yesterday at 10:38 PM
SourceComments
S(S(S(S(S(S(S(0)))))))) = 7to make the problem more interesting, the list of operations can be extended to include exponentiation and concatenation.
for example, using the four basic operations for N=4, and K in [2,9], we get:
7 cannot be computed in 4 2s; 11 cannot be computed in 4 3s; 10 cannot be computed in 4 4s; 8 cannot be computed in 4 5s; 9 cannot be computed in 4 6s; 4 cannot be computed in 4 7s; 5 cannot be computed in 4 8s; 4 cannot be computed in 4 9s;
7 = ⌈ 2.2² + 2 ⌉
And JFYI since December is near: https://rant.gulbrandsen.priv.no/hack/advent-calendar-for-ne...
Encode 0 as 2 + 2 - 2 - 2 then apply S a times to that 0.
Only depends upon natural numbers & Peano stuff, no need for construction of rationals, irrationals, logarithms, etc.