Question
Question: If $f_1(x) = ||x|-2|, f_n(x) = |f_{n-1}(x)-2|$ for all $n\ge2, n\in N$, and number of solutions of t...
If f1(x)=∣∣x∣−2∣,fn(x)=∣fn−1(x)−2∣ for all n≥2,n∈N, and number of solutions of the equation f2015(x)=2 is a then the value of 100a is

20.17
Solution
Let Nn be the number of solutions to the equation fn(x)=2.
The function is defined by f1(x)=∣∣x∣−2∣ and fn(x)=∣fn−1(x)−2∣ for n≥2. We want to find the number of solutions for f2015(x)=2, which is a=N2015.
Let's analyze the solutions for small values of n.
For n=1: f1(x)=2⟹∣∣x∣−2∣=2. This gives ∣x∣−2=2 or ∣x∣−2=−2. ∣x∣=4⟹x=±4 (2 solutions). ∣x∣=0⟹x=0 (1 solution). So, N1=2+1=3.
For n=2: f2(x)=2⟹∣f1(x)−2∣=2. This gives f1(x)−2=2 or f1(x)−2=−2. f1(x)=4 or f1(x)=0.
Let's find the number of solutions for f1(x)=4 and f1(x)=0. f1(x)=4⟹∣∣x∣−2∣=4. ∣x∣−2=4 or ∣x∣−2=−4. ∣x∣=6⟹x=±6 (2 solutions). ∣x∣=−2 (No solution since ∣x∣≥0). Number of solutions for f1(x)=4 is 2.
f1(x)=0⟹∣∣x∣−2∣=0. ∣x∣−2=0⟹∣x∣=2⟹x=±2 (2 solutions). Number of solutions for f1(x)=0 is 2.
The total number of solutions for f2(x)=2 is N2=(solutions for f1(x)=4)+(solutions for f1(x)=0)=2+2=4.
For n=3: f3(x)=2⟹∣f2(x)−2∣=2. This gives f2(x)−2=2 or f2(x)−2=−2. f2(x)=4 or f2(x)=0.
Let's find the number of solutions for f2(x)=4 and f2(x)=0. f2(x)=4⟹∣f1(x)−2∣=4. f1(x)−2=4 or f1(x)−2=−4. f1(x)=6 or f1(x)=−2. f1(x)=6⟹∣∣x∣−2∣=6. ∣x∣−2=6 or ∣x∣−2=−6. ∣x∣=8⟹x=±8 (2 solutions). ∣x∣=−4 (No solution). Number of solutions for f1(x)=6 is 2. f1(x)=−2⟹∣∣x∣−2∣=−2 (No solution). The number of solutions for f2(x)=4 is 2.
f2(x)=0⟹∣f1(x)−2∣=0. f1(x)−2=0⟹f1(x)=2. The number of solutions for f2(x)=0 is the same as the number of solutions for f1(x)=2, which is N1=3.
The total number of solutions for f3(x)=2 is N3=(solutions for f2(x)=4)+(solutions for f2(x)=0)=2+3=5.
Let's summarize the number of solutions for fn(x)=2: N1=3 N2=4 N3=5
It appears that Nn=n+2. Let's verify this pattern. fn(x)=2⟹∣fn−1(x)−2∣=2⟹fn−1(x)=4 or fn−1(x)=0. Nn=(solutions for fn−1(x)=4)+(solutions for fn−1(x)=0).
Let's find the number of solutions for fk(x)=c where c>2. fk(x)=c⟹∣fk−1(x)−2∣=c⟹fk−1(x)=c+2 or fk−1(x)=2−c. Since c>2, c+2>4 and 2−c<0. fk−1(x)=c+2. Since c+2>2, this equation might have solutions. fk−1(x)=2−c. Since 2−c<0 and fk−1(x)≥0, this equation has no solutions. So, the number of solutions for fk(x)=c with c>2 is the same as the number of solutions for fk−1(x)=c+2.
Consider fn(x)=c for c>2. fn(x)=c⟹fn−1(x)=c+2⟹fn−2(x)=c+4⟹...⟹f1(x)=c+2(n−1). The number of solutions for fn(x)=c (with c>2) is the same as the number of solutions for f1(x)=c+2(n−1). Since c>2, c+2(n−1)>2+2(n−1)=2n>2 for n≥1. f1(x)=c+2(n−1)⟹∣∣x∣−2∣=c+2(n−1). ∣x∣−2=c+2(n−1) or ∣x∣−2=−(c+2(n−1)). ∣x∣=c+2n or ∣x∣=2−c−2(n−1)=2−c−2n+2=4−c−2n. Since c>2, c+2n>2n>0. So ∣x∣=c+2n gives x=±(c+2n) (2 solutions). Since c>2 and n≥1, c≥2+ϵ for some ϵ>0. 4−c−2n≤4−(2+ϵ)−2=2−ϵ−2n<0 for n≥1. So ∣x∣=4−c−2n has no solutions. Thus, for any c>2, the number of solutions for fn(x)=c is always 2 for n≥1. In particular, the number of solutions for fn−1(x)=4 is 2 for n−1≥1, i.e., n≥2.
Now let's find the number of solutions for fk(x)=0. Let this be Mk. fk(x)=0⟹∣fk−1(x)−2∣=0⟹fk−1(x)−2=0⟹fk−1(x)=2. So, Mk=Nk−1 for k≥2.
Now we can write the recurrence for Nn: For n≥2, Nn=(solutions for fn−1(x)=4)+(solutions for fn−1(x)=0). Since n≥2, n−1≥1, so the number of solutions for fn−1(x)=4 is 2. Nn=2+(solutions for fn−1(x)=0)=2+Mn−1. For n≥3, Mn−1=Nn−2. So, for n≥3, Nn=2+Nn−2.
We have N1=3 and N2=4. Using the recurrence Nn=Nn−2+2 for n≥3: N3=N1+2=3+2=5. (Matches our calculation) N4=N2+2=4+2=6. N5=N3+2=5+2=7. The pattern Nn=n+2 holds for n=1,2,3,4,5.
Let's prove Nn=n+2 by induction for n≥1. Base cases: N1=3=1+2, N2=4=2+2. The formula holds for n=1,2. Assume Nk=k+2 for all 1≤k≤m, where m≥2. Consider Nm+1. Since m≥2, m+1≥3. Using the recurrence relation Nm+1=N(m+1)−2+2=Nm−1+2. By the induction hypothesis, Nm−1=(m−1)+2=m+1 since m−1≥1. So, Nm+1=(m+1)+2=m+3. The formula Nn=n+2 holds for n=m+1. By induction, Nn=n+2 for all n≥1.
We need to find the number of solutions for f2015(x)=2, which is a=N2015. Using the formula Nn=n+2, we have a=N2015=2015+2=2017.
We are asked to find the value of 100a. 100a=1002017=20.17.