Subcontests
(2)collinear
Let O be the circumcircle of the triangle ABC. Two circles O1,O2 are tangent to each of the circle O and the rays AB,AC, with O1 interior to O, O2 exterior to O. The common tangent of O,O1 and the common tangent of O,O2 intersect at the point X. Let M be the midpoint of the arc BC (not containing the point A) on the circle O, and the segment AA′ be the diameter of O. Prove that X,M, and A′ are collinear. 2015 Taiwan TST Round 3 Quiz 2 Problem 2
Consider the permutation of 1,2,...,n, which we denote as {a1,a2,...,an}. Let f(n) be the number of these permutations satisfying the following conditions:
(1)a1=1
(2)∣ai−ai−1∣≤2,i=1,2,...,n−1
what is the residue when we divide f(2015) by 4 ?