MathDB
permutation of [9] subject to constraint (2001 Moldova MO Grade 7 P4)

Source:

April 12, 2021
combinatorics

Problem Statement

Find all permutations of the numbers 1,2,,91,2,\ldots,9 in which no two adjacent numbers have a sum divisible by 77 or 1313.