返回题库

PUMaC 2007 · 组合(A 组) · 第 4 题

PUMaC 2007 — Combinatorics (Division A) — Problem 4

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

{1,2,…,10}\{1,2,\ldots,10\} 中有多少个子集不含相邻整数?

英文原题

How many subsets of {1,2,…,10}\{1,2,\ldots,10\} contain no two consecutive integers?

解析

设 f(n)f(n) 为 {1,…,n}\{1,\ldots,n\} 中不含相邻整数的子集数。若不选 nn,有 f(n−1)f(n-1) 种;若选 nn,则不能选 n−1n-1,有 f(n−2)f(n-2) 种。因此

f(n)=f(n−1)+f(n−2),f(0)=1,f(1)=2.f(n)=f(n-1)+f(n-2),\qquad f(0)=1,\quad f(1)=2.

所以

f(10)=F12=144.f(10)=F_{12}=\boxed{144}.

英文解析

Let f(n)f(n) be the number of subsets of {1,…,n}\{1,\ldots,n\} with no consecutive integers. If nn is not chosen, there are f(n−1)f(n-1) choices. If nn is chosen, then n−1n-1 is not chosen, leaving f(n−2)f(n-2) choices. Thus

f(n)=f(n−1)+f(n−2),f(0)=1,f(1)=2.f(n)=f(n-1)+f(n-2),\qquad f(0)=1,\quad f(1)=2.

So

f(10)=F12=144.f(10)=F_{12}=\boxed{144}.