主題
Search

十進位制展開


一個數的十進位制展開是它在 進位制(即,十進位制 系統)中的表示。在這個系統中,每個“小數位”由數字 0-9 組成,這些數字的排列方式是每個數字都乘以 10 的冪,從左到右遞減,並且用小數點指示 10^0=1 位。例如,十進位制展開為 1234.56 的數字定義為

1234.56=1×10^3+2×10^2+3×10^1+4×10^0+5×10^(-1)+6×10^(-2)
(1)
=1×1000+2×100+3×10+4+5×1/(10)+6×1/(100).
(2)

以這種形式 sum_(k)b_k10^k 書寫的表示式(其中允許如上例所示的負數 k,但在初等教育環境中通常不考慮)被稱為處於 展開記數法 中。

其他例子包括 25^2 的十進位制展開為 625,pi 的十進位制展開為 3.14159...,以及 1/9 的十進位制展開為 0.1111...。一個數的十進位制展開可以在 Wolfram 語言 中使用以下命令找到RealDigits[n],或等價地,RealDigits[n, 10]。

一個數的十進位制展開可能終止(在這種情況下,該數被稱為 正規數 或有限小數,例如,1/2=0.5),最終變成周期性的(在這種情況下,該數被稱為 迴圈小數,例如,1/3=0.3^_),或者無限地繼續而不重複(在這種情況下,該數被稱為 無理數)。

下表總結了前幾個 單位分數 的十進位制展開。通常,十進位制展開的迴圈部分通常用 連線 表示。

分數十進位制展開分數十進位制展開
111/(11)0.09^_
1/20.51/(12)0.083^_
1/30.3^_1/(13)0.076923^_
1/40.251/(14)0.0714285^_
1/50.21/(15)0.06^_
1/60.16^_1/(16)0.0625
1/70.142857^_1/(17)0.0588235294117647^_
1/80.1251/(18)0.05^_
1/90.1^_1/(19)0.052631578947368421^_
1/(10)0.11/(20)0.05

如果 r=p/q 具有有限十進位制展開(即,r 是一個 正規數),那麼

r=(a_1)/(10)+(a_2)/(10^2)+...+(a_n)/(10^n)
(3)
=(a_110^(n-1)+a_210^(n-2)+...+a_n)/(10^n)
(4)
=(a_110^(n-1)+a_210^(n-2)+...+a_n)/(2^n·5^n).
(5)

分解 可能的公倍數得到

 r=p/(2^alpha5^beta),
(6)

其中 p≢0 (mod 2, 5)。因此,具有有限十進位制展開的數是這種形式的分數。前幾個正規數是 1, 2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, ... (OEIS A003592)。

任何非正規分數 m/n 都是週期性的,並且具有一個與 m 無關的 十進位制週期 lambda(n),該週期最多為 n-1 位數字 長。如果 n 與 10 互質,則 m/n 的週期 lambda(n)phi(n) 的一個約數,並且最多有 phi(n) 位數字,其中 phi尤拉總計函式。結果表明,lambda(n) 是 10 對 (mod n) 的 乘法階 (Glaisher 1878, Lehmer 1941)。一個 有理數 的十進位制展開的迴圈部分的位數也可以直接從其 分母乘法階 中找到。

當一個 m/n(m,n)=1 的有理數被展開時,週期在 s 項之後開始,長度為 t,其中 st 是滿足以下條件的最小數字

 10^s=10^(s+t) (mod n).
(7)

n≢0 (mod 2, 5) 時,s=0,這變成了一個純迴圈小數,其

 10^t=1 (mod n).
(8)

作為一個例子,考慮 n=84

 10^0=1 10^1=10 10^2=16 10^3=-8; 10^4=4 10^5=40 10^6=-20 10^7=-32; 10^8=16,
(9)

因此 s=2t=6。十進位制表示為 1/84=0.01190476^_。當分數 m/n分母 具有 n=n_02^alpha5^beta 的形式,其中 (n_0,10)=1,則週期在 max(alpha,beta) 項之後開始,並且週期的長度是 10 所屬的指數 (mod n_0),即,數字 x 使得 10^x=1 (mod n_0)。如果 q素數 並且 lambda(q)偶數,那麼將重複的 數字 分成相等的兩半並相加得到所有 9。例如,1/7=0.142857^_,並且 142+857=999。對於 素數 分母 不是 2 或 5 的 1/q,所有迴圈 n/q 具有相同的長度 (Conway and Guy 1996)。

如果 n 是一個 素數 且 10 是 n原根,則迴圈小數 1/n 的週期 lambda(n) 由下式給出

 lambda(n)=phi(n),
(10)

其中 phi(n)尤拉總計函式。此外,對於 p/n,其中 p=1, 2, ..., n-1 的十進位制展開具有 n-1 的週期長度,並且僅透過迴圈排列而不同。這樣的數字 n 被稱為 全迴圈素數

要找到具有短週期的 分母,請注意

10^1-1=3^2
(11)
10^2-1=3^2·11
(12)
10^3-1=3^3·37
(13)
10^4-1=3^2·11·101
(14)
10^5-1=3^2·41·271
(15)
10^6-1=3^3·7·11·13·37
(16)
10^7-1=3^2·239·4649
(17)
10^8-1=3^2·11·73·101·137
(18)
10^9-1=3^4·37·333667
(19)
10^(10)-1=3^2·11·41·271·9091
(20)
10^(11)-1=3^2·21649·513239
(21)
10^(12)-1=3^3·7·11·13·37·101·9901.
(22)

分母等於上面 素數 因子 的分數的 十進位制週期 因此是該因子首次出現的 10 的 。例如,37 出現在 10^3-110^9-1 的因式分解中,因此其週期為 3。將任何 因子 乘以 2^alpha5^beta 仍然給出與單獨 因子 相同的週期。透過兩個 因子 的乘法獲得的 分母 的週期等於兩個 因子 都出現的 10 的第一個 。下表給出了具有小週期的 素數 (OEIS A007138, A046107, 和 A046108; Ogilvy and Anderson 1988)。

週期素數
13
211
337
4101
541, 271
67, 13
7239, 4649
873, 137
9333667
109091
1121649, 513239
129901
1353, 79, 265371653
14909091
1531, 2906161
1617, 5882353
172071723, 5363222357
1819, 52579
191111111111111111111
203541, 27961

下表列出了除特殊 p=5 之外的小 素數 的週期 e,對於 p=5,十進位制展開不是週期性的 (OEIS A002371)。

pepepe
3131156733
763737135
112415738
13643217913
171647468341
191853138944
232259589796
292861601014

Shanks (1873ab) 計算了所有高達 120000素數 的週期,並公佈了高達 29989 的週期。


另請參閱

10, 進位制, 二進位制, 十進位制, 十進位制週期, 小數點, 展開記數法, 分數, Midy定理, 乘法階, 正規數, 迴圈小數, 唯一素數 在 課堂中探索這個主題

此條目的部分內容由 Christopher Stover 貢獻

使用 探索

參考文獻

Conway, J. H. and Guy, R. K. "Fractions Cycle into Decimals." In The Book of Numbers. New York: Springer-Verlag, pp. 157-163 and 166-171, 1996.Das, R. C. "On Bose Numbers." Amer. Math. Monthly 56, 87-89, 1949.de Polignac, A. "Note sur la divisibilité des nombres." Nouv. Ann. Math. 14, 118-120, 1855.Dickson, L. E. History of the Theory of Numbers, Vol. 1: Divisibility and Primality. New York: Dover, pp. 159-179, 2005.Glaisher, J. W. L. "Periods of Reciprocals of Integers Prime to 10." Proc. Cambridge Philos. Soc. 3, 185-206, 1878.Havil, J. Gamma: Exploring Euler's Constant. Princeton, NJ: Princeton University Press, p. 25, 2003.Lehmer, D. H. "Guide to Tables in the Theory of Numbers." Bulletin No. 105. Washington, DC: National Research Council, pp. 7-12, 1941.Lehmer, D. H. "A Note on Primitive Roots." Scripta Math. 26, 117-119, 1963.Ogilvy, C. S. and Anderson, J. T. Excursions in Number Theory. New York: Dover, p. 60, 1988.Rademacher, H. and Toeplitz, O. The Enjoyment of Mathematics: Selections from Mathematics for the Amateur. Princeton, NJ: Princeton University Press, pp. 147-163, 1957.Rao, K. S. "A Note on the Recurring Period of the Reciprocal of an Odd Number." Amer. Math. Monthly 62, 484-487, 1955.Shanks, W. "On the Number of Figures in the Period of the Reciprocal of Every Prime Number Below 20000." Proc. Roy. Soc. London 22, 200, 1873a.Shanks, W. "On the Number of Figures in the Period of the Reciprocal of Every Prime Number Between 20000 and 30000." Proc. Roy. Soc. London 22, 384, 1873b.Shiller, J. K. "A Theorem in the Decimal Representation of Rationals." Amer. Math. Monthly 66, 797-798, 1959.Sloane, N. J. A. Sequences A002329/M4045, A002371/M4050, A003592, A007138/M2888, A046107, and A046108 in "The On-Line Encyclopedia of Integer Sequences."Wells, D. The Penguin Dictionary of Curious and Interesting Numbers. Middlesex, England: Penguin Books, p. 60, 1986.

在 中被引用

十進位制展開

請引用為

Stover, ChristopherWeisstein, Eric W. "Decimal Expansion." 來自 Web 資源。 https://mathworld.tw/DecimalExpansion.html

主題分類