Waste less time on Facebook — follow Brilliant.
×

permutations

Given two integers N and M, find how many permutations of 1, 2, ..., N (first N natural numbers) are there where the sum of every two adjacent numbers is at most M.

just give the method to get the result for the general case ?

Note by Vostro Del
4 years, 2 months ago

No vote yet
2 votes

Comments

There are no comments in this discussion.

×

Problem Loading...

Note Loading...

Set Loading...