Let $d(n)$ denote the number of positive divisors of $n$. For positive integer $n$ we define $f(n)$ as $$f(n) = d\left(k_1\right) + d\left(k_2\right)+ \cdots + d\left(k_m\right),$$where $1 = k_1 < k_2 < \cdots < k_m = n$ are all divisors of the number $n$. We call an integer $n > 1$ almost perfect if $f(n) = n$. Find all almost perfect numbers. Paulius Ašvydis
Problem
Source: European Mathematical Cup, 2015, Junior, P3
Tags: number theory, divisor
30.12.2016 14:07
How many terms are in that summation? EDIT: was just pointing out a typo, I think it has been corrected
30.12.2016 14:54
hmmm, this is really similar to a past IMO problem
30.12.2016 15:42
We can find $f(n)$ without using any $f(n)$ and $d(n)$ properties. We will count how many times divisor of $n$ will be counted in $f(n)$ Let $n = \prod_{i=1}^{k}p_{i}^{e_{i}},q = \prod_{i=1}^{k}p_{i}^{r_{i}},r_i \leq e_i$ Then numbers of divisors of $n$, that also are divided by $q$ is $(e_1-r_1+1)(e_2-r_2+1)...(e_k-r_k+1)$ $f(n)=\sum_{r_1=0}^{e_1}\sum_{r_2=0}^{e_2}...\sum_{r_k=0}^{e_k} (e_1-r_1+1)(e_2-r_2+1)...(e_k-r_k+1)=\sum_{t_1=1}^{e_1+1}\sum_{t_2=1}^{e_2+1}...\sum_{t_k=1}^{e_k+1} (t_1t_2...t_k) = \prod_{i=1}^{k} \frac{(e_i+1)(e_i+2)}{2} $