{"id":14432,"date":"2023-05-26T02:37:55","date_gmt":"2023-05-25T17:37:55","guid":{"rendered":"https:\/\/zelkova-tree.net\/WordPress\/?p=14432"},"modified":"2023-05-26T02:50:30","modified_gmt":"2023-05-25T17:50:30","slug":"%e3%81%b2%e3%81%a8%e3%81%a4%e4%b8%8d%e8%89%af%e3%81%8c%e5%87%ba%e3%81%a6%e3%81%84%e3%82%8b","status":"publish","type":"post","link":"https:\/\/zelkova-tree.net\/WordPress\/2023\/05\/26\/%e3%81%b2%e3%81%a8%e3%81%a4%e4%b8%8d%e8%89%af%e3%81%8c%e5%87%ba%e3%81%a6%e3%81%84%e3%82%8b\/","title":{"rendered":"\u3072\u3068\u3064\u4e0d\u826f\u304c\u51fa\u3066\u3044\u308b"},"content":{"rendered":"<p><font face=\"\u30e1\u30a4\u30ea\u30aa\"><\/p>\n<p>\u3072\u3068\u3064\u4e0d\u826f\u304c\u51fa\u3066\u3044\u308b\uff0en=7\u306e\u3068\u304d1\/n\u3067\u56fa\u5b9a\u90e8\u304c1\u3068\u306a\u3063\u3066\u3044\u308b\uff0e\u3053\u308c\u306f\u8aa4\u308a\u3060\uff0e\u56fa\u5b9a\u90e8\uff1a0\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\uff11\uff10\u9032\u6570\u8868\u8a18\u3059\u308b\u30681\/7=0.142857142857\u2026\u3067\uff0c\u5faa\u74b0\u7bc0U=142857\u3067nU = 142857*7 = 999999 = 9*111111\u3068\u306a\u308b\uff0e\u4ee5\u4e0b\u306eURL\u306b\u3088\u308b\u3068\uff0c<\/p>\n<p>An Efficient Factoring Algorithm by Repunit Number Method<br \/><a title=\"http:\/\/www.aya.or.jp\/~babalabo\/repunit\/index.html?fbclid=IwAR0HOaEACHvZ4MyWwXNk6_Dj4Tnr_BAJTjjLMKuBY3PyyhdLo61SbvqT3tY\" href=\"http:\/\/www.aya.or.jp\/~babalabo\/repunit\/index.html?fbclid=IwAR0HOaEACHvZ4MyWwXNk6_Dj4Tnr_BAJTjjLMKuBY3PyyhdLo61SbvqT3tY\">http:\/\/www.aya.or.jp\/~babalabo\/repunit\/index.html?fbclid=IwAR0HOaEACHvZ4MyWwXNk6_Dj4Tnr_BAJTjjLMKuBY3PyyhdLo61SbvqT3tY<\/a><\/p>\n<p>[8&#8242;] Let p be a prime number which is neither 2 nor 5, and the recursion unit of p be U, then pU\/9 is a repunit number Rn, i.e., pU=10n-1.<\/p>\n<p>[8&#8242;] \u306f\u8a3c\u660e\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u5b9a\u7406\u3060\u304c\uff0c\u3053\u308c\u3092\u62e1\u5f35\u3057\u305f [9] Let m be an integer without factor 2 nor 5, and the recursion unit of m be U, then mU\/9 is a repunit number Rn, i.e., mU=10n-1.\u3082\u5b9a\u7406\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4eca\u306e\u30b1\u30fc\u30b9\u3067\u306fn=7\u306f\u7d20\u6570\u3067\u3042\u308b\u304b\u3089\uff0c\u3053\u308c\u3092\u6e80\u305f\u3055\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u4eca\u56de\u306fB\u9032\u21d4\uff11\uff10\u9032\u306e\u76f8\u4e92\u5909\u63db\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\uff0c\u305d\u308c\u3060\u3051\u3067\u5341\u5206\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u95a2\u4fc2\u306e\u30ed\u30b8\u30c3\u30af\u306f\u3059\u3079\u3066\u524a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3060\u304c\uff0c\u3061\u3087\u3063\u3068\u65e9\u307e\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u3068\u3082\u304b\u304f\uff0c\u3069\u3053\u304b\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u78ba\u304b\u306a\u306e\u3067\u8abf\u3079\u3066\u307f\u3088\u3046\uff0e\u5faa\u74b0\u7bc0\u306fTextBox5\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\uff0e\u3053\u306e\u6587\u5b57\u5217\u306fConvertNum2String\u3067\u751f\u6210\u3057\u3066\u3044\u308b\u304c\uff0c\u6587\u5b57\u5217\u81ea\u4f53\u306b\u306f\u8aa4\u308a\u306f\u306a\u3044\uff0emaxfixed\u306b\u5165\u3063\u3066\u3044\u308b\u56fa\u5b9a\u6841\u6570\u304c\u9593\u9055\u3063\u3066\u3044\u308b\uff0e\u3068\u3044\u3046\u304b\uff0cmaxfixed\u3092\u3053\u3053\u3067\u4f7f\u3063\u3066\u3044\u308b\u306e\u304c\u9593\u9055\u3063\u3066\u3044\u308b\uff0e<\/p>\n<p>\u5c11\u306a\u304f\u3068\u3082\u521d\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u6b63\u3057\u3044\u5024\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\uff0e\u21d2\u6b63\u3057\u304f\u51fa\u529b\u3055\u308c\u308b\u306e\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u4e2d\u3067\u4e00\u756a\u53e4\u3044\u300c\u4e45\u7559\u5cf6\u559c\u5185 2023-04-16\u300d\u3057\u304b\u306a\u3044\uff0e\u305d\u308c\u304b\u3089\u4e00\u3064\u4e0a\u304c\u308b\u3068\u56fa\u5b9a\u6841:3\u306a\u3069\u9593\u9055\u3063\u305f\u5024\u304c\u51fa\u59cb\u3081\u308b\uff0e\u3053\u306e\u7248\u3067\u306fDispParametor\u306e\u5f15\u6570\u3067\u6e21\u3055\u308c\u305ffixed\u5024\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3044\u308b\uff0e\u73fe\u884c\u7248\u3067\u306fMakeRecurringDecimal\u3067\u6e21\u3055\u308c\u308bfixed\u306e\u5024\u304c\u3059\u3067\u306b\u8aa4\u3063\u3066\u3044\u308b\uff0eInvertFunc\u304c\u8fd4\u3057\u3066\u3044\u308b\u5024\u304c\uff11\u306b\u306a\u3063\u3066\u3044\u308b\uff0efixed = IT(j)\u3067IT()\u306b\u306f\uff0c{6, 2, 1, 4, 5, 3}\u304c\u5165\u3063\u3066\u3044\u308b\uff0eIT(0)\u306b\u306f\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\uff0e\u3069\u3046\u3082\uff0cInvertFunc\u306e\u8ad6\u7406\u5168\u4f53\u3092\u898b\u76f4\u3059\u5fc5\u8981\u304c\u51fa\u3066\u304d\u305f\uff0e<\/p>\n<p>InvertFunc\u3067\u5270\u4f59\u304c\u4e00\u81f4\u3057\u305f\u3068\u304d\u306e\u64cd\u4f5c\u304c\u9593\u9055\u3063\u3066\u3044\u308b\uff0e\u521d\u9805\u306b\u623b\u308b\u5834\u5408\u306f\u3064\u306d\u306b\u5270\u4f59\u304c\uff11\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u63a8\u5b9a\u304c\u8aa4\u308a\u3060\uff0eRT(0)\u306b\u306f\u521d\u9805\u306e\u5270\u4f59\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u306e\u3067\uff0c\u305d\u308c\u3068\u6bd4\u8f03\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u3067\u591a\u5206\u554f\u984c\u306f\u89e3\u6c7a\u3057\u305f\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3046\uff0erepunit\u306b\u95a2\u3059\u308b\u691c\u67fb\u3092\u8ffd\u52a0\u3057\u3066\u304a\u3053\u3046\uff0e\u3069\u3053\u306b\u5165\u308c\u308c\u3070\u3088\u3044\u304b\uff1f\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u304c\u95a2\u4fc2\u3057\u3066\u304f\u308b\u306e\u306f\u9006\u6570\u691c\u5b9a\u306b\u9650\u3089\u308c\u3066\u3044\u308b\uff0ePrime Test\u306b\u306fDivideRepunit\u304c\u6b8b\u3063\u3066\u3044\u308b\uff0e<\/p>\n<p><font color=\"#cccccc\">\u25b2<\/font>SeedTest\u3092\u5b9f\u884c\u3057\u3066\uff0cValueChanged\u6587\u5b57\u5217 str3\u3068str4\u306e\u4e0d\u4e00\u81f4\u3067\u505c\u6b62\u3057\u305f\uff0e\uff11\uff10\u65b0\u8868\u8a18\u306e\u5834\u5408\u306f\u4e21\u8005\u304c\u4e00\u81f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u78ba\u304b\u306b\u5c0f\u6570\u7b2c12\u4f4d\u3067\u4e0d\u4e00\u81f4\u304c\u767a\u751f\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>&#8220;0.071428571428<font color=\"#ff0000\"><strong>5<\/strong><\/font>714&#8243;<br \/>\n&#8220;0.071428071428<font color=\"#ff0000\"><strong>0<\/strong><\/font>71428071428071428071428&#8243;<\/p>\n<p>N=14, B=10\u3067\u8d77\u304d\u3066\u3044\u308b\uff0e714285\u306e\u65b9\u304c\u6b63\u3057\u3044\uff0e\u3064\u307e\u308a\uff0cstr3\u306f\u9593\u9055\u3063\u3066\u3044\u308b\uff0eMakeRecurringDecimal\u3067\u751f\u6210\u3059\u308bstr2\u306b\u3082\u6b20\u9665\u304c\u3042\u308b\uff0e\u3053\u308c\u3057\u304b\u5165\u3063\u3066\u3044\u306a\u3044\uff0e&#8221;\/A:0.&amp;071428\/&#8221;\uff0estr3\u3092\u751f\u6210\u3057\u3066\u3044\u308b\u306e\u306fMakeDecimalString\u3060\uff0e\u3053\u306e\u95a2\u6570\u306fQT\u914d\u5217\u304b\u3089\u6587\u5b57\u5217\u3092\u751f\u6210\u3057\u3066\u3044\u308b\uff0eQT\u306b\u5165\u3063\u3066\u3044\u308b\u5024\u306f\u6b63\u3057\u3044\uff0e\u5f15\u6570\u3067fixed\u3068keta\u3092\u6e21\u3057\u3066\u3044\u308b\u304c\uff0cfixed\u306b\uff10\u304c\u5165\u3063\u3066\u3044\u308b\uff0e\u3053\u308c\u306f\uff11\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u4e0a\u306e\u4fee\u6b63\u3067\u521d\u9805\u306b\u4e00\u81f4\u3057\u305f\u5834\u5408\u306b\u306f\u5f37\u5236\u7684\u306b1\u3092\u4ee3\u5165\u3057\u3066\u3044\u308b\u304c\uff0c\u3053\u308c\u304c\u307e\u305a\u3044\u306e\u3060\u308d\u3046\uff0e<\/p>\n<p>\u56fa\u5b9a\u9805\u306b\u306f\uff10\u306e\u4e26\u3073\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u304c\u3042\u308b\uff0e\u305d\u308c\u3092\u3069\u3046\u3084\u3063\u3066\u5224\u5b9a\u3057\u305f\u3089\u3088\u3044\u306e\u3060\u308d\u3046\uff1fQT(0)=0\u306e\u5834\u5408\u306ffixed=1\u3068\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u9003\u3052\u305f\uff0e\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u304c\uff0c\u3053\u308c\u3067\u3059\u3079\u3066\u30ab\u30d0\u30fc\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u7591\u554f\u3060\uff0e\u3069\u3046\u3082\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u306a\u3044\u3088\u3046\u3060\uff0en=6, B=10\u306e\u3068\u304d\uff0cstr3=0.11111111111111\u2026 \u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff0eR=4\u3067IT(j)=1\u304b\u3064R=RT(0)\u304c\u6210\u7acb\u3057\uff0cQT(0) \u304c0\u3067\u306a\u3044\u306e\u3067fixed=0\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\uff0e1\/6=0.16666\u2026\u306a\u306e\u3067\uff0c\u56fa\u5b9a\u90e8\u306f\uff11\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u306e\u3060\u304c\uff0c\u8aa4\u52d5\u4f5c\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3069\u3046\u3082\uff0cInvertFunc\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u4ed5\u4e0a\u304c\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\uff1fInvertFunc\u3067\u306fQT, RT, IT\u306e\uff13\u3064\u306e\u914d\u5217\u3092\u4f7f\u3063\u3066\u3044\u308b\uff0e\u3053\u3053\u3067\u306fB^i mod N \u3092\u8a08\u7b97\u3057\uff0c\u5270\u4f59\u304c\u4e00\u81f4\u3059\u308c\u3070\u5468\u671f\u304c\u9589\u3058\u305f\u3068\u5224\u5b9a\u3057\u3066\uff0c\u56fa\u5b9a\u90e8\u9577\u3068\u5468\u671f\u3092\u5272\u308a\u51fa\u3059\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\uff0e\u30eb\u30fc\u30d7\u304b\u3089\u306e\u8131\u51fa\u6761\u4ef6\u306f\uff0c\u2460\u5270\u4f59\u304c\u30bc\u30ed\u306b\u306a\u3063\u305f\uff0c\u2461\u4e00\u81f4\u3059\u308b\u5270\u4f59\u3092\u691c\u51fa\uff0c\u2462\u4e2d\u6b62\u30dc\u30bf\u30f3\u306a\u3044\u3057\u30ab\u30a6\u30f3\u30c8\u30aa\u30fc\u30d0\u30fc\u306e\uff13\u3064\u3060\uff0e\u554f\u984c\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u306f\uff0c\u2461\u306e\u5468\u671f\u306e\u7d42\u7aef\u306b\u9054\u3057\u3066\u5270\u4f59\u304c\u4e00\u81f4\u3057\u305f\u3068\u3044\u3046\u5834\u5408\u3060\uff0eResidueFunc\u3067\u306f\u30c9\u30ed\u30c3\u30d7\u9805\u3068\u3044\u3046\u306e\u3092\u898b\u3066\u3044\u308b\u304c\uff0c\u305d\u306e\u64cd\u4f5c\u304c\u6b20\u3051\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\uff1f\u3064\u307e\u308a\uff0c\u5270\u4f59\u304c\u4e00\u81f4\u3057\u305f\u3068\u3044\u3046\u3060\u3051\u3067\u306f\u4e0d\u5341\u5206\u306a\u306e\u3067\u306f\u306a\u3044\u304b\uff1f<\/p>\n<p>\u305d\u308c\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u306f\uff0cQT\u3092\u898b\u3066\uff0c\u540c\u4e00Q\u306e\u767a\u751f\u6642\u70b9\u307e\u3067\u9032\u3080\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u306b\u601d\u308f\u308c\u308b\uff0e\u21d2\u3067\u304d\u305f\u3088\u3046\u3060\uff0e\u30dd\u30a4\u30f3\u30c8\u306f\uff12\u3064\uff0e\u2460QT(0)=0\u3064\u307e\u308a\uff0c\u5546\u304c\u7acb\u305f\u306a\u3044\u5834\u5408\u306b\u306f\u5546\u304c\u7acb\u3064\u3068\u3053\u308d\u307e\u3067\u9032\u3080\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\uff0c\u2461\u7570\u306a\u308b\u5546\u304c\u7acb\u3063\u3066\u3044\u305f\u5834\u5408\u306b\u306f\uff0c\u5546\u304c\u4e00\u81f4\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u9032\u3080\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\uff0e\u3053\u308c\u3067\uff0c\u30c9\u30ed\u30c3\u30d7\u9805\u3092\u898b\u306a\u304f\u3066\u3082\u56fa\u5b9a\u90e8\u3092\u6b63\u3057\u304f\u540c\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e\u3053\u306e\u8ad6\u7406\u306f\u5270\u4f59\u6570\u5217\u306e\u65b9\u306b\u3082\u4f7f\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\uff1f\u3082\u3057\uff0c\u305d\u308c\u304c\u53ef\u80fd\u306a\u3089\u30ed\u30b9\u30bf\u30a4\u30e0\u3092\u5c11\u3057\u3067\u3082\u6e1b\u5c11\u3055\u308c\u308b\u52b9\u679c\u306f\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u3068\u3082\u304b\u304f\uff0c\u4e00\u5ea6\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304a\u3053\u3046\uff0e<\/p>\n<p><font color=\"#cccccc\">\u25b2<\/font>N=14,B=16\u306e\u3068\u304d\uff0cPrimeTest\u3067\u505c\u6b62\u3057\u305f\uff0efixed &gt; 0 And i &lt;&gt; fixed + keta\u304c\u8d77\u304d\u3066\u3044\u308b\uff0e10\u9032\u306a\u30891\/14=0.07142857142857\u2026\u3060\u304c\uff0c16\u9032\u306a\u306e\u3067\u3069\u3046\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u306e\u304b\u2026 i=\uff14\u3067fixed=6, keta=6\u306b\u306a\u3063\u3066\u3044\u308b\uff0efixed\u306e6\u3068\u3044\u3046\u306e\u306f\u660e\u3089\u304b\u306b\u8aa4\u308a\u3068\u601d\u308f\u308c\u308b\uff0e\u591a\u5206\uff0c\u3053\u308c\u306f\u6b63\u3057\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3046\uff0estr3=0.12492492492492492\u3000\u3060\u3068\u3059\u308c\u3070\uff0c\u56fa\u5b9a\u90e81\uff0c\u5faa\u74b0\u90e83\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\uff0e1+3=4=i\u3067\u8a08\u7b97\u3082\u5408\u3046\uff0e<\/p>\n<p>QT(0)=1\u3067\u6700\u521d\u304b\u3089\u5546\u306f\u7acb\u3063\u3066\u3044\u308b\uff0eQ\u306f9\u306a\u306e\u3067\uff0c\u4e0a\u304b\u3089QT\u3092\u63a2\u3057\u3066\uff0cQT(\uff13\uff09\uff1d\uff19\u3092\u691c\u51fa\u3057\uff0cfixed=3\u3068\u3057\u3066\u3044\u308b\uff0e\u3069\u3053\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u304b\uff1f\u21d2QT(0)\u304c\u975e\u30bc\u30ed\u306e\u3068\u304d\uff0cQ\u3092\u63a2\u3057\u306b\u884c\u3063\u3066\u30aa\u30fc\u30d0\u30fc\u30e9\u30f3\u3057\u3066\u3044\u308b\uff0ei \u306e\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u306f\uff0cfixed=\uff11\u3068\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u306a\u305c\u306a\u3089\uff0cIT(j) = 1 And R = RT(0)\u3067\u3042\u308b\u304b\u3089\uff0c\u521d\u9805\u304b\u3089\u5faa\u74b0\u306b\u5165\u308b\u3053\u3068\u306f\u9593\u9055\u3044\u3067\u306f\u306a\u3044\u304c\uff0c\u5faa\u74b0\u304c\u5b8c\u6210\u3059\u308b\u305f\u3081\u306b\u306fR\u3060\u3051\u3067\u306a\u304f\uff0cQ\u3082\u4e00\u81f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\uff0c\u5468\u671f\u304c\u77ed\u3044\u3068\u304d\u306b\u306f\uff0c\u521d\u9805\u3067\u767a\u751f\u3059\u308bQ\u304c\u307e\u3060\u3069\u3053\u306b\u3082\u51fa\u73fe\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308b\uff0e\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3082\uff0c\u521d\u9805\u306eR\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u521d\u9805\u306e\u6b21\u306e\u9805\u304b\u3089\u5faa\u74b0\u304c\u59cb\u307e\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u308b\u304b\u3089\u3060\uff0e<\/p>\n<p>\u3053\u308c\u3067\u307e\u305a\uff0c\u7a74\u306f\u5168\u90e8\u585e\u3052\u305f\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3046\uff0e\u691c\u7b97\u3092\u517c\u306d\u3066\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u95a2\u4fc2\u306e\u691c\u5b9a\u3092\u5c0e\u5165\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u610f\u5473\u304c\u3042\u308b\u3068\u601d\u3046\uff0e\u307e\u305a\u6700\u521d\u306b\u5192\u982d\u306b\u51fa\u3066\u304d\u305f\uff4eU\u3068\u3044\u3046\u306e\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\uff0en\u3068\u9664\u6570\uff50\u304c\u4e92\u3044\u306b\u7d20\u306e\u5834\u5408\u306b\u306f\u5faa\u74b0\u5468\u671fU\u3092\uff4e\u500d\u3057\u305f\u3082\u306e\/\uff50\uff0d\uff11\u304c\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u6570\u306b\u306a\u308b\u3068\u3044\u3046\u3082\u306e\u3060\uff0e\u3064\u307e\u308a\uff0cn\u306eb\u30d9\u30fc\u30b9\u306e\u5faa\u74b0\u7bc0\u3092U\u3068\u3059\u308b\u3068\u304d\uff0cn\u3068b\u304c\u4e92\u3044\u306b\u7d20\u3067\u3042\u308c\u3070\uff0cnU=n^(b-1)\/(b-1)\uff0e\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u95a2\u4fc2\u306e\u95a2\u6570\u3092\u96c6\u3081\u3066\u304a\u3053\u3046\uff0e\u307e\u305a\uff0c\u73fe\u884c\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306f\u4ee5\u4e0b\u304c\u3042\u308b\uff0e<\/p>\n<ol>\n<li>DivideRepunit\u3000\u2211B^i mod n \u3042\u308b\u6841\u6570\u306e\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u6570\u306e\uff4e\u3092\u6cd5\u3068\u3059\u308b\u5270\u4f59<\/li>\n<li>RepuitFunc\u3000\u2211B^i \u3042\u308b\u6841\u6570\u306e\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u6570\u3092\u6c42\u3081\u308b<\/li>\n<\/ol>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb\u30bd\u30fc\u30b9\u3092\u898b\u3066\u307f\u305f\u304c\uff0c\u3053\u308c\u3067\u3059\u3079\u3066\u3060\uff0e\u3064\u307e\u308a\uff0c\u5927\u3057\u305f\u3053\u3068\u306f\u3084\u3063\u3066\u3044\u306a\u3044\uff0eDivideRepunit \u306f\u30ec\u30d4\u30e5\u30cb\u30c3\u30c8\u6570\u304c\u6841\u6570\u3067\u5272\u308a\u5207\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u898b\u3066\u3044\u308b\u3060\u3051\u3060\uff0e\u3053\u308c\u306f\u3061\u3087\u3063\u3068\u5f8c\u56de\u3057\u306b\u3057\u3066\uff0cInvertFunc\u3068ResidueFunc\u3067\u540c\u3058\u8ad6\u7406\u304c\u4f7f\u3048\u308b\u304b\u3069\u3046\u304b\u3092\u898b\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u3088\u3046\uff0e\u307e\u305a\uff0cInvertFunc\u304b\u3089\u4e3b\u8981\u30ed\u30b8\u30c3\u30af\u3092\u5207\u308a\u51fa\u3057\u3066\u307f\u3088\u3046\uff0e\u3053\u306e\u51e6\u7406\u306e\u4e3b\u773c\u306f\uff0c\uff4e\u3068\uff42\u3092\u6307\u5b9a\u3057\u3066\u56fa\u5b9a\u6841\u3068\u5faa\u74b0\u90e8\u306e\u9577\u3055\u3092\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u3060\uff0e<\/p>\n<p><font color=\"#cccccc\">\u25b2<\/font>N=7, B=2\u306e\u3068\u304d\uff0cPowerResidueFunc\u3067 i &lt;&gt; fixed + keta \u306e\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\uff0ei=4 &lt;&gt; fixed=2+keta=3=5\uff0eN=7\u306f\uff12\u9032\u8868\u8a18\u3067\u306f111\u3060\u304c\uff0c1\/7\u306f0.00100100100\u2026\u306e\u3088\u3046\u306b\u306a\u308b\u306e\u3067\uff0cfixed=2, keta=3\u304c\u6b63\u3057\u3044\u3088\u3046\u306b\u601d\u308f\u308c\u308b\uff0e\u21d2 fixed \u2260 IT(j) \u3068\u306a\u308b\u5834\u5408\u306f\u3042\u308a\u5f97\u308b\uff0e\u4eca\u306e\u5834\u5408\u304c\u305d\u3046\u3060\uff0eQT(0)=0\u306e\u5f8c\u306b\uff10\u304c\u7d9a\u304f\u5834\u5408\u306f\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u8d77\u3053\u308b\uff0e\u21d2\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u306f\uff08\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u3066\uff09\u30d1\u30b9\u3059\u308b\u3088\u3046\u306b\u3057\u305f\uff0e<\/p>\n<p>\u25b2n=7, B=1\u306e\u3068\u304d\uff0cValueChanged\u3067\u505c\u6b62\u3057\u305f\uff0eIf QT(i) &gt; B\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3060\uff0eketa=0\u3067fixed=6\u3060\uff0eB=1\u306e\u5834\u5408\u306fQT()\u306f\uff11\u306e\u4e26\u3073\u306b\u306a\u3089\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u306f\u305a\u306a\u306e\u3060\u304c\u2026 \u21d2\u5f93\u6765\u8ad6\u7406\u3067\u306fEXITINVERTFUNC\u3067QT\u306e\u88dc\u5145\u3068\u3044\u3046\u306e\u3092\u3084\u3063\u3066\u3044\u308b\u304c\uff0c\u66ab\u5b9a\u7684\u306b\u6b62\u3081\u3066\u3042\u308b\uff0e\u307e\u305f\uff0cB=1, N=1\u306e\u5834\u5408\u306b\u306fPowerResidueFunc\u3092\u901a\u3055\u306a\u3044\u3067\u30b9\u30c8\u30ec\u30fc\u30c8\u306bEXITINVERTFUNC\u306b\u98db\u3076\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\uff0cQT\u304c\u524d\u306e\u72b6\u614b\u306e\u307e\u307e\u6b8b\u7559\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\uff0e\u21d2\u3069\u3046\u3082\uff0c\u3053\u308c\u306f\u304b\u306a\u308a\u96e3\u3057\u3044\u554f\u984c\u3060\uff0e<\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3068\u3064\u4e0d\u826f\u304c\u51fa\u3066\u3044\u308b\uff0en=7\u306e\u3068\u304d1\/n\u3067\u56fa\u5b9a\u90e8\u304c1\u3068\u306a\u3063\u3066\u3044\u308b\uff0e\u3053\u308c\u306f\u8aa4\u308a\u3060\uff0e\u56fa\u5b9a\u90e8\uff1a0\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\uff11\uff10\u9032\u6570\u8868\u8a18\u3059\u308b\u30681\/7=0.142857142857\u2026\u3067\uff0c\u5faa\u74b0\u7bc0U=142857\u3067nU = 142857*7 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zelkova-tree.net\/WordPress\/2023\/05\/26\/%e3%81%b2%e3%81%a8%e3%81%a4%e4%b8%8d%e8%89%af%e3%81%8c%e5%87%ba%e3%81%a6%e3%81%84%e3%82%8b\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3072\u3068\u3064\u4e0d\u826f\u304c\u51fa\u3066\u3044\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/posts\/14432"}],"collection":[{"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/comments?post=14432"}],"version-history":[{"count":14,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/posts\/14432\/revisions"}],"predecessor-version":[{"id":14446,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/posts\/14432\/revisions\/14446"}],"wp:attachment":[{"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/media?parent=14432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/categories?post=14432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zelkova-tree.net\/WordPress\/wp-json\/wp\/v2\/tags?post=14432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}