MathDB
2019 MOAA Team P10

Source:

January 23, 2022
number theoryteam2019

Problem Statement

Let SS be the set of all four digit palindromes (a palindrome is a number that reads the same forwards and backwards). The average value of mn|m - n| over all ordered pairs (m,n)(m, n), where mm and nn are (not necessarily distinct) elements of SS, is equal to p/qp/q , for relatively prime positive integers pp and qq. Find p+qp + q.