Positivity problem of three-term recurrence sequences