Dave is doing his homework on the balcony and, preparing a presentation about Pythagorean triangles, has just cut out a triangle with side lengths 30cm, 40cm and...
Let’s call two numbers friend numbers if their representation in base $10$ has at least one common digit. E.g. $1123$ and $3981$ are friend numbers. Let $f(n)$...
Peter moves in a hallway with $N + 1$ doors consecutively numbered from $0$ through $N$. All doors are initially closed. Peter starts in front of door...
For every $n \ge 1$ the prime-counting function $\pi(n)$ is equal to the number of primes not exceeding $n$. E.g. $\pi(6)=3$ and $\pi(100)=25$. We say that a...
Let $D(m,n)=\displaystyle\sum_{d\mid m}\sum_{k=1}^n\sigma_0(kd)$ where $d$ runs through all divisors of $m$ and $\sigma_0(n)$ is the number of divisors of $n$. You are given $D(3!,10^2)=3398$ and $D(4!,10^6)=268882292$. Find...
Consider an $n$-player game played in consecutive pairs: Round $1$ takes place between players $1$ and $2$, round $2$ takes place between players $2$ and $3$, and...