A binary matrix is a matrix consisting entirely of $0$s and $1$s. Consider the following transformations that can be performed on a binary matrix: Swap any two...
$G(N)=\sum_{j=1}^N\sum_{i=1}^j \gcd(i,j)$. You are given: $G(10)=122$. Find $G(10^{11})$. Give your answer modulo $998244353$. The computation of G(10^11) would be extremely cumbersome to compute directly, it would involve...
An unbiased coin is tossed repeatedly until two consecutive heads are obtained. Suppose these occur on the $(M-1)$th and $M$th toss. Let $P(n)$ be the probability that...
The lambda-calculus is a universal model of computation at the core of functional programming languages. It is based on lambda-terms, a minimal programming language featuring only function...
Gauss famously proved that every positive integer can be expressed as the sum of three triangular numbers (including $0$ as the lowest triangular number). In fact most...
A circle $C$ of circumference $c$ centimetres has a smaller circle $S$ of circumference $s$ centimetres lying off-centre within it. Four other distinct circles, which we call...