MathDB
Permutations [2011.II.14]

Source:

March 31, 2011
AIME2011 AIME II

Problem Statement

There are NN permutations (a1,a2,,a30)(a_1,a_2,\dots,a_{30}) of 1,2,,301,2,\dots,30 such that for m{2,3,5}m\in\{2,3,5\}, mm divides an+mana_{n+m}-a_n for all integers nn with 1n<n+m301\leq n <n+m\leq 30. Find the remainder when NN is divided by 1000.