Practice (EndingDigits,TheDivideByNineMethod,MODBasic)

back to index  |  new

Each piece of candy in a store costs a whole number of cents. Casper has exactly enough money to buy either 12 pieces of red candy, 14 pieces of green candy, 15 pieces of blue candy, or $n$ pieces of purple candy. A piece of purple candy costs $20$ cents. What is the smallest possible value of $n$?


The figure below shows a square and four equilateral triangles, with each triangle having a side lying on a side of the square, such that each triangle has side length $2$ and the third vertices of the triangles meet at the center of the square. The region inside the square but outside the triangles is shaded. What is the area of the shaded region?



The function $\mathcal{f}$ is defined by $$f(x) = \lfloor|x|\rfloor - |\lfloor x \rfloor|$$ for all real numbers $x$, where $\lfloor r \rfloor$ denotes the greatest integer less than or equal to the real number "$r$ . What is the range of $\mathcal{f}$?


In a given plane, points $A$ and $B$ are $10$ units apart. How many points $C$ are there in the plane such that the perimeter of $\triangle ABC$ is $50$ units and the area of $\triangle ABC$ is $100$ square units?


Two jars each contain the same number of marbles, and every marble is either blue or green. In Jar $1$ the ratio of blue to green marbles is $9:1$, and the ratio of blue to green marbles in Jar $2$ is $8:1$. There are $95$ green marbles in all. How many more blue marbles are in Jar $1$ than in Jar $2$?


What is the greatest possible sum of the digits in the base-seven representation of a positive integer less than $2019$?


What is the sum of all real numbers $x$ for which the median of the numbers $4,6,8,17,$ and $x$ is equal to the mean of those five numbers?


The base-ten representation for $19!$ is $121,6T5,100,40M,832,H00$, where $T$, $M$ and $H$ denote digits that are not given. What is $T+M+H$?


Two right triangles, $T_1$ and $T_2$, have areas of $1$ and $2$, respectively. One side length of one triangle is congruent to a different side length in the other, and another side length of the first triangle is congruent to yet another side length in the other. What is the product of the third side lengths of $T_1$ and $T_2$?


In $\triangle{ABC}$ with a right angle at $C$, point $D$ lies in the interior of $\overline{AB}$ and point $E$ lies in the interior of $\overline{BC}$ so that $AC=CD$, $DE=EB$, and the ratio $AC:DE=4:3$. What is the ratio $AD:DB$?


A red ball and a green ball are randomly and independently tossed into bins numbered with positive integers so that for each ball, the probability that it is tossed into bin $d$ is $2^{-k}$ for $k=1$, $2$, $3$, $\cdots$. What is the probability that the red ball is tossed into a higher-numbered bin than the green ball?


Henry decides one morning to do a workout, and he walks $\frac{3}{4}$ of the way from his home to his gym. The gym is $2$ kilometers away from Henry's home. At that point, he changes his mind and walks $\frac{3}{4}$ of the way from where he is back toward home. When he reaches that point, he changes his mind again and walks $\frac{3}{4}$ of the distance from there back toward the gym. If Henry keeps changing his mind when he has walked $\frac{3}{4}$ of the distance toward either the gym or home from the point where he last changed his mind, he will get very close to walking back and forth between a point $A$ kilometers from home and a point $B$ kilometers from home. What is $\mid A-B\mid$?


Let $\mathbb{S}$ be the set of all positive integer divisors of $100,000$. How many numbers are the product of two distinct elements of $\mathbb{S}$?


As shown in the figure, line segment $\overline{AD}$ is trisected by points $B$ and $C$ so that $AB=BC=CD=2$. Three semicircles of radius $1$, $\overparen{AEB}$, $\overparen{BFC}$, and $\overparen{CGD}$ have their diameters on $\overline{AD}$, and are tangent to line $EG$ at $E$, $F$, and $G$, respectively. A circle of radius $2$ has its center on $F$. The area of the region inside the circle but outside the three semicircles, shaded in the figure, can be expressed in the form $$\frac{a}{b}\cdot\pi -\sqrt{c}+d$$

where $a$, $b$, $c$, and $d$ are positive integers and $a$ and $b$ are relatively prime. What is $a+b+c+d$



Debra flips a fair coin repeatedly, keeping track of how many heads and how many tails she has seen in total, until she gets either two heads in a row or two tails in a row, at which point she stops flipping. What is the probability that she gets two heads in a row but she sees a second tail before she sees a second head?


Raashan, Sylvia, and Ted play the following game. Each starts with $\$1$. A bell rings every $15$ seconds, at which time each of the players who currently have money simultaneously chooses one of the other two players independently and at random and gives $\$1$ to that player. What is the probability that after the bell has rung $2019$ times, each player will have $\$1$? (For example, Raashan and Ted may each decide to give $\$1$ to Sylvia, and Sylvia may decide to give her her dollar to Ted, at which point Raashan will have $\$0$, Sylvia will have $\$2$ , and Ted will have $\$1$ , and that is the end of the first round of play. In the second round Rashaan has no money to give, but Sylvia and Ted might choose each other to give their $\$1$ to, and the holdings will be the same at the end of the second round.)


Points $A(6,\ 13)$ and $B(12,\ 11)$ lie on circle $\omega$ in the plane. Suppose that the tangent lines to $\omega$ at $A$ and $B$ intersect at a point on the $x$-axis. What is the area of $\omega$?


Define a sequence recursively by $x_0=5$ and $$x_{n+1}=\frac{x_n^2+5x_n+4}{x_n+6}$$

for all nonnegative integers $n$. Let $m$ be the least positive integer such that $$x_m\le 4+\frac{1}{2^{20}}$$

In which of the following intervals does $m$ lie?

$\textbf{(A) } [9,26] \qquad\textbf{(B) } [27,80] \qquad\textbf{(C) } [81,242]\qquad\textbf{(D) } [243,728] \qquad\textbf{(E) } [729,\infty]$


How many sequences of $0$s and $1$s of length $19$ are there that begin with a $0$, end with a $0$, contain no two consecutive $0$s, and contain no three consecutive $1$s?


Let $f(x)=x^2(1-x)^2$. What is the value of the sum $$f\left(\frac{1}{2019}\right)-f\left(\frac{2}{2019}\right)+f\left(\frac{3}{2019}\right)-\cdots+f\left(\frac{2017}{2019}\right)-f\left(\frac{2018}{2019}\right)$$


For how many integral values of $x$ can a triangle of positive area be formed having side lengths $\log_2x$, $\log_4x$, $3$?


The figure below is a map showing $12$ cities and $17$ roads connecting certain pairs of cities. Paula wishes to travel along exactly $13$ of those roads, starting at city $A$ and ending at city $L$, without traveling along any portion of a road more than once. (Paula is allowed to visit a city more than once.)

How many different routes can Paula take?


How many unordered pairs of edges of a given cube determine a plane?


Right triangle $ACD$ with right angle at $C$ is constructed outwards on the hypotenuse $\overline{AC}$ of isosceles right triangle $ABC$ with leg length $1$, as shown, so that the two triangles have equal perimeters. What is $\sin(2\angle{BAD})$?


Let $\mathbb{S}$ be the set of all positive integer divisors of $100,000$. How many numbers are the product of two distinct elements of $\mathbb{S}$?