八進法
[Wikipedia|▼Menu]

八進法(はっしんほう、: octal)とは、8(てい)とし、底およびそのを基準にして数を表す方法である。
記数法

八進記数法とは、8 を底とする位取り記数法である。八進法では、0から7までの八種類の数字を用い、を10、を11(八一)、を12(八二)…と表記する。以降も、十進法16は 20 (二八)、十進法24は 30 (三八)、十進法30は 36 (三八六) となる。このように、「八が10になる」記数法が八進法であり、「一桁の数字が8まで」なのはその次の九進法である。

必要に応じ、八進記数法の表記は括弧および下付の 8、十進記数法の表記を括弧及び下付きの10 で表す。八進記数法で表された数を八進数と呼ぶ。

整数の表記も、八進法では以下のようになる。

(13)10 = 15(1×8 + 5)

(16)10 = 20(2×8)

(27)10 = 33 (3×8 + 3)

(32)10 = 40(4×8)

(49)10 = 61(6×8 + 1)

(64)10 = 100(1×82)

(81)10 = 121(1×82 + 2×81 + 1)= (100)9

(100)10 = 144(1×82 + 4×81 + 4)

(216)10 = 330(3×82 + 3×81)= (1000)6

(320)10 = 500(5×82)

(512)10 = 1000(1×83)

(729)10 = 1331(1×83 + 3×82 + 3×81 + 1)= (1000)9

(1000)10 = 1750(1×83 + 7×82 + 5×81)

(1944)10 = 3630(3×83 + 6×82 + 3×81)= (13000)6

(2000)10 = 3720(3×83 + 7×82 + 2×81)

(2048)10 = 4000(3×83 + 7×82 + 5×81 + 1)

(2187)10 = 4213(4×83 + 2×82 + 1×81 + 3)= (3000)9

(2560)10 = 5000(5×83)

(4096)10 = 10000(1×84)= (5551)9

(7776)10 = 17140(1×84 × 7×83 + 1×82 + 4×81 + 1)= (100000)6

10となる八は2の3乗なので、二進法の 3 桁を八進法の 1 桁で表現できた。初期のコンピュータでは1文字は6ビット、すなわち八進法 2 桁であり、ワード長も6の倍数であることが多かったため(IBM 709036ビットCDC 6000の60ビットPDP-812ビットPDP-718ビット)、八進法によって表現するのが都合よく、コンピュータ業界ではかつて八進法が広く使われた[1]CPerl などでは、数の前に 0 を付けると八進数と見なされる。例えば 011 は (11)10 ではなく (11)8 すなわち 9 である。しかし、計算機のワード長が 8 ビット(オクテット)からなるバイトの倍数によって構成されることが一般的になると、二進数 4 桁を 1 つにまとめた十六進数のほうが切りがよいため、八進法が使われることは少なくなった。
可分性

10となる素因数分解すると23なので、2でしか割り切れない。即ち、1/31/5など奇数分割ができない。単位分数も、2の冪数以外は全て無限小数になる。素因数が複数となる六進小数(2と3)や十進小数(2と5)との対比も示す。

単位分数の小数換算値素因数分解八進分数八進小数六進小数十進小数十進分数
21/20.40.30.51/2
31/30.2525…0.20.3333…1/3
221/40.20.130.251/4
51/50.1463…0.1111…0.21/5
2×31/60.12525…0.10.1666…1/6
71/70.1111…0.0505…0.142857…1/7
231/100.10.0430.1251/8
321/110.0707…0.040.1111…1/9
2×51/120.06314…0.0333…0.11/10

計算表

加算表+01234567
001234567
1123456710
22345671011
334567101112
4456710111213
55671011121314
667101112131415
7710111213141516

乗算表×01234567
000000000
101234567
2024610121416
30361114172225
404101420243034
505121724313643
606142230364452
707162534435261

命数法

八進命数法とは、8 を底とする命数法である。自然言語では、メキシコの北パメ語[2] (Northern Pame) が八進法を用いているが[3]、近縁の中央パメ語[4] (Central Pame) は内部に八進法と十進法を持つ複雑な二十進法を用いている。

アメリカカリフォルニア州のユキ語(英語版)[5] は指自体ではなく指の股を数える八進法を用いていたが[6]、現在は死語である。
参考文献^ I・アシモフ『黒後家蜘蛛の会3』創元推理文庫、1981年、73p頁。 
^ Gordon, Raymond G., Jr., ed. (2005), ⇒“Pame, Northern”, Ethnologue: Languages of the World (15 ed.), ⇒http://www.ethnologue.com/show_language.asp?code=pmq 2008年3月28日閲覧。 
^ Avelino, Heriberto (2006), ⇒“The typology of Pame number systems and the limits of Mesoamerica as a linguistic area”, Linguistic Typology 10: 41-60, ⇒http://linguistics.berkeley.edu/~avelino/Avelino_2006.pdf 
^ Gordon, Raymond G., Jr., ed. (2005), ⇒“Pame, Central”, Ethnologue: Languages of the World (15 ed.), ⇒http://www.ethnologue.com/show_language.asp?code=pbs 2008年3月28日閲覧。 
^ Gordon, Raymond G., Jr., ed. (2005), ⇒“Yuki”, Ethnologue: Languages of the World (15 ed.), ⇒http://www.ethnologue.com/show_language.asp?code=yuk 2008年3月28日閲覧。 
^ Ascher, Marcia (1994), Ethnomathematics: A Multicultural View of Mathematical Ideas, Chapman & Hall/CRC, .mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation.cs-ja1 q,.mw-parser-output .citation.cs-ja2 q{quotes:"「""」""『""』"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free a,.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited a,.mw-parser-output .id-lock-registration a,.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription a,.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:#d33}.mw-parser-output .cs1-visible-error{color:#d33}.mw-parser-output .cs1-maint{display:none;color:#3a3;margin-left:0.3em}.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}ISBN 0-412-989417 

関連項目

2の冪

二進法

四進法

十六進法

三十二進法

六十四進法


3の冪

三進法

九進法


コンピュータの数値表現

ファイルパーミッション - 八進数として表記されることがある。


記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:12 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef