How to calculate following expression with only integer fuctions? $$\lceil \frac{n}{log_2k} \rceil; n \geqslant 1, k \geqslant 2$$
I mean with using of only integer division, integer log with base of two and maybe other.
I am trying this formula, but it's not right for all cases:
$$(n - 1) \backslash IntLog2(k) + 1$$