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
56
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
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
First, design no harm
axbom
PRO
2
1.3k
Navigating Weather and Climate Data
rabernat
0
540
The Limits of Empathy - UXLibs8
cassininazir
1
690
Music & Morning Musume
bryan
48
7.4k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
450
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Believing is Seeing
oripsolob
1
230
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
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