![]() |
Four Fours
Four Fours
One famous puzzle is to make a certain positive integer out of four fours (in base 10, with standard mathematical operations, but with no other numbers besides the four fours). For example, you can make 1 with 44/44. The rules seem to vary. Some say that you can also use three or fewer fours; others say that you can use ".4~" for a repeated "0.44444..." Some say you can use sines, logs, gamma function, etc. Let's say that you must use four fours, not fewer. It turns out that you can make any number from 1 to 100 (and others) out of four fours and these operations addition subtraction multiplication (*) division square root (sqrt()) fourth powers (^4) factorial (!) .4~ for a repeated 0.44444... We won't allow logarithms (or percent or int()). You might want to work on that. A few are very difficult. It is preferable to use the fewest number of operators possible. Try it yourself, as it is fun. Here are my solutions for the first few numbers. Some of these are not optimal (fewest operators): 44/44 4/4+4/4 (4+4+4)/4 4*(4-4)+4 4!/4-4/4 (not optimal) (4+4)/4+4 44/4-4 4+4+4-4 4+4+4/4 4+4+4-sqrt(4) (not optimal) 4!/sqrt(4)-4/4 (not optimal) 4!-4-4-4 (not optimal) 4!/sqrt(4)+4/4 (not optimal) 4+4+4+sqrt(4) 4*4-4/4 (not optimal) 4+4+4+4 4*4+4/4 4*4+4/sqrt(4) ( 4!-4-4/4 4!+4-4-4 |
Surprisingly, if logarithms are allowed, it turns out that any positive integer can be expressed with three fours:
n=-ln[ln[sqrt(sqrt(sqrt...(sqr(4))...))]/ln(4)]/ln(4) where the number of square roots is twice n. I haven't checked this out to see if it is true. |
it is true
شكرا لك |
شكرا هابي على هذا الموضوع الهادف
|
الساعة الآن 06:08 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. منتديات المُنى والأرب
جميع المشاركات المكتوبة تعبّر عن وجهة نظر كاتبها ... ولا تعبّر عن وجهة نظر إدارة المنتدى |