迴圈小數,也稱為無限迴圈小數,是指小數表示形式最終變成周期性的數字(即,相同的數字序列無限重複)。小數展開的迴圈部分通常用連線表示,例如,
在這樣的數字中重複的最小位數稱為迴圈節。
在 6 之前的 Wolfram 語言版本中,迴圈小數的表示形式被實現為PeriodicForm[RealDigits[r]] 在載入附加包之後NumberTheory`ContinuedFractions`.
所有有理數都具有有限小數展開式(即,是有限小數;例如,
)或迴圈小數(例如,
)。然而,無理數,例如
,既不終止也不變成周期性的。
諸如 0.5 之類的數字有時被認為是迴圈小數,因為
。
具有迴圈小數的前幾個單位分數的分母是 3, 6, 7, 9, 11, 12, 13, 14, 15, 17, 18, 19, 21, 22, 23, 24, 26, 27, 28, 29, ... (OEIS A085837)。
有理數的迴圈部分可以在 Wolfram 語言中使用以下命令找到RealDigits[r][[1,-1]]。有理數的小數展開的迴圈部分中的位數也可以直接從其分母的乘法階中找到。1/n 對於
, 2, ... 的小數展開的迴圈節是 0, 0, 1, 0, 0, 1, 6, 0, 1, 0, 2, 1, 6, 6, 1, 0, 16, 1, 18, ... (OEIS A051626),其中 0 表示該數字是有限小數。
如果
是迴圈小數,而
是有限小數,那麼
有一個非迴圈部分,其長度與
的長度相同,並且有一個迴圈部分,其長度與
的長度相同 (Wells 1986, p. 60)。
參見
迴圈數,
小數展開,
迴圈節,
尤拉總計函式定理,
完全迴圈素數,
無理數,
Midy 定理,
乘法階,
有理數,
有限小數
使用 探索
參考文獻
Ball, W. W. R. and Coxeter, H. S. M. Mathematical Recreations and Essays, 13th ed. New York: Dover, pp. 53-54, 1987.Conway, J. H. and Guy, R. K. The Book of Numbers. New York: Springer-Verlag, pp. 167-168, 1996.Courant, R. and Robbins, H. "Rational Numbers and Periodic Decimals." §2.2.4 in What Is Mathematics?: An Elementary Approach to Ideas and Methods, 2nd ed. Oxford, England: Oxford University Press, pp. 66-68, 1996.Sloane, N. J. A. Sequences A051626 and A085837 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.在 上被引用
迴圈小數
引用為
Weisstein, Eric W. "迴圈小數。" 來自 Web 資源。 https://mathworld.tw/RepeatingDecimal.html
主題分類