返回题库

AIME 2015 II · 第 10 题

AIME 2015 II — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Call a permutation a1,a2,,ana_1, a_2, \ldots, a_n of the integers 1,2,,n1, 2, \ldots, n quasi-increasing if akak+1+2a_k \leq a_{k+1} + 2 for each 1kn11 \leq k \leq n-1. For example, 53421 and 14253 are quasi-increasing permutations of the integers 1,2,3,4,51, 2, 3, 4, 5, but 45123 is not. Find the number of quasi-increasing permutations of the integers 1,2,,71, 2, \ldots, 7.

解析

Solution

The simple recurrence can be found.

When inserting an integer nn into a string with n1n - 1 integers, we notice that the integer nn has 3 spots where it can go: before n1n - 1, before n2n - 2, and at the very end.

Ex. Inserting 4 into the string 123: 4 can go before the 2 (1423), before the 3 (1243), and at the very end (1234).

Only the addition of the next number, nn, will change anything.

Thus the number of permutations with nn elements is three times the number of permutations with n1n-1 elements.

Start with n=3n=3 since all 66 permutations work. And go up: 18,54,162,48618, 54, 162, 486.

Thus for n=7n=7 there are 235=4862*3^5=\boxed{486} permutations.

When you are faced with a brain-fazing equation and combinatorics is part of the problem, use recursion! This same idea appeared on another AIME with an 8-box problem.