Let (ak)k=0∞ be a sequence of real numbers such that if k is a non-negative integer, then
ak+1=3ak−⌊2ak⌋−⌊ak⌋.
Definitely all positive integers n such that if a0=1/n, then this sequence is constant after a certain term. Sequencealgebrarecurrence relationfloor function