Two Joggers

1
2
3
4
5
6
7
var nbrOfLaps = function (n, i)
{
return [t = i / function r(n, t)
{
return t ? r(t, n % t) : n
}(n, i), t * n / i]
};