<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atcoder</author_name>
  <author_url>https://blog.hatena.ne.jp/atcoder/</author_url>
  <blog_title>AtCoderInfo</blog_title>
  <blog_url>https://info.atcoder.jp/</blog_url>
  <categories>
    <anon>数え上げ</anon>
    <anon>Cycle Lemma</anon>
    <anon>Catalan 数</anon>
    <anon>括弧列</anon>
    <anon>Narayana 数</anon>
  </categories>
  <description>解説動画はこちらです． 1. 概要 本記事では，数え上げに関する Cycle Lemma と呼ばれる定理を紹介します． これはある種の整数列について，列の巡回シフトのうち，累積和が常に正になるものの個数を決定するもので，主張も証明も易しいです．本記事では Cycle Lemma を証明し，そこから多くの有名な数え上げ公式が導出されることを確認します． 2. 前提知識 二項係数の理解を仮定します． 3. Cycle Lemma 3.1. 主張 【定義 1】（累積和） 整数列 $A=(A_0,A_1,\ldots,A_{N-1})$ に対して，その累積和（prefix sum）$S=(S_0,S_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfo.atcoder.jp%2Fentry%2Falgorithm_lectures%2Fcycle_lemma&quot; title=&quot;Cycle Lemma - AtCoderInfo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/158934417/1702097020779738</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-10 14:16:53</published>
  <title>Cycle Lemma</title>
  <type>rich</type>
  <url>https://info.atcoder.jp/entry/algorithm_lectures/cycle_lemma</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
