Problem

Source: IMO LongList, France 2, IMO 1978, Day 1, Problem 3

Tags: algebra, functional equation, Sequence, partition, IMO, IMO 1978



Let $0<f(1)<f(2)<f(3)<\ldots$ a sequence with all its terms positive$.$ The $n-th$ positive integer which doesn't belong to the sequence is $f(f(n))+1.$ Find $f(240).$