2012-04-02から1日間の記事一覧

Euler project 32

#-*- coding:utf-8 -*- from datetime import datetime def Euler32(): Number = set([str(i) for i in xrange(1,10)]) total = [] for i in xrange(1, 98): for j in xrange(12, 9876): max = i *j if max > 9999: break Num_list = list(str(i)) + list(st…

「スマリヤンの決定不能の論理パズル」-ゲーデルの定理と様相論理-11章 自分自身について推論する論理学者

1型推論者 (1a)すべての恒真式を信じている。 (1b)もし彼がpとp→qを信じれば、qを信じる。2型推論者 1型推論者の能力とともに以下の能力を持っている。 (2)(Bp&B(p→q))→Bpを信じる 3型推論者 2型推論者の能力とともに以下の能力を持っている。 (3)もし…