Look for a pattern, or use modular arithmetic.
Back to Problems Page
Mike Dawes