2013-digit numbers wanted. sum of pairwise product of digits = 1 mod 4
Source: 2013 Argentina OMA Finals L3 p3
January 15, 2023
Digitsnumber theoryremainder
Problem Statement
Find how many are the numbers of 2013 digits d1d2…d2013 with odd digits d1,d2,…,d2013 such that the sum of 1809 terms d1⋅d2+d2⋅d3+…+d1809⋅d1810 has remainder 1 when divided by 4 and the sum of 203 terms d1810⋅d1811+d1811⋅d1812+…+d2012⋅d2013 has remainder 1 when dividing by 4.