How can I generate the number of sets of segments containing the elements 1 to n form a polygon with n sides? (elements can be repeated)

前端 未结 0 1063
悲哀的现实
悲哀的现实 2021-02-12 13:14

Let\'s say for example n = 3, the sets of segments would be:

(1,1,1)(1,1,1)

(1,2,2)(1,2,2) which is the same as (2,1,2)(2,1,2) which is the same as (2,2,1)(2,2,1)<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题