返回题库

AIME 2014 II · 第 7 题

AIME 2014 II — Problem 7

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let f(x)=(x2+3x+2)cos(πx)f(x)=(x^2+3x+2)^{\cos(\pi x)}. Find the sum of all positive integers nn for which

k=1nlog10f(k)=1.\left |\sum_{k=1}^n\log_{10}f(k)\right|=1.
解析

Solution 1

First, let's split it into two cases to get rid of the absolute value sign

k=1nlog10f(k)=1    k=1nlog10f(k)=1,1\left |\sum_{k=1}^n\log_{10}f(k)\right|=1 \iff \sum_{k=1}^n\log_{10}f(k)=1,-1

Now we simplify using product-sum logarithmic identites:

log10f(1)+log10f(2)+...+log10f(n)=log10f(1)f(2)...f(n)=1,1\log_{10}{f(1)}+\log_{10}{f(2)}+...+\log_{10}{f(n)}=\log_{10}{f(1)\cdot f(2) \cdot ... \cdot f(n)}=1,-1

Note that the exponent cosπ(x)\cos{\pi(x)} is either 1-1 if xx is odd or 11 if xx is even.

Writing out the first terms we have

1(2)(3)(3)(4)1(4)(5)\frac{1}{(2)(3)}(3)(4)\frac{1}{(4)(5)} \ldots

This product clearly telescopes (i.e. most terms cancel) and equals either 1010 or 110\frac{1}{10}. But the resulting term after telescoping depends on parity (odd/evenness), so we split it two cases, one where nn is odd and another where nn is even.

Case 1: Odd n\textbf{Case 1: Odd n}

For odd nn, it telescopes to 12(n+2)\frac{1}{2(n+2)} where nn is clearly 33.

Case 2: Even n\textbf{Case 2: Even n}

For even nn, it telescopes to n+22\frac{n+2}{2} where 1818 is the only possible nn value. Thus the answer is 021\boxed{021}

Solution 2

Note that cos(πx)\cos(\pi x) is 1-1 when xx is odd and 11 when xx is even. Also note that x2+3x+2=(x+1)(x+2)x^2+3x+2=(x+1)(x+2) for all xx. Therefore

log10f(x)=log10(x+1)+log10(x+2)   if x is even\log_{10}f(x)=\log_{10}(x+1)+\log_{10}(x+2)\ \ \ \text{if }x \text{ is even} log10f(x)=log10(x+1)log10(x+2)   if x is odd\log_{10}f(x)=-\log_{10}(x+1)-\log_{10}(x+2)\ \ \ \text{if }x \text{ is odd} Because of this, k=1nlog10f(k)\sum_{k=1}^n\log_{10}f(k) is a telescoping series of logs, and we have

k=1nlog10f(k)=log10(n+2)log102=log10n+22   if n is even\sum_{k=1}^n\log_{10}f(k)= \log_{10}(n+2)-\log_{10}2=\log_{10}\frac{n+2}{2}\ \ \ \text{if }n \text{ is even} k=1nlog10f(k)=log10(n+2)log102=log102(n+2)   if n is odd\sum_{k=1}^n\log_{10}f(k)= -\log_{10}(n+2)-\log_{10}2=-\log_{10}2(n+2)\ \ \ \text{if }n \text{ is odd} Setting each of the above quantities to 11 and 1-1 and solving for nn, we get possible values of n=3n=3 and n=18n=18 so our desired answer is 3+18=0213+18=\boxed{021}