2007å¹´12æ11æ¥16:30 ã«ãã´ãªã¢ã«ã´ãªãºã ç¾é¸Math ã¢ã«ã´ãªãºã ç¾é¸ - ã¦ã¼ã¯ãªããã®äºé¤æ³ ä»åã¯ãã¦ã¼ã¯ãªããã®äºé¤æ³ãåãä¸ãã¾ãã ã¦ã¼ã¯ãªããã®äºé¤æ³ã¨ã¯ä½ããå°å¦æ ¡ã®æã«å®ã¯ç¿ã£ã¦ããã¯ãã§ãããå¿ãã¦ããæ¹ã¯æãåºãã¦ã¿ã¦ãã ãããæå¤§å ¬ç´æ°(Greatest Common Divisor)ã確å®ã«è¨ç®ããæ¹æ³ã§ããå¤ä»£ããæåãªãã®ã¢ã«ã´ãªãºã ã¯ããã¤ã¦ã¯"The Algorithm"ã¨ããã°ãããããã»ã©æåãªã¢ã«ã´ãªãºã ã§ãã ããã¯ãã³ã¼ãã§ã¯ãªãæ®éã®è¨èã§ãç°¡åã«æ¸ããã¨ãåºæ¥ã¾ããgcd(m, n)ãåºãã«ã¯ã mãnã§å²ããä½ããrã ã¨ãã ä½ãrã0ãªããnãGCDã ããã§ãªããã°ãnã¨rã®GCDãæ±ãã äºãéãã«å²ã£ã¦ããã®ã§ãäºé¤æ³ã¨ããããã§ãã function gcd(m, n){ if (m < n) return gcd(
{{#tags}}- {{label}}
{{/tags}}