Using generalized Fibonacci sequences for solving the one-dimensional LQR problem and its discrete-time Riccati equation