{"author_name":"atcoder","height":"190","type":"rich","width":"100%","url":"https://info.atcoder.jp/entry/algorithm_lectures/linearly_recurrent_sequence_reconstruction","blog_title":"AtCoderInfo","published":"2026-06-19 10:16:16","categories":["\u591a\u9805\u5f0f\u30fb\u5f62\u5f0f\u7684\u3079\u304d\u7d1a\u6570","\u7dda\u5f62\u4ee3\u6570","\u7dda\u5f62\u6f38\u5316\u7684\u6570\u5217","C-recursive","\u884c\u5217\u7d2f\u4e57","Berlekamp\u2013Massey \u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","Euclid \u306e\u4e92\u9664\u6cd5","Half-GCD"],"description":"1. \u6982\u8981 \u672c\u8b1b\u5ea7\u3067\u306f\uff0c\u6570\u5217\u304b\u3089\u5b9a\u6570\u4fc2\u6570\u7dda\u5f62\u6f38\u5316\u5f0f\u3092\u5fa9\u5143\u3059\u308b\u554f\u984c\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\uff0e \u4f8b\u3048\u3070\uff0cFibonacci \u6570\u5217\u306e\u5148\u982d\u9805 $$ S=(0,1,1,2,3,5,8,13) $$ \u3092\u5165\u529b\u3068\u3057\u3066\uff0c\u3053\u306e\u6570\u5217\u304c\u6e80\u305f\u3059\u6f38\u5316\u5f0f $$ S _ i = S _ {i-1} + S _ {i-2} $$ \u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306a\u554f\u984c\u3092\u8003\u3048\u307e\u3059\uff0e\u3088\u308a\u6b63\u78ba\u306b\u306f\uff0c\u6709\u9650\u6570\u5217\u304c\u4e0e\u3048\u3089\u308c\u305f\u3068\u304d\uff0c\u305d\u306e\u5217\u3068\u77db\u76fe\u3057\u306a\u3044\u5b9a\u6570\u4fc2\u6570\u7dda\u5f62\u6f38\u5316\u5f0f\u306e\u3046\u3061\uff0c\u4f4d\u6570\u304c\u6700\u5c0f\u306e\u3082\u306e\u3092\u6c42\u3081\u308b\u554f\u984c\u3092\u6271\u3044\u307e\u3059\uff0e\u3053\u306e\u554f\u984c\u3092\uff0c\u672c\u8b1b\u5ea7\u3067\u306f\u5fa9\u5143\u554f\u984c\u3068\u547c\u3073\u307e\u3059\uff0e \u5fa9\u5143\u554f\u984c\u3092\u89e3\u304f\u4ee3\u8868\u7684\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c Berlekamp\u2013Massey \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\uff0eBerlekamp\u2026","blog_url":"https://info.atcoder.jp/","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/atcoder/20260619/20260619101617.png","title":"\u7dda\u5f62\u6f38\u5316\u5f0f\u306e\u5fa9\u5143","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/atcoder/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfo.atcoder.jp%2Fentry%2Falgorithm_lectures%2Flinearly_recurrent_sequence_reconstruction\" title=\"\u7dda\u5f62\u6f38\u5316\u5f0f\u306e\u5fa9\u5143 - AtCoderInfo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}