Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
vket summer 2026 LT
Search
seekworser
July 21, 2026
57
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
vket summer 2026 LT
seekworser
July 21, 2026
More Decks by seekworser
See All by seekworser
yukicoder 446 editorial
seekworser
0
260
競技プログラミングとマトロイド
seekworser
1
2.2k
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
840
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
310
Building AI with AI
inesmontani
PRO
1
1.3k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.8k
Utilizing Notion as your number one productivity tool
mfonobong
4
610
Building an army of robots
kneath
307
47k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
250
The SEO Collaboration Effect
kristinabergwall1
1
580
Embracing the Ebb and Flow
colly
88
5.2k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
KATA
mclloyd
PRO
35
16k
Transcript
Lightning Talk FPS で殴る二項係数の畳み込み ぷせうど (seekworser) 2026-07-22
プロフィール ぷせうど (seekworser) • AtCoder 黄色! 2269 • 競プロとお写真 •
数え上げと性質を丁寧に眺める問題 が好き 2
ちょっとめんどくさい 二項係数の 総和 求めたいとき、 ありますよね? 3
めんどくさい二項係数の総和 𝑛 ∑ 𝑘( ) 𝑘 𝑘 4
めんどくさい二項係数の総和 𝑛 ∑ 𝑘( ) 𝑘 𝑘 5
めんどくさい二項係数の総和 𝑛 𝑛−1 ∑ 𝑘( ) = ∑ 𝑛( 𝑘−1
) 𝑘 一段下げる 𝑘 𝑘 6
めんどくさい二項係数の総和 𝑛 𝑛−1 ∑ 𝑘( ) = 𝑛 ∑( )
𝑘 𝑘−1 外に出す 𝑘 𝑘 7
めんどくさい二項係数の総和 𝑛 ∑ 𝑘( ) = 𝑛 2𝑛−1 𝑘 二項定理
𝑘 8
めんどくさい二項係数の総和 𝑛 ∑𝑘 ( ) 𝑘 𝑘 2 9
めんどくさい二項係数の総和 𝑛 ∑ 𝑘2 ( ) 𝑘 𝑘 𝑛 =
∑ (𝑘(𝑘 − 1) + 𝑘) ( ) 𝑘 分解 𝑘 10
めんどくさい二項係数の総和 𝑛 ∑ 𝑘2 ( ) 𝑘 𝑘 𝑛−2 =
∑( 𝑛(𝑛 − 1)( 𝑘−2 ) 2 段落とす 𝑘 𝑛−1 + 𝑛( )) 𝑘−1 11
めんどくさい二項係数の総和 𝑛 ∑ 𝑘 ( ) = 𝑛(𝑛 − 1)2𝑛−2
+ 𝑛2𝑛−1 𝑘 二項定理 𝑘 2 12
めんどくさい二項係数の総和 𝑛 ・・。 ∑𝑘 ( ) ・ 𝑘 𝑘 3
13
FPS(形式的べき級数) 𝑎0 , 𝑎1 , 𝑎2 , … ↕ 𝑎0
+ 𝑎1 𝑥 + 𝑎2 𝑥2 + … 14
FPS(形式的べき級数) 𝑝 𝑞 ∑( )( ) 𝑘 𝑐−𝑘 𝑘 15
FPS(形式的べき級数) 𝑝 𝑞 ∑( )( ) = ∑𝑘 [𝑥𝑘 ](1
+ 𝑥)𝑝 [𝑥𝑐−𝑘 ](1 + 𝑥)𝑞 𝑘 𝑐−𝑘 二項係数を FPS で表現 𝑘 16
FPS(形式的べき級数) 𝑝 𝑞 ∑( )( ) = [𝑥𝑐 ](1 +
𝑥)𝑝 (1 + 𝑥)𝑞 𝑘 𝑐−𝑘 積の係数 𝑘 17
FPS(形式的べき級数) 𝑝 𝑞 ∑( )( ) = [𝑥𝑐 ] (1
+ 𝑥)𝑝+𝑞 𝑘 𝑐−𝑘 まとめる 𝑘 18
FPS(形式的べき級数) 𝑝 𝑞 𝑝+𝑞 ∑( )( )= ( 𝑐 )
𝑘 𝑐−𝑘 係数を見る 𝑘 19
FPS: 𝑘 を作用素にする 𝑑 𝐷=𝑥 𝑑𝑥 𝐷𝑥𝑘 = 𝑘𝑥𝑘 𝑘
が出る 20
FPS: 𝑘 を作用素にする 𝑛 ∑ 𝑘 ( ) = (𝐷3
(1 + 𝑥)𝑛 ) |𝑥=1 𝑘 𝑘 を 𝐷 にする 𝑘 3 3 3 アドホックな式変形を微分作用素として 機械的に処理できる! 21
ABC290F Maximum Diameter (diff 2300) 𝑛 𝑛−3 ∑(𝑘 + 1)(
)( ) 𝑘 𝑛−2−𝑘 𝑘 22
ABC290F Maximum Diameter (diff 2300) 𝑛 𝑛−3 ∑(𝑘 + 1)(
)( ) 𝑘 𝑛−2−𝑘 𝑘 = [𝑥𝑛−2 ](𝐷 + 1)(1 + 𝑥)𝑛 (1 + 𝑥)𝑛−3 係数抽出 23
ABC290F Maximum Diameter (diff 2300) 𝑛 𝑛−3 ∑(𝑘 + 1)(
)( ) 𝑘 𝑛 − 2 − 𝑘 𝑘 𝑛−1 = [𝑥𝑛−2 ] (𝑛𝑥(1 + 𝑥) = [𝑥 𝑛−2 + (1 + 𝑥)𝑛 ) (1 + 𝑥)𝑛−3 作用させる 2𝑛−4 ](𝑛𝑥(1 + 𝑥) + (1 + 𝑥)2𝑛−3 ) 24
ABC290F Maximum Diameter (diff 2300) 𝑛 𝑛−3 ∑(𝑘 + 1)(
)( ) 𝑘 𝑛−2−𝑘 𝑘 2𝑛−4 2𝑛−3 = 𝑛( 𝑛−3 ) + ( 𝑛−2 ) 係数を見る 25
まとめ • 数式を多項式と紐づけて考えると嬉しい! 𝑑 • 𝑘 倍は 𝐷 = 𝑥
𝑑𝑥 • 手で分解する代わりに FPS に作用させることで アドホックな式変形を回避できる 26