Square $S_1$ is $1\times1.$ For $i\geq1,$ the lengths of the sides of square $S_{i+1}$ are half the lengths of the sides of square $S_i,$ two adjacent sides of square $S_i$ are perpendicular bisectors of two adjacent sides of square $S_{i+1},$ and the other two sides of square $S_{i+1}$ are the perpendicular bisectors of two adjacent sides of square $S_{i+2}.$ The total area enclosed by at least one of $S_1,$ $S_2,$ $S_3,$ $S_4,$ $S_5$ can be written in the form $\frac{m}{n},$ where $m$ and $n$ are relatively prime positive integers. Find $m-n.$
Starting at $(0,0),$ an object moves in the coordinate plane via a sequence of steps, each of length one. Each step is left, right, up, or down, all four equally likely. Let $p$ be the probability that the object reaches $(2,2)$ in six or fewer steps. Given that $p$ can be written in the form $\frac{m}{n},$ where $m$ and $n$ are relatively prime positive integers, find $m+n.$
Circles of radius $3$ and $6$ are externally tangent to each other and are internally tangent to a circle of radius $9.$ The circle of radius $9$ has a chord that is a common external tangent of the other two circles. Find the square of the length of this chord.
For certain real values of $a,$ $b,$ $c,$ and $d,$ the equation $$
x^4+ax^3+bx^2+cx+d=0
$$ has four non-real roots. The product of two of these roots is $13+i$ and the sum of the other two roots is $3+4i,$ where $i=\sqrt{-1}.$ Find $b.$
Given that $$
(1+\sin t)(1+\cos t)=\frac54
$$ and $$
\begin{aligned}(1-\sin t)&(1-\cos t)\\&=\frac mn-\sqrt k,\end{aligned}
$$ where $k,$ $m,$ and $n$ are positive integers with $m$ and $n$ relatively prime, find $k+m+n.$
Triangle $ABC$ is isosceles, with $AB=AC$ and altitude $AM=11.$ Suppose that there is a point $D$ on $\overline{AM}$ with $AD=10$ and $\angle BDC=3\angle BAC.$ Then the perimeter of $\triangle ABC$ may be written in the form $a+\sqrt b,$ where $a$ and $b$ are integers. Find $a+b.$
A right rectangular prism $P$ (i.e., a rectangular parallelepiped) has sides of integral length $a,$ $b,$ $c,$ with $a\leq b\leq c.$ A plane parallel to one of the faces of $P$ cuts $P$ into two prisms, one of which is similar to $P,$ and both of which have nonzero volume. Given that $b=1995,$ for how many ordered triples $(a,b,c)$ does such a plane exist?
Pyramid $OABCD$ has square base $ABCD,$ congruent edges $\overline{OA},$ $\overline{OB},$ $\overline{OC},$ and $\overline{OD},$ and $\angle AOB=45^\circ.$ Let $\theta$ be the measure of the dihedral angle formed by faces $OAB$ and $OBC.$ Given that $\cos\theta=m+\sqrt n,$ where $m$ and $n$ are integers, find $m+n.$
In a circle of radius $42,$ two chords of length $78$ intersect at a point whose distance from the center is $18.$ The two chords divide the interior of the circle into four regions. Two of these regions are bordered by segments of unequal lengths, and the area of either of them can be expressed uniquely in the form $m\pi-n\sqrt d,$ where $m,$ $n,$ and $d$ are positive integers and $d$ is not divisible by the square of any prime. Find $m+n+d.$
Let $p$ be the probability that, in the process of repeatedly flipping a fair coin, one will encounter a run of $5$ heads before one encounters a run of $2$ tails. Given that $p$ can be written in the form $\frac{m}{n},$ where $m$ and $n$ are relatively prime positive integers, find $m+n.$