A curious recursive function

From MaRDI portal





The function defined recursively by \(h(0)=0\), \(h(k)=k-h(h(k-1))\) is investigated. It is shown that h has the closed form solution \(h(k)=floor((\phi -1)(k+1))\) where \(\phi\) is the positive root of \(x(x- 1)=1\) (the golden mean). Its closed form solution is similar to the closed form solution of the winning strategy for a two player nim-like game that was popular in student lounges in the early seventies. The solution of the recursive equation depends on arithmetic accidents involving the rationality and irrationality of various quantities associated with a quadratic equation.











This page was built for publication: A curious recursive function

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3801375)