functional difference equation