DR.WANG Mathematics中文

BMO1 · 2024/25 · 2024-11-20 · Question 2

Algebra · permutations

Problem outline

Arrange the cards 1,…,n1,\ldots,n in advance. Starting with any integer xx, each card of value cc replaces the current number ss by c−sc-s. Determine which positive integers nn allow an order whose final number always equals −x-x.

Show answer and methods 1 methods

Answer

Exactly n≡3(mod4)n\equiv3\pmod4.

Method 1 Track the sign and extend by four cards

After nn cards the coefficient of xx is (−1)n(-1)^n, and the constant is a signed sum of the cards. Hence nn must be odd and the positive and negative groups must have the same sum. In particular the total n(n+1)/2n(n+1)/2 is even. For odd nn this forces n≡3(mod4)n\equiv3\pmod4.

For three cards, use the order 1,3,21,3,2, which sends xx to −x-x. Given a valid order of length nn, append n+1,n+2,n+4,n+3n+1,n+2,n+4,n+3 in this order.

The four additional steps leave every incoming value unchanged: the added constant is −(n+1)+(n+2)−(n+4)+(n+3)=0-(n+1)+(n+2)-(n+4)+(n+3)=0 and the sign is positive again. This constructs an order for every n≡3(mod4)n\equiv3\pmod4.

Source and attribution

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

Original question (external)