Hofstadter sequence test