Question 5
A positive integer has two thousand thirteen digits, its first digit five. Every adjacent digit pair forms a multiple of thirteen or twenty-seven. Find the sum of all distinct possible last digits.
xIMC · IMC 2013 — Keystage 3 (IWYMIC) — team