I've been given of this problem: Let $r$ be an integer which has $k$ even divisors and $k-3$ odd divisors. Furthemore let $x$ denote sum of all even divisors and $y$ sum of all odd divisors. What are the all possible values of ratio $\frac{x}{y}$?
I've come to some ideas, which lie in writing $r$ as the following fraction:$$r=p_1^{\alpha_1}p_2^{\alpha_2}\ldots p_k^{\alpha_k},$$where $p_1\neq p_2\neq\ldots\neq p_k$ (symbol $p$ is denoting primes). Then for the some divisor $d$ we have $$d=p_1^{\beta_1}p_2^{\beta_2}\ldots p_k^{\beta_k},$$where $$0\le\beta_k\le\alpha_k$$ Number of all divisors of $r$ is then $$(\alpha_1+1)(\alpha_2+2)\ldots(\alpha_k+k)$$
Has any of you got any possible ideas how to solve this problem? Thanks a lot.
Ignoring the $k$, for every positive power of $2$ in the prime factorization, there is an even factor of $n$ that corresponds to an odd factor of $n$. More specifically, you can derive that $x=2y + 4y + \cdots 2^r y$, where $r$ is the power of $2$ in the prime factorization of $n$. The ratio falls out.
Now considering $k$, note that there are exactly $r$ times as many even divisors as odd divisors. Thus $k = r (k-3)$ or equivalently $k(\frac{r-1}{r}) = 3$, so $r|k$. Let $a = k/r$, so $a(r-1) = 3$. Thus either $r=2$ (and $a=3$) or $r=4$ (and $a=1$), making the ratio $x/y$ either $2+4=6$ or $2+4+8+16=30$.