MathDB
$a_{n+1}=\frac{1}{2\lfloor a_n \rfloor -a_n+1}$

Source: Philippine Mathematical Olympiad 2024 P6

February 20, 2024
floor functionnumber theory

Problem Statement

The sequence {an}n1\{a_n\}_{n\ge 1} of real numbers is defined as follows: a_1=1,   \text{and}  a_{n+1}=\frac{1}{2\lfloor a_n \rfloor -a_n+1}   \text{for all}   n\ge 1 Find a2024a_{2024}.