2009-01-13から1日間の記事一覧

効率的市場仮説はそれを信じない者へのご褒美である

効率的市場仮説 〜Wikipediaより 市場参加者は利用可能なすべての情報を迅速に取り入れており、新規情報によって他の市場参加者より有利になるという状況は生じないため、市場の挙動はランダムウォークになるという仮説。 株券は紙幣同様信用ベースの資産で…

Rubyで3と5の倍数を求める 〜Rubyでオイラープロジェクトを解こう!Problem1

Problem 1 - Project Eulerより If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. 10未満の自然数で3または…

Rubyでフィボナッチ数列を求める 〜Rubyでオイラープロジェクトを解こう!Problem2

Problem 2 - Project Eulerより Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Find the sum of all the even-…

Rubyで素因数を求める 〜Rubyでオイラープロジェクトを解こう!Problem3

Problem 3 - Project Eulerより The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 13195の素因数は、5、7、13および29である。 では600851475143の最大の素因数はいくらか。 素因数 - Wikip…