mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2009-10-28, 15:14   #23
Raman
Noodles
 
Raman's Avatar
 
"Mr. Tuch"
Dec 2007
Chennai, India

4E916 Posts
Default

There is a power of 7, very early that is surprisingly very close to a power of 10.
7510 ~ 10431
This creates out a big number early in the continued fraction expansion for log 7.
How efficient is the approximation for log 7 as 431/510?

How good is the approximation for log 3 as 8519/17855?
Also, have a look up at the continued fraction expansions of the other logarithms too.
All these logarithms are to the base 10 only.
log 2, log 3, log 6, log 7, log 11...
log 5 = 1 - log 2: So that it creates up the same fractions within the continued fraction expansion essentially.
Raman is offline   Reply With Quote
Old 2009-11-22, 23:58   #24
JonBarleycorn
 
JonBarleycorn's Avatar
 
Oct 2009

5 Posts
Default Efficient Integer Representations of Irrationals

What are the most efficient integer representations of the irrational numbers π and e?

An efficient integer representation of an irrational number is defined as two integers p/q which, when expressed as a decimal, gives at least as many significant digits as the sum of the digits in p and in q. Thus, an efficient representation will be both mnemonic and accurate, requiring no fewer digits to write than the accuracy gained.

For example, 22/7 is an efficient integer representation of π (3.141592653589793238 …) since the sum of the integer digits (2 + 1) is 3 and 22/7 is accurate to just a bit better than 1 part in 791. Note that 22/7 – 1/791 = 355/113.

This representation, 355/113, is both efficient and memorable since it takes just 6 digits to get 7 digit accuracy (1 part in 3,748,629).

There was a nice discussion by ewmayer and CRGreathouse of a metric that gives a slight edge in efficiency to 22/7. But, 355/113 is reasonably memorable, and, it is the only representation to give a full digit of additional accuracy. Thus, this simple minded approach gives 355/113 the efficiency prize.

Finding a mnemonic representation for e (2.71828182845904523 …) is probably unnecessary because of the repeating ‘1828’ group. However, an efficient 3 digit representation is 19/7 which is good to about 1 part in 250. A 5 digit representation, 193/71, is good to 1 part in 35,675. An eight digit representation, 2721/1001, while accurate to 1 part in 9,076,277, is not efficient (8 digits needed for 7 digit accuracy). However, it is fairly easy to remember so it is being mentioned.

Others have pointed out that 49171/18089 = 2.718281828735. This is efficient and accurate to 1 part in 3,614,669,163. But, e itself, is just as easy to remember to 10 digits because of the repeating 1828 group so I cannot award 49171/18089 the prize.

Given that short term memory is limited to about 7 +/- 2 chunks of information, further exploration with larger fractions is probably fruitless.

JB
JonBarleycorn is offline   Reply With Quote
Old 2009-11-23, 00:18   #25
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

Thanks for the concise essay, JB. I remember reading somewhere of an Arabic mathematician of the middle ages questioning why 22/7 was being used for pi when it was "common knowledge" that 355/113 was a much better approximation!
philmoore is offline   Reply With Quote
Old 2009-11-23, 21:32   #26
biwema
 
biwema's Avatar
 
Mar 2004

3·127 Posts
Wink

Quote:
Originally Posted by mart_r View Post
A good one is 355/113.
There's this number 20776 at position 432 in the continued fraction expansion of pi, if I would calculate the fraction of the 431 previous terms I would also get an efficient integer representation, or whenever such a large number in the continued fraction appears.

The best known approximation is log(640320³+744)/sqrt(163) - it gives 31 significant digits!

Edit: but I don't know of any really good approximations for e.

There are efficient ways to write e.

(1 + 1/999!)^(999!)

gives more than 2500 digits of e.

Nevertheless i think it is not a valid solution because it is a general defintion of e:
(1+1/n)^n approximates e when n goes to infinity.

On the other hand the 31 digits approximation of pi is neat but neither a fraction as mentioined in this thread.

Last fiddled with by biwema on 2009-11-23 at 21:35 Reason: typos
biwema is offline   Reply With Quote
Old 2009-11-24, 07:25   #27
JonBarleycorn
 
JonBarleycorn's Avatar
 
Oct 2009

510 Posts
Default

Forgive me if my calculator is not working right, but every time I tried log(640320 cubed + 744) / sqrt(163) I got 12.767145.. even when I used all the precision that Windows has to offer.

If I got it wrong then I owe mart_r an apology.

I'm sorry I wasn't more clear that I was looking for 2 integers p, q such that p/q was memorable and a good representation of pi and e. I hope that I was more clear in my statement of the problem the second time around.

That said, some of the excursions were really first class, and, I was really impressed by the caliber of discourse that my little puzzle elicited! Thanks to all who responded.

JB
JonBarleycorn is offline   Reply With Quote
Old 2009-11-24, 07:42   #28
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

141208 Posts
Default

Quote:
Originally Posted by JonBarleycorn View Post
Forgive me if my calculator is not working right, but every time I tried log(640320 cubed + 744) / sqrt(163) I got 12.767145.. even when I used all the precision that Windows has to offer.

If I got it wrong then I owe mart_r an apology.

I'm sorry I wasn't more clear that I was looking for 2 integers p, q such that p/q was memorable and a good representation of pi and e. I hope that I was more clear in my statement of the problem the second time around.

That said, some of the excursions were really first class, and, I was really impressed by the caliber of discourse that my little puzzle elicited! Thanks to all who responded.

JB
For the "log" press the "ln" button.

But your answer above, 12.767145.., is simply sqrt(163). Perhaps your forgot to press the "=" button?
retina is online now   Reply With Quote
Old 2009-11-24, 17:07   #29
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

194A16 Posts
Default The Well-tempered Klavier

2^(7/12) = ~3/2

So 7 "equal" semitones make nearly a "perfect fifth"
and 5 nearly a "perfect fourth"

Johann Sebastian
davieddy is offline   Reply With Quote
Old 2012-03-24, 18:06   #30
Raman
Noodles
 
Raman's Avatar
 
"Mr. Tuch"
Dec 2007
Chennai, India

3·419 Posts
Default

One of the ways to compute the efficiency of an approximation for irrationals
by using a given fraction
x = p/q
is to compute the error ratio for
(10x)q against (10p) and then multiply it by using p.

Taking the value for x = log 2 ~ 3/10
for an example, the error ratio for
210 against 103 = 2.4% Multiplying it with the exponent 3, yields the ratio 7.2
for 6/20, 220 against 106 = 4.8576% Multiplying it with the exponent 6 yields the ratio 29.1456
So, this ratio increases when the numerator, denominator together are being multiplied by using the multiplier. Lowest terms always give the best approximation factor ratios.

For log 2, the ratio for
28/93 = 27.014312
59/196 = 25.584038
146/485 = 15.190773
643/2136 = 10.474093
4004/13301 = 25.512806
30103/100000 = 3003.9994

For log 3, the ratio for
21/44 = 31.981105
73/153 = 7.52696
1074/2251 = 13.755307
8519/17855 = 5.923131

The fun is that
73/153, when both the numerator, denominator are being multiplied by using 2232, yields 162936/341496
but that the value for 162935/341496 is always being a better closer approximation to the value for log 3

For log 6, undoubtedly the best approximation =
463/595 with the ratio = 0.64197
against the fraction 7/9, with such ratio, factor = 5.43872

For log 7, undoubtedly the best approximation =
431/510 with the ratio = 0.040418

This is being the effect for the big term very early within the continued fraction expansion for log 7 =
1/1+ 1/5+ 1/2+ 1/5+ 1/6+ 1/1+ 1/4813+ ...

For log 6,
0 + 1/1+ 1/3+ 1/1+ 1/1+ 1/32+ 1/1+ 1/1+ 1/278+ ...

Comparing against the efficient approximations values for PI
22/7 = 14.1224069
333/106 = 683.29723
14
355/113 = 2.46396731

Last fiddled with by Raman on 2012-03-24 at 18:09
Raman is offline   Reply With Quote
Old 2012-03-24, 18:59   #31
Raman
Noodles
 
Raman's Avatar
 
"Mr. Tuch"
Dec 2007
Chennai, India

3·419 Posts
Question Question

Taking the continued fraction expansion for (log b)
gives out the powers of b (within the denominator), digits (within the numerator), that are being increasingly closer to the powers of 10.

Question. Is there any way to give out the sequence for the powers of N that are being increasingly closer to the values for that following form, k.10n?

For this example, consider with the following terms that are being

2171 ≈ 3.1051
21337 ≈ 3.10402
230075 ≈ 3.109053

246 ≈ 7.1013
2335 ≈ 7.10100
22471 ≈ 7.10743
215772 ≈ 7.104747
2157326 ≈ 7.1047359

253 ≈ 9.1015
2538 ≈ 9.10161
22674 ≈ 9.10804
24810 ≈ 9.101447
260150 ≈ 9.1018106

Here are a few more good approximations
7.22239 ≈ 71.10673
3-14263 ≈ 66.10-6807
321973 ≈ 61.1010482

36565 ≈ 2.103132 ________ 310475 ≈ 7.104997 _______ 7.317 ≈ 9.108 _______ 394 ≈ 7.1044
313130 ≈ 4.106264 _______ 34091 ≈ 8.101951 ________ 335 ≈ 5.1016 ________ 3138 ≈ 7.1065
311290 ≈ 5.105386 _______ 34725 ≈ 25.102253 _______ 348 ≈ 8.1022 ________ 7.3109 ≈ 71.1051
36566 ≈ 6.103132 ________ 33592 ≈ 66.101712 _______ 383 ≈ 4.1039_________ 7.2103 ≈ 71.1030
312726 ≈ 7.106071 _______ 321447 ≈ 66.1010231 _____ 3188 ≈ 5.1089
31840 ≈ 8.10877 _________ 34118 ≈ 61.101963 _______ 3223 ≈ 25.10105

Last fiddled with by Raman on 2012-03-24 at 19:43
Raman is offline   Reply With Quote
Old 2012-03-30, 07:14   #32
Raman
Noodles
 
Raman's Avatar
 
"Mr. Tuch"
Dec 2007
Chennai, India

3×419 Posts
Default

Quote:
Originally Posted by Raman View Post
For this example, consider with the following terms that are being

27.2301 ≈ 11.1091________267.218 ≈ 7.107
1249.256 ≈ 9.1019________266999.225 ≈ 8959.109
9.553 ≈ 1038_____________439.313 ≈ 7.108
2317 ≈ 267.1093__________7.317 ≈ 904.106
2511 ≈ 67.10152__________7.36 ≈ 51.102
67.227 ≈ 9.109___________7.317 ≈ 9.108
Taking the continued fraction expansion for (log b)
gives out the powers of b (within the denominator), digits (within the numerator), that are being increasingly closer to the powers of 10.

Question. Is there any way to give out the sequence for the powers of N that are being increasingly closer to the values for that following form, k.10n?

Last fiddled with by Raman on 2012-03-30 at 07:19
Raman is offline   Reply With Quote
Old 2012-03-30, 13:04   #33
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,181 Posts
Default

Yes, there is a standard estimate for the error term between a continued fraction and the decimal number it is supposed to represent, based only on the size of p and q (it's been ~15 years, I don't remember it). You can also prove that to get a better approximation of the error, you must use numbers larger than p and q.
jasonp is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Efficient Test paulunderwood Computer Science & Computational Number Theory 5 2017-06-09 14:02
k*b^n+/-c where b is an integer greater than 2 and c is an integer from 1 to b-1 jasong Miscellaneous Math 5 2016-04-24 03:40
Totally Awesome Graphical Representations of Data Uncwilly Lounge 5 2015-10-05 01:13
Most efficient way to LL hj47 Software 11 2009-01-29 00:45
Fischbach Representations. Mr. P-1 Puzzles 5 2007-10-10 16:16

All times are UTC. The time now is 14:05.


Mon Aug 2 14:05:30 UTC 2021 up 10 days, 8:34, 0 users, load averages: 3.38, 3.45, 2.93

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.