Open-access mathematical research insights
About Contact
Home / Erdos Problems / Problem #422

Problem #422: Let $f(1)=f(2)=1$ and for $n>2$\[f(n) =...

Let $f(1)=f(2)=1$ and for $n>2$\[f(n) = f(n-f(n-1))+f(n-f(n-2)).\]Does $f(n)$ miss infinitely many integers? What is its behaviour?

Problem Statement

Let $f(1)=f(2)=1$ and for $n>2$\[f(n) = f(n-f(n-1))+f(n-f(n-2)).\]Does $f(n)$ miss infinitely many integers? What is its behaviour?
Categories: Number Theory

Progress

Asked by Hofstadter. The sequence begins $1,1,2,3,3,4,\ldots$ and is A005185 in the OEIS. It is not even known whether $f(n)$ is well-defined for all $n$.

Source: erdosproblems.com/422 | Last verified: January 15, 2026

Stay Updated

Get weekly digests of new research insights delivered to your inbox.