0
$\begingroup$

$o_n = 2n + 1$

$e_n = (2n)^2$

$r_i = \mathop{\min} \{ n \mid e_n \ge i\}$

$a_n = n + e_n$

$q_i = \left\lfloor \frac{i - a_{r_i}}{o_{r_i}} \right\rfloor \mod 4$

Is there another way to write $q_i$ without having to compute an $\min$?

$\endgroup$
0

1 Answer 1

0
$\begingroup$

$r_i$ can be rewritten as $r_i = \left\lceil \frac {\sqrt i} 2 \right\rceil$

This removes the need to compute the minimum.

$\endgroup$
1
  • $\begingroup$ Answered my own question now that I have the answer for it. Can't accept it until tomorrow, though. $\endgroup$
    – Axoren
    Feb 25, 2016 at 22:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .