返回题库

PUMaC 2009 · 组合(A 组) · 第 1 题

PUMaC 2009 — Combinatorics (Division A) — Problem 1

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

题目详情

求集合 {1,2,…,7}\{1,2,\ldots,7\} 中不包含两个连续整数的子集个数。

英文原题

  1. Find the number of subets of { 1,2,...,7 } that do not contain two consecutive integers.
解析

英文解析

  1. Find the number of subets of { 1,2,...,7 } that do not contain two consecutive numbers.
    Solution. 34. Let ana_{n} be the number of subsets of { 1,2,..., n } that don’t contain consecutive
    numbers. If a subset contains n, then it doesn’t contain n − 1, and then it can be anything
    counted by an−2a_{n-2}. If it doesn’t contain n, then it is something counted by an−1a_{n-1}, and it is clear
    that anything counted by ana_{n} arises from precisely one thing counted by an−1a_{n-1} or an−2a_{n-2}, so we
    get an=an−1+an−2a_{n}=a_{n-1}+a_{n-2}. It is easy to check a1=2a_{1}=2 and a2=3a_{2}=3, and then it is a quick jaunt to
    a7=3a_{7}=34.