DR.WANG Mathematics中文

2024 Euclid · Question 6

Number theory · Factors and divisibility · counting · Finite sets and subsets

Problem outline

(a) How many five-digit multiples of 2121 have last digit 11? (b) A school has 500<N<600500<N<600 students. Fractions 2/52/5 and 1/41/4 of all students belong to the physics and mathematics clubs respectively. Among physics members, the number outside the mathematics club is twice the number inside it. How many students belong to neither?

Show answer and methods 2 methods

Answer

(a) 429429. (b) 261261.

Method 1 Count one residue class and use inclusion–exclusion

(a) Write the number as 21k21k. Its last digit is that of kk, and its size forces 477≤k≤4761477\le k\le4761. The admissible multipliers are 481,491,…,4761481,491,\ldots,4761. Including both endpoints gives (4761−481)/10+1=429(4761-481)/10+1=429.

(b) One third of physics members are also mathematics members, so the intersection is 2N/152N/15. This is an integer, as is the mathematics count N/4N/4. Hence NN is divisible by 1515 and 44, and the only possible NN is 540540. Inclusion–exclusion leaves 540−(216+135−72)=261540-(216+135-72)=261 students in neither club.

Method 2 Part (a) · Start with the last digit

Write the candidate as 10a+110a+1, where 1000≤a≤99991000\le a\le9999. The condition 10a+1≡0(mod21)10a+1\equiv0\pmod{21} gives a≡2(mod21)a\equiv2\pmod{21} because 10⋅2≡−1(mod21)10\cdot2\equiv-1\pmod{21} and 1010 is invertible modulo 2121.

The first and last such values are 1010=21⋅48+21010=21\cdot48+2 and 9998=21⋅476+29998=21\cdot476+2. The integer indices from 4848 to 476476 give 429429 possibilities.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)