返回题库

PUMaC 2007 · 组合(B 组) · 第 9 题

PUMaC 2007 — Combinatorics (Division B) — Problem 9

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

题目详情

集合 {1,2,…,10}\{1,2,\ldots,10\} 有多少个子集不包含两个连续整数?

英文原题

  1. How many subsets of { 1, 2,..., 10 } are there that don’t contain 2 consecutive integers?
解析

设 AnA_n 为 {1,2,…,n}\{1,2,\ldots,n\} 中不含相邻整数的子集个数。

若不选 nn,有 An−1A_{n-1} 种;若选 nn,则不能选 n−1n-1,有 An−2A_{n-2} 种。因此

An=An−1+An−2.A_n=A_{n-1}+A_{n-2}.

初值为

A1=2,A2=3.A_1=2, \qquad A_2=3.

于是

A10=144.A_{10}=144.

所以满足条件的子集个数为

144.\boxed{144}.

英文解析

Let AnA_n be the number of subsets of {1,2,…,n}\{1,2,\ldots,n\} with no two consecutive integers.

Either nn is not chosen, giving An−1A_{n-1} choices, or nn is chosen, in which case n−1n-1 cannot be chosen, giving An−2A_{n-2} choices. Therefore

An=An−1+An−2.A_n=A_{n-1}+A_{n-2}.

The initial values are

A1=2,A2=3.A_1=2, \qquad A_2=3.

Thus

A10=144.A_{10}=144.

So the number of such subsets is

144.\boxed{144}.