2009-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ãã«æ¹ç¨å¼ï¼Pell's equationï¼ã¯ããã§ã«ãã¼ãåé¡ãæ°å¦è ãã¡ã«éãã¤ããã¨ããé¸è©±ãæåã§ããããªã¤ã©ã¼ãç 究ãã¦ãã®ããã«ï¼èª¤ã£ã¦ï¼å½åããããã§ãã x2 - Dy2 = 1 Dã¯ä¸ããããå¹³æ¹æ°ã§ãªãèªç¶æ° ãã®å½¢ã®æ´æ°è§£ãæ±ããåé¡ããã«æ¹ç¨å¼ã¨â¦
Problem 43 1406357289ã¨ããæ°ã¯ã0ãã9ã®pandigitalã§ããããããã«èå³æ·±ãé¨åã«åå²ããã¨ãã®æ§è³ªãæã¡ã¾ãã d1ãæåã®æ°åãd2ã2çªç®ã®æ°åãªã©ã¨ããã d2d3d4=406ã¯2ã§å²ãåããã d3d4d5=063ã¯3ã§å²ãåããã d4d5d6=635ã¯5ã§å²ãåãããâ¦
Problem 41 1ããnã¾ã§ã®æ°åãå ¨ã¦1åãã¤ä½¿ããã¦ããnæ¡ã®æ°ãpandigitalã¨å¼ã¼ããä¾ãã°ã2143ã¯4æ¡ã®pandigitalã§ã¾ãç´ æ°ã§ãããã æã大ããnæ¡ã®pandigitalã§ç´ æ°ã§ããæ°ã¯ï¼ http://projecteuler.net/index.php?section=problems&id=41 pandigiâ¦
æ¬å½ã¯æåããã¡ãã¡ã«ã¦ã³ãããå¿ è¦ã¯ããã¾ãããä¾ãã°ãd1000ãæ±ãã¦ã¿ã¾ãããã 1æ¡ã®æ°ã¯1ã9ã ããã9ã¾ã§ã§9æ¡ã§ãã2æ¡ã®æ°ã¯10ã99ã®90åããã®ã§ã99ã¾ã§ã§9+180=189æ¡ã§ãã3æ¡ã®æ°ã¯100ã999ã®900åããã®ã§ã999ã¾ã§ã§9+180+2700=2889æ¡ã§â¦
Problem 40 ç¡çæ°ã次ã®ããã«æ£ã®æ´æ°ãçµåãã¦ä½ãï¼ 0.123456789101112131415161718192021... å°æ°é¨ã®12çªç®ã®æ°åã¯1ã§ããã dn ãå°æ°é¨ã®nçªç®ã®æ°åã¨ããã¨ãã次ã®å¤ãæ±ããã d1 à d10 à d100 à d1000 à d10000 à d100000 à d1000000 http://â¦
ããã¸ã§ã¯ããªã¤ã©ã¼ http://projecteuler.net/index.php?section=problems&id=270 ä»æ¥ã¯ä¹ ãã¶ãã«åºé¡ã®æéã«å®¶ã«ããã é©å½ã«çµãã§ãããããã®ãã¡ã«ããã¯éè¤ãçããªãããã«å帰ã«ããåé¡ã ã¨æ°ãã¤ãããæ¼é£ã®ããããè²·ãã«åºããã¦ããã¨â¦
Project Eulerã解ãã¦ããã®ã«ä¾¿å©ãªæ°å¦ã®ç¨èªãã¢ã«ã´ãªãºã ãªã©ãç´¹ä»ãããã®ãã¾ã¨ãã¦ãã¾ãã ã¦ã¼ã¯ãªããã®äºé¤æ³ äºãã«ç´ ã¨ã©ãã¹ããã¹ã®ãµãã å é¤åç ãã¿ã´ã©ã¹æ° ãã¤ããªæ³ 漸åå¼ ç´æ° å¤è§æ° å®å ¨æ°ã»åææ°ã»ç¤¾äº¤æ° ãªã¤ã©ã¼ã®Ïé¢æ°â¦
Problem 39 pãç´è§ä¸è§å½¢ã®å¨å²ã®é·ãã¨ããã¨ãp = 120ã®è§£ã¯3ã¤ããã ï¼ä¸ç¥ï¼p ⤠1000ã«å¯¾ãã¦ã解ã®åæ°ãæ大ã®ãã®ã¯ï¼ http://projecteuler.net/index.php?section=problems&id=39 ãã¿ã´ã©ã¹æ°ã¯ã a = 2lmn b = l(m2 - n2) c = l(m2 + n2) m > n â¦
Problem 38 192ã¨ããæ°ã«1,2,3ããããã¨ã 192 x 1 = 192 192 x 2 = 384 192 x 3 = 576 ãããã¤ãªããã¨192384576ã¨ãã1ãã9ã®æ°åãä¸åº¦ãã¤ä½¿ãããæ°ã«ãªãã192384576ã192ã¨(1,2,3)ã®çµåããç©ã¨å¼ã¶ã ï¼ä¸ç¥ï¼æ´æ°ã¨(1,2,...,n)(n > 1)ã®çµåãâ¦
ãã£ããããæ°åãä½ããªããã°ãªããªããHaskellã§ã¯ã©ã®ããã«ä½ãã°ãããæ¤ç´¢ãã¦ãããã次ã®ãããªãã®ãåºã¦ããã fib = 1 : 1 : [ a + b | (a, b) http://www.sampou.org/haskell/tutorial-j/functions.html ãã£ã±ãæå³ãããããªãããä¸ã¤ãã¤â¦
ããã¸ã§ã¯ããªã¤ã©ã¼ http://projecteuler.net/index.php?section=problems&id=269 è¦ãããããã«ãæ°å¦çãªã®ã§æåã¯ããããæ¹åã§èãã¦ãããããã®ãã¡ããã¯ã³ã¼ãã£ã³ã°ã®åé¡ã ã¨æ°ãã¤ãããçªé£ãªçºæ³ã¯ã¾ã£ããè¦ãããå°éã«èããªããã³ã¼ãâ¦
Problem 37 3797ã¨ããæ°ã¯èå³æ·±ãæ§è³ªãæã£ã¦ãããããèªèº«ãç´ æ°ã§ãå·¦ããé ã«æ°åãåãé¤ãã¦ãã£ã¦ãç´ æ°ã®ã¾ã¾ã§ããï¼3797,797,97,7ãåæ§ã«å³ããé ã«åãé¤ãã¦ãç´ æ°ã§ããï¼3797,379,37,3ã 11åãããã®ããã«ã©ã¡ãããã§ãçãã§ããç´ æ°â¦
Problem 36 ï¼ä¸ç¥ï¼10é²ã§ã2é²ã§ãåæã«ãªã100ä¸ããå°ããæ°ã®åãæ±ããã http://projecteuler.net/index.php?section=problems&id=36 ã©ã¡ããã®é²æ°ã§åææ°ãçæãã¦ããããããä¸æ¹ã®é²æ°ã§åæã«ãªã£ã¦ããããå¤å®ããã°ããã§ãã100ä¸ã¾ã§â¦
Project Eulerã§ããåºã¦ããåææ°ï¼palindromic numberï¼ã¯ã32523ã®ããã«ã©ã¡ãããèªãã§ãåãã«ãªãæ´æ°ã®ãã¨ã§ãã åææ°ã®çæ ã¾ãæãã¤ãã®ã¯ãä¾ãã°4æ¡ãªã10ã99ãç¨æãã¦ãããã²ã£ããè¿ãã¦çµåããã¨ããæ¹æ³ã§ãã10ãªã01ã¨çµåãã¦â¦
æ¥ã«Haskellããã£ã¦ã¿ããã¨æããã¤ã³ã¹ãã¼ã«ãã¦ãå°ã調ã¹ã¦ãProject Eulerã®Problem 1ãæ¸ãã¦ã¿ãã2æéããã£ãã ã¾ãã http://haskell.org/ ãããã¦ã³ãã¼ããã¦ãããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ã ããã¦ãé©å½ãªãµã¤ããè¦ã¦ãããæ¸ãã¦ãtest.hâ¦
ååã®ã³ã¼ãã§ã¯ã197,971,719ã®ç´ æ°å¤å®ã3åãã¤ãã¦ãããã¨ã«ãªãã¾ãããããé¿ããã«ã¯ããã®3ã¤ã®ä¸ã§æãå°ããæ°ãããªãã¡ããã§ã¯197ã®ã¿å転ãã¦ç´ æ°å¤å®ãããã°ããã§ãããã ããããå転ãã¦æãå°ããæ°ã ããçæããã®ã¯ããªãé¢åã§ãâ¦
ããã¸ã§ã¯ããªã¤ã©ã¼ http://projecteuler.net/index.php?section=problems&id=268Problem 1ã¨ä¼¼ããããªåé¡ã®æ¡å¼µãã§ã4以ä¸ã ããå é¤åçãæ¡å¼µããªãã¨ãããªããã ããããã«æéåã£ããããã£ã¦å¸¸èãªã®ï¼ ç¯å²ãå°ããã¨ãã«æå¹ãªã³ã¼ãã def mâ¦
Problem 35 197ã¯ãæ°åãå転ããã197ã¨971ã¨719ããã¹ã¦ç´ æ°ãªã®ã§ãcircular primeã¨å¼ã°ããã ï¼ä¸ç¥ï¼100ä¸æªæºã«circular primeã¯ããã¤ãããï¼ http://projecteuler.net/index.php?section=problems&id=35 ã¨ã©ãã¹ããã¹ã®ãµãããè¡ã£ã¦ã2ãã1â¦
è¦æ¹ãå¤ãã¦ãã¾ãã左辺第2é ãåºå®ãã¾ããããããã¨ç¬¬1é ã®ç¯å²ãçµãã¾ããä¾ãã°ã第2é ã2ã ã£ããã第1é ã¯1000ã4999ã§ãããã¨ããããã¾ããããã¦æãç®ããã¦ãæ°åã1åãã¤ä½¿ããã¦ãããããã§ãã¯ãã¾ãã ã³ã¼ãã«ããé度ã®éãããã§ãâ¦
Problem 32 ç©7254ã¯ã39 x 186 = 7254ã¨æ¸ãã¨1ã9ãã¡ããã©1åãã¤ä½¿ãã¨ããæå³ã§ç¹å¥ã§ãããåæ§ã®ç©ã®åãæ±ããã http://projecteuler.net/index.php?section=problems&id=32 æ®éã«è§£ãã¨ã1ã9ã®é åãåºãã¦ãä¾ãã°ã(1, 8, 6, 3, 9, 7, 2, 5,â¦
Problem 30 é©ãã¹ããã¨ã«åæ¡ã®4ä¹ã®åã¨ãã¦æ¸ããæ°ã¯3ã¤ããããã¾ããï¼ä¸ç¥ï¼ 1 = 14ã¯åã§ãªãã®ã§é¤ãã¾ãã ï¼ä¸ç¥ï¼åæ¡ã®5ä¹åã¨ãã¦æ¸ããå ¨ã¦ã®æ°ã®åãæ±ããã http://projecteuler.net/index.php?section=problems&id=30 ã¾ããç¯å²ãæãâ¦
ãã®åé¡ã¯ãã¹ãä¹æ°ãåæãããéè¤ããæ°ãæ°ãããã¨ãã2段éã«åããã¦ãã¾ããä»ã¾ã§å段ã¯å¾æ®µã«ããã¹ã¦æéãããããªãã£ãã®ã§ãããå¾æ®µãéããªã£ã¦å段ã®ã»ããæéããããããã«ãªã£ãã®ã§å段ãæ¹è¯ãã¾ãã ä¾ãã°100ã¾ã§ã®ã¹ãä¹æ°ãèâ¦
http://www.tokai-tv.com/ekiden09/æ¨å¤ã¨ä»æã«ããã¦è¦ãã ã¹ã¼ãã¼å°å¦çåºç¾ã ããã§ãæ¾åäºç´ãå°å¦2å¹´çã1500mã5:30ãç§ã§ãã¡ããã¨ç·´ç¿ããªãã¨åºããªãã¿ã¤ã ã ããã£ã±ãä½æ ¼ããããã 親åæã£ã¦è¡¨æ ã硬ããï¼ï¼ããããªããï¼ éä¸ããé¨â¦
é§ ä¼ã¨ãè¦ã¡ããã¨ã¤ãã¹ãã¼ãç·´ç¿ãããããªãããããããã®ã¯ç¡è¦ãã¦äºå®éã30kmèµ°ãæ¢è¡ã æååé§ ã¾ã§èµ°ããã¨ãããã風ãå¼·ãã®ã§ããã¦ãåé§ ã¸ã æ°å¹¹ç·å£ããã¾ã£ããèµ°ããæåã¯ç·è·¯æ²¿ãã«ãR19ãR1ã¨èµ°ãã å½éã ã¨è·é¢ãåããã®ã§ããâ¦
åé¡èªã¿éãã¦ãããªããããããã©ãfã¯å ´é¢ã§æé©ãªãã®ãé¸ã¹ãã®ãã¨æã£ã¦ããããã§ãªãã¨ãçããåºãã¦ã¿ããã®ã®ãçããåããªãã®ã§åé¡ãèªã¿ç´ãã¦ã¿ããã ããã£ã¦ããã ã®é«æ ¡æ°å¦ãããã
ä¾ãã°ã16ã¯161/4=2ã¨161/2=4ã¨163/4=8ã«åºã移è¡ã§ãã¾ãã20ã¾ã§ã¨ãã¦16ã移è¡ã§ããææ°ã¯ããããã 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1/4 o o o o x x x x x x x x x x x x x x x 1/2 o o o o o o o o o x x x x x x x x x x 3/4 x â¦
ããã¸ã§ã¯ããªã¤ã©ã¼ http://projecteuler.net/index.php?section=problems&id=267ãã¡ã ãè¨ç®éãè¨å¤§ãããã
abï¼2 ⤠a ⤠100, 2 ⤠b ⤠100ï¼ã¯99Ã99åããã®ã§ãããåãæ°ã«ãªããã®ãããã®ã§åé¡ã«ãªã£ã¦ããã®ã§ããä¾ãã°ã 42 = 24 ãããã99Ã99ããåãé¤ãã°ããã§ãã ããã§ã¯ãåºãå°ãããªãããã®ãæ°ãã¾ããä¸ã®ä¾ãªãã 42 = (22)2 = 24 ããªãã¡ãâ¦
Problem 29 ï¼ç¥ï¼ab 2 ⤠a ⤠100, 2 ⤠b ⤠100ã§çæãããæ°åã§ç°ãªãé ã¯ããã¤ãããã http://projecteuler.net/index.php?section=problems&id=29 Pythonãªã100100ãç°¡åã«è¨ç®ã§ããã®ã§ããã®ã¾ã¾æ¸ãã°çãã¯åºã¦ãã¾ãã from itertools import â¦
https://runnet.jp/record/userRaceTopShowAction.do?raceId=8673ååã®æ½åºãã¼ã¿ã§ååã¨å¾åã®ã¿ã¤ã ã®ç¸é¢ã調ã¹ã¦ã¿ãããããã¦è¦ã¦ã¿ãã¨ã人ãããããªãã ãªãã¨æãã 2æ¬ã®ç·ã¯ãå帰ç·ã«å¹³è¡ã«ãã¼ã¿ã1/3ãã¤ã«åãããããã«å¼ãã¦ãããå·¦ä¸â¦