按1#给定条件用程序穷举计算得
{1, 1, 2, 3, 6, 10, 20, 35, 70, 126, 252, 462, 924,---}
与按通项公式 a(n) = binomial(n, ceiling(n/2))计算结果相同。
n=10,计算的怒分结果:
{{1, "1010101011", " v
"}, {2, "1010101101", " v
"}, {3, "1010101111", "v
"}, {4, "1010110011", " v
"}, {5, "1010110101", "
"}, {6, "1010110111", "
"}, {7, "1010111001", "
"}, {8, "1010111011", "
"}, {9, "1010111101", "
"}, {10, "1010111111", " v
"}, {11, "1011001011", "
"}, {12, "1011001101", "
"}, {13, "1011001111", "
"}, {14, "1011010011", "
"}, {15, "1011010101", "
"}, {16, "1011010111", "
"}, {17, "1011011001", "
"}, {18, "1011011011", "
"}, {19, "1011011101", "
"}, {20, "1011011111", " v
"}, {21, "1011100011", "
"}, {22, "1011100101", "
"}, {23, "1011100111", "
"}, {24, "1011101001", "
"}, {25, "1011101011", "
"}, {26, "1011101101", "
"}, {27, "1011101111", "
"}, {28, "1011110001", "
"}, {29, "1011110011", "
"}, {30, "1011110101", " v
"}, {31, "1011110111", "
"}, {32, "1011111001", "
"}, {33, "1011111011", "
"}, {34, "1011111101", "
"}, {35, "1011111111", "
"}, {36, "1100101011", "
"}, {37, "1100101101", "
"}, {38, "1100101111", "
"}, {39, "1100110011", "
"}, {40, "1100110101", " v
"}, {41, "1100110111", "
"}, {42, "1100111001", "
"}, {43, "1100111011", "
"}, {44, "1100111101", "
"}, {45, "1100111111", " v
"}, {46, "1101001011", " v
"}, {47, "1101001101", " v
"}, {48, "1101001111", " v
"}, {49, "1101010011", " v
"}, {50, "1101010101", "
"}, {51, "1101010111", "
"}, {52, "1101011001", "
"}, {53, "1101011011", "
"}, {54, "1101011101", "
"}, {55, "1101011111", "
"}, {56, "1101100011", "
"}, {57, "1101100101", "
"}, {58, "1101100111", "
"}, {59, "1101101001", "
"}, {60, "1101101011", "
"}, {61, "1101101101", "
"}, {62, "1101101111", "
"}, {63, "1101110001", "
"}, {64, "1101110011", "
"}, {65, "1101110101", "
"}, {66, "1101110111", "
"}, {67, "1101111001", "
"}, {68, "1101111011", "
"}, {69, "1101111101", "
"}, {70, "1101111111", "
"}, {71, "1110001011", "
"}, {72, "1110001101", "
"}, {73, "1110001111", "
"}, {74, "1110010011", "
"}, {75, "1110010101", "
"}, {76, "1110010111", "
"}, {77, "1110011001", "
"}, {78, "1110011011", "
"}, {79, "1110011101", "
"}, {80, "1110011111", "
"}, {81, "1110100011", "
"}, {82, "1110100101", "
"}, {83, "1110100111", "
"}, {84, "1110101001", "
"}, {85, "1110101011", "
"}, {86, "1110101101", "
"}, {87, "1110101111", "
"}, {88, "1110110001", "
"}, {89, "1110110011", "
"}, {90, "1110110101", "
"}, {91, "1110110111", "
"}, {92, "1110111001", "
"}, {93, "1110111011", "
"}, {94, "1110111101", "
"}, {95, "1110111111", "
"}, {96, "1111000011", "
"}, {97, "1111000101", "
"}, {98, "1111000111", "
"}, {99, "1111001001", "
"}, {100, "1111001011", "
"}, {101, "1111001101", "
"}, {102, "1111001111", "
"}, {103, "1111010001", "
"}, {104, "1111010011", "
"}, {105, "1111010101", "
"}, {106, "1111010111", "
"}, {107, "1111011001", "
"}, {108, "1111011011", "
"}, {109, "1111011101", "
"}, {110, "1111011111", "
"}, {111, "1111100001", "
"}, {112, "1111100011", "
"}, {113, "1111100101", "
"}, {114, "1111100111", "
"}, {115, "1111101001", "
"}, {116, "1111101011", "
"}, {117, "1111101101", "
"}, {118, "1111101111", "
"}, {119, "1111110001", "
"}, {120, "1111110011", "
"}, {121, "1111110101", "
"}, {122, "1111110111", "
"}, {123, "1111111001", "
"}, {124, "1111111011", "
"}, {125, "1111111101", "
"}, {126, "1111111111", "
"}} |