Quantcast
Channel: 円周率近似値の日に生まれて理系じゃないわけないだろ! - knifeのblog
Viewing all articles
Browse latest Browse all 5376

n番目の素数の近似式はどうやらこちらみたいです

$
0
0

昨日の記事に間違いがあり、記事をコピーして訂正しています。

n番目の素数は、どのくらいの大きさなのか。

n番目の素数をPnとすると、
Pn ≈ log2n!
となるようです。

n!の近似式、スターリングの近似式と、その式の精度を上げる方法を書きました。



n! ≈ 2nπ・(n/e)n・{m}

mで精度を上げることが出来ます。
とりあえず、m=1としておきます。

どちらの式をみても、
n番目の素数の近似式で、なんでlogの底が2なんだろうとか、
n!のの近似式で、なんでルート、つまり1/2乗が出てくるんだろうとか、
不思議な感じがします。

これら2式より、

Pn ≈ n・loge(n)-n+(1/2)・loge2nπ

もし、近似式の精度をあげる必要があるならば、

Pn ≈ n・loge(n)-n+(1/2)・loge2nπ+logem

となるだろうが、あまり意味をなさないかもしれません。

赤文字が昨日の記事とは違う部分です。

さて、正された式で実際にどれくらい精度があるのかを見てみると、

 

nPnf(n)f(n)/Pn
12-0.08-0.040531
230.650.217269
351.760.352816
473.160.451038
5114.770.433713
6136.570.505029
7178.510.500780
81910.590.557589
92312.790.556199
102915.100.520555
113117.490.564346
123719.980.540007
134122.550.549896
144325.190.585704
154727.890.593483
165330.670.578616
175933.500.567800
186136.390.596571
196739.340.587097
207142.330.596218
217345.380.621591
227948.470.613511
238351.600.621724
248954.780.615520
259758.000.597941
2610161.260.606520
2710364.550.626742
2810767.890.634456
2910971.250.653708
3011374.660.660668
3112778.090.614878
3213181.560.622560
3313785.050.620817
3413988.580.637255
3514992.130.618348
3615195.720.633890
3715799.330.632665
38163102.970.631693
39167106.630.638501
40173110.320.637680
41179114.030.637051
42181117.770.650662
43191121.530.636289
44193125.320.649302
45197129.120.655442
46199132.950.668094
47211136.800.648346
48223140.670.630817
49227144.560.636846
50229148.480.648367
51233152.410.654111
52239156.360.654223
53241160.330.665268
54251164.320.654656
55257168.330.654965
56263172.350.655328
57269176.390.655741
58271180.450.665885
59277184.530.666182
60281188.630.671270
61283192.740.681052
62293196.860.671894
63307201.010.654749
64311205.170.659701
65313209.340.668822
66317213.530.673599
67331217.740.657812
68337221.960.658621
69347226.190.651842
70349230.440.660280
71353234.700.664874
72359238.980.665675
73367243.270.662855
74373247.570.663731
75379251.890.664616
76383256.220.668982
77389260.560.669830
78397264.920.667306
79401269.290.671546
80409273.670.669125
81419278.070.663643
82421282.470.670958
83431286.890.665643
84433291.320.672801
85439295.770.673726
86443300.220.677697
87449304.690.678588
88457309.160.676506
89461313.650.680373
90463318.150.687153
91467322.660.690926
92479327.180.683057
93487331.720.681144
94491336.260.684848
95499340.810.682994
96503345.380.686637
97509349.950.687531
98521354.540.680496
99523359.130.686679
100541363.740.672345
101547368.350.673407
102557372.980.669621
103563377.610.670716
104569382.260.671806
105571386.910.677604
106577391.580.678640
107587396.250.675039
108593400.930.676105
109599405.620.677164
110601410.320.682732
111607415.030.683742
112613419.750.684747
113617424.480.687970
114619429.210.693398
115631433.960.687732
116641438.710.684418
117643443.470.689696
118647448.250.692805
119653453.020.693758
120659457.810.694707
121661462.610.699860
122673467.410.694519
123677472.220.697524
124683477.040.698454
125691481.870.697355
126701486.710.694306
127709491.550.693304
128719496.400.690410
129727501.260.689497
130733506.130.690494
131739511.010.691485
132743515.890.694334
133751520.780.693449
134757525.680.694423
135761530.580.697219
136769535.500.696354
137773540.420.699116
138787545.340.692940
139797550.280.690437
140809555.220.686304
141811560.170.690713
142821565.120.688337
143823570.090.692694
144827575.060.695353
145829580.030.699679
146839585.020.697279
147853590.010.691686
148857595.000.694288
149859600.010.698497
150863605.020.701066
151877610.040.695595
152881615.060.698139
153883620.090.702255
154887625.130.704767
155907630.170.694787
156911635.220.697279
157919640.280.696711
158929645.340.694661
159937650.410.694140
160941655.480.696583
161947660.570.697535
162953665.650.698482
163967670.750.693637
164971675.850.696032
165977680.950.696984
166983686.060.697930
167991691.180.697460
168997696.310.698402
1691009701.440.695180
1701013706.570.697505
1711019711.710.698444
1721021716.860.702117
1731031722.020.700306
1741033727.170.703944
1751039732.340.704850
1761049737.510.703059
1771051742.690.706647
1781061747.870.704870
1791063753.050.708424
1801069758.250.709306
1811087763.450.702342
1821091768.650.704537
1831093773.860.708014
1841097779.070.710186
1851103784.290.711056
1861109789.520.711921
1871117794.750.711506
1881123799.990.712367
1891129805.230.713224
1901151810.480.704150
1911153815.730.707484
1921163820.990.705922
1931171826.250.705593
1941181831.520.704079
1951187836.790.704962
1961193842.070.705841
1971201847.350.705538
1981213852.640.702918
1991217857.930.704957
2001223863.230.705831
30019871414.910.712081
40027412000.500.729843
50035712611.330.731260
100079195912.130.746575
20001738913206.520.759476
30002744921024.020.765930
40003781329181.260.771726
50004861137591.140.773305
60005935946202.360.778355
70007065754981.000.778140
80008179963902.990.781220
90009317972950.290.782905
1000010472982108.930.784013
20000224737178075.620.792373
30000350377279274.650.797069
40000479909383871.610.799884
50000611953490995.240.802341
60000746773600132.410.803634
70000882377710944.030.805715
800001020379823189.120.806748
900001159523936687.470.807821
10000012997091051299.220.808873
20000027501592241221.550.814943
30000042562333483468.550.818439
40000058000794759695.300.820626
50000073687876061189.170.822549
60000089604537382818.530.823934
700000105708418721192.580.825024
8000001219525710073901.320.826051
9000001383410311439142.810.826880
10000001548586312815518.380.827562
20000003245284327017323.650.832510
30000004997968741742376.920.835187
40000006786796756807228.200.837026
50000008602812172124750.980.838386
600000010439530187643628.890.839536
7000000122949823103329953.750.840424
8000000141650939119159625.660.841220
9000000160481183135114625.140.841934
10000000179424673151180965.490.842587
20000000373587883316224865.950.846454
30000000573259391486501247.720.848658
40000000776531401660175610.150.850160
50000000982451653836376687.950.851316
6000000011904947591014591317.090.852243
7000000014003053371194480415.950.853014
8000000016116237731375802985.430.853675
9000000018242614091558378830.620.854252
10000000020380747431742068084.520.854762
20000000042222347413622765595.380.858021
30000000064613351095555787920.460.859851
40000000087360280577522790052.850.861122
500000000110372717579515059339.130.862084
6000000001335955540311527464138.930.862863
7000000001569934210713556613636.210.863515
8000000001805423695715600097839.670.864069
9000000002042221357917656114800.390.864554
10000000002280176348919723265848.230.864989
20000000004705583345940832826046.640.867753
30000000007185644575162465634388.670.869311
40000000009701168721784438240804.240.870392
5000000000122430513841106663518758.990.871217
6000000000148059109201129090151849.220.871883
7000000000173862636221151684231914.270.872437
8000000000199815106433174421659041.330.872915
9000000000225898512559197284413740.920.873332
10000000000252097800623220258509311.840.873703
11000000000278401257857243332772219.670.874036
12000000000304799583149266498069853.340.874339
13000000000331284360247289746797539.870.874617
14000000000357850012873313072524344.460.874871
15000000000384489816343336469740583.360.875107


自分が欲しかったのはこういうデータでした。

スキューズ数のこともあるので、必ず近似値が下回っているのかは解りません。

 

ではでは


Viewing all articles
Browse latest Browse all 5376

Trending Articles