produce terms of hofstadter q sequence recursively