给出正整数 lns="http://www.w3.org/1998/Math/MathML">nn,要求按如下方式构造数列:
请你求出,一共有多少个合法的数列。两个合法数列 lns="http://www.w3.org/1998/Math/MathML">a, ba,b 不同当且仅当两数列长度不同或存在一个正整数 lns="http://www.w3.org/1998/Math/MathML">i \leq |a|i≤∣a∣,使得 lns="http://www.w3.org/1998/Math/MathML">a_i \neq b_iai=bi。
6
满足条件的数列为: