Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2024 / Problems / Day 1, P3

IMC 2024 · Day 1 · P3

medium

For which positive integers nn does there exist an n×nn \times n matrix AA whose entries are all in {0,1}\{0, 1\}, such that A2A^2 is the matrix of all ones?

(proposed by Alex Avdiushenko, Neapolis University Paphos, Cyprus)

Solution (official)

Hint: Let JJ be the n×nn \times n matrix with all ones. Consider A3=AJ=JAA^3 = AJ = JA.

Answer: Such a matrix AA exists if and only if nn is a complete square.

Let JnJ_n be the n×nn \times n matrix with all ones, so A2=JnA^2 = J_n. Consider the equality A3=AJn=JnA.A^3 = A J_n = J_n A. In the matrix AJnA J_n, all columns are equal to the sum of colums in AA, that is, the (i,j)(i,j)th entry in AJnA J_n is the number of ones in the iith row of AA. Similarly, the (i,j)(i,j)th entry in JnAJ_n A is the number of ones in the jjth column of AA. These numbers must be equal, so AA contains the same number of ones in every row and every column. Let this common number be kk; then AJn=JnA=kJnA J_n = J_n A = k J_n.

Now from nJn=Jn2=(A2)2=A(AJn)=A(kJn)=k(AJn)=k2Jnn J_n = J_n^2 = (A^2)^2 = A (A J_n) = A (k J_n) = k (A J_n) = k^2 J_n we can read n=k2n = k^2, so nn must be a complete square.

It remains to show an example for a matrix AA of order n=k2n = k^2. For l=0,1,,k1l = 0, 1, \dots, k-1, let BlB_l be the k×kk \times k matrix whose (i,j)(i,j)th entry is 1 if jil(modk)j - i \equiv l \pmod k and 0 otherwise, i.e., BlB_l can be obtained from the identity matrix by cyclically shifting the colums ll times, and let A=(B0B1B2Bk1B0B1B2Bk1B0B1B2Bk1);A = \begin{pmatrix} B_0 & B_1 & B_2 & \dots & B_{k-1} \\ B_0 & B_1 & B_2 & \dots & B_{k-1} \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ B_0 & B_1 & B_2 & \dots & B_{k-1} \end{pmatrix}; The (i,j)(i,j)th block in A2A^2 is (B0B1Bk1)(Bj1Bj1)=(B0+B1++Bk1)Bj1=JkBj1=Jk,\begin{pmatrix} B_0 & B_1 & \dots & B_{k-1} \end{pmatrix} \begin{pmatrix} B_{j-1} \\ \vdots \\ B_{j-1} \end{pmatrix} = (B_0 + B_1 + \dots + B_{k-1}) B_{j-1} = J_k B_{j-1} = J_k, so this matrix indeed satisfies A2=Jk2A^2 = J_{k^2}.

How the field did

contestants scored
397
average (of 10)
5.29
solved (≥ 80%)
40.1%
near-0 (≤ 10%)
30.5%
discrimination
0.55

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2010 · Day 2 · P9killeravg 0.5/10 · solved 2% · near-0 93% · disc 0.42
IMC 2004 · Day 2 · P12killeravg 0.2/10 · solved 1% · near-0 97% · disc 0.13
IMC 2021 · Day 2 · P8killeravg 0.0/10 · solved 0% · near-0 99% · disc 0.08