6

How many lines of three adjacent cells can be chosen from this grid, horizontally, vertically or diagonally, such that the sum oft he numbers in the three cells is a multiple of three?

A. 30

B. 24

C. 18

D. 12

E. 6

Answer

B. 24

SOLUTIOn

Suppose first that in a line of three numbers, adjacent numbers have the same difference. Let n be the first of these numbers, and d be the common difference. Then these numbers are n, n + d and n + 2d. The sum of these numbers is 3n+ 3d and therefore is a multiple of 3.


Adjacent numbers in each row have a common difference 1. Therefore, the sum of the numbers in three adjacent cells in the same row is always a multiple of 3.
There are two lines of three adjacent cells in each row, for example 1,2,3 and 2,3,4 in the top row.


Therefore, in the 4 rows there are 4 × 2 = 8 lines of three adjacent cells such that the sum of the numbers in these cells is a multiple of 3.
Adjacent numbers in each column differ by 4. Hence, it follows similarly, that there are 8 lines of three adjacent cells in the same column such that the sum of the numbers in these cells is a multiple of 3.


We now consider the diagonals from top left to bottom right. Adjacent numbers in these diagonals each column differ by 5. Therefore the sum of numbers in three adjacent cells in the same diagonal is always a multiple of 3.


One of these diagonals contains 4 numbers. There are 2 lines of three adjacent cells in this diagonal whose sum is a multiple of 3. There are 2 of these diagonals containing three numbers. Therefore, altogether, there are 4 lines of three adjacent numbers on theses diagonals whose sum is a multiple of 3.

Similarly, on the diagonals from top right to bottom left adjacent numbers have a common difference 3, and therefore there are 4 lines of three adjacent numbers on these diagonals whose sum is a multiple of 3.
Hence, in total, there are 8 +8 + 4 + 4 = 24 lines of three adjacent cells whose sum is a multiple of 3.

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.