17

Ireena is extending a sequence of numbers with the following rule. The next term in the sequence is the smallest non-negative integer that is different from each of the four preceding terms. She then repeats this process over and over again. For instance, if Ireena was to start with the sequence 7, 3, 1, 8 then the fifth and sixth terms of the sequence would be 0 and 2 respectively. Ireena starts with the sequence 2, 0, 2, 3. What is the 2023rd number in this sequence?

A 0 B 1 C 2 D 3 E 4

Answer

C

SOLUTIOn

We easily find successive numbers: 2, 0, 2, 3, 1, 4, 0, 2, 3, 1, 4, 0, 2, 3, 1, 4, . . . . We note that, after the first term, the sequence consists of a cycle of 5 numbers (0, 2, 3, 1, 4) that then repeats. The number we seek is the 2023rd term in the original sequence which is the 2022nd number in the repetition of the cycle. This will be the same as the second number in the cycle, namely 2.

Subscribe to receive updates!

Be up-to-date with our recent updates, new problems and answers!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Our courses

Get ready for olympiads with free problems, extracurricular topics and our courses

Mathematics

Programming

Where do you hold your classes?
We hold our classes online or on-site on Saturdays at our branch in Pimlico Academy, London.
You can find our timetable here.
What do you need to start learning online?
For lessons you only need a computer or phone with a microphone, camera and Internet access. Wherever you are - in London, Nottingham, New York or Bali - online lessons will be at hand.
When can I take the introductory lesson?
You can get acquainted with the school at any time convenient for you. To do this, just leave a request and sign up for a lesson.
I can't attend class, what should I do?
It is OK, it happens! Students have the opportunity to cancel a lesson up to 8 hours before the scheduled time without loss of payment. So you can reschedule it for a convenient time, and the teacher will have the opportunity to
I don't have much free time, will I have time to study?
Learning can take place at your own pace. We will select a convenient schedule and at any time we will help you change the schedule, take a break or adjust the program.
How long is one lesson?
All classes last 1 hour.
Hear from some of our amazing students who already achieved incredible results with us!
"Olympiad Maths Lessons helped me a lot to get the Gold medal in Junior Maths Challenge"
St. Paul's Student
"Thanks to the 'Data Science' and 'Coding in Python' lessons I got accepted to my dream university."
Michael
Data Science Student
Warwick University
"Great courses, which thoroughly explained topics beyond the capability of the GCSE answer sheet. Thanks so much."
Ivan
GCSE Student in Dubai
"Financial Mathematics! Best course to understand Python and Mathematics behind Finance!"
Gleb
VC Investor
"We got silver in PMC! Thanks George!"
Mum of St. Paul's Student
Prepare for the Primary Maths Challenge
"My daughter took a batch of 10 classes with George to understand Python with Turtle. I found George extremely knowledgeable and accessible."
Dad of Latymer School Student
Python with Turtle

Contact us

Phone

Mon-Sun from 8am to 9pm
+44 77 07 547 144

Office

Come say hello at our office HQ.
84 Eccleston Square, Pimlico, London SW1V 1NP, UK

...or ask us anything

Smaller 3D model of a student sitting at his desk and preparing for competitions, exams and olympiads.

Ask about our courses and offerings, and we will help you choose what works best for you.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.