2008-03-01から1ヶ月間の記事一覧

Problem 4

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99.Find the largest palindrome made from the product of two 3-digit numbers. 訳 「回文数」とは右から読んでも…

Problem 3

一週間,追記できなかったので,2008-03-23 - dachs_hippoの日記を仕切りなおし. 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の…

Problem 3

日が開いたので2008-03-29 - dachs_hippoの日記へ 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の最大の素因数は何か? 単純にはで…

Problem 2

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-valued terms in the sequence whi…

Problem 1

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と5の倍数である自然数をあげると,3,5,6…

Project Euler

Archived Problems - Project Eulerというのを発見しました.現在186問の(数学的なバックグラウンドを必要とするような)プログラムの問題が公開されています.日本からの参加者もそこそこいるようです.サイボーズの人の「どう書く.org」もみてると楽しい…

昨日の虫食い算

昨日の虫食い算[id:dachs_hippo:20080315]をHaskellで書いてみました. {- mushikui.hs -} import List f::[Int]->[Int]->[[String]] f ns = concat . map (\y -> (map (\x->[show x, show y, show $ x*y ]) ns)) g::[Int]->[Int] -> [([String],String)] g …

虫食い算

こんな問題を見かけました(クイズ分かる方いませんか? -下の問題分かる方いませんか?■■■■×4=■- 数学 | 教えて!goo). ■■■■×4=■■■■■ ■に4以外の数字(0〜9まで)を1つずつ入れ式を完成させよ これを解くのにperlでこんなスクリプトをでっち上げてみま…

独習LaTeX2ε(吉永徹美著:翔泳社)

TeX

ついに出ました.独習シリーズにTeXものが登場するというのもある意味驚きですが,著者が吉永氏だというのも本格的.今までにないような入門書です.何が今までにないって インストールの詳細な手順は語らない エディタの使い方も語らない ブラボーです(皮…

相当な時代遅れ?

どういうわけか最近まわりでVBSが流行ってきている.そうとうな遅れ具合ですな.けどどうもVBは好きになれないので,こっそりJScriptをいじってみてるわけです.しっかし,ここまでマイナーというか,相手にされてない言語も珍しいですね.もちろんAJAX方面…

テスト

おお・・・ミクアーガが見られる.DSのナムコミュージアム持ってるからドルアーガは今でもできるが,PC版のナムコミュージアムはXPではろくに動かない.かなしい.