DR.WANG Mathematics中文

2010 USAJMO · Question 1

Number theory · perfect square · sequences · permutations

Problem outline

For each n≥1n\ge1, count the permutations π\pi of {1,…,n}\{1,\dots,n\} for which jπ(j)j\pi(j) is a square at every position jj. What is the first nn for which this count is divisible by 20102010? Justify minimality.

Show answer and methods 1 methods

Answer

4489=6724489=67^2.

Method 1 Separate the squarefree parts

Write every positive integer jj uniquely as dt2d t^2, where dd is squarefree. The primes with odd exponents in jj are precisely those dividing dd. Thus jπ(j)j\pi(j) is a square exactly when jj and π(j)\pi(j) have the same dd.

For any given dd, its class has ⌊n/d⌋\lfloor\sqrt{n/d}\rfloor members, which may be permuted without restriction. Different classes do not affect one another. The total count is the product of the factorials of the class sizes.

The prime factorisation is 2010=2⋅3⋅5⋅672010=2\cdot3\cdot5\cdot67. If n<672n<67^2, even the largest class, d=1d=1, has at most 6666 members, so none of these factorials is divisible by 6767. At n=672n=67^2 the d=1d=1 factor is 67!67!, divisible by all four primes. This is the first possible value.

Source and attribution

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

Original question (external)