https://en.wikipedia.org/wiki/Q-Pochhammer_symbol
验算的时候可以用 线性差分方程。
设: \[f[n+d]=a_1\cdot f[n+d-1]+ a_2\cdot f[n+d-2]+...+ a_d\cdot f[n], f[1]=f_1, f[2]=f_2,...., f[d]=f_d\]
那么对于不同的$k$,计算得到$f_k(n)$满足的差分方程是$d$阶,$d=\frac{k(k+1)}{2}$:
${k, d, {a_1,a_2,...a_d}, {f_1,f_2,...,f_d}}$
- {1,1,{{1},{1}}}
- {2,3,{{1,1,-1},{1,1,2}}}
- {3,6,{{1,1,0,-1,-1,1},{1,1,2,3,4,5}}}
- {4,10,{{1,1,0,0,-2,0,0,1,1,-1},{1,1,2,3,5,6,9,11,15,18}}}
- {5,15,{{1,1,0,0,-1,-1,-1,1,1,1,0,0,-1,-1,1},{1,1,2,3,5,7,10,13,18,23,30,37,47,57,70}}}
- {6,21,{{1,1,0,0,-1,0,-2,0,1,1,1,1,0,-2,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,14,20,26,35,44,58,71,90,110,136,163,199,235,282}}}
- {7,28,{{1,1,0,0,-1,0,-1,-1,0,1,1,2,0,0,0,-2,-1,-1,0,1,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,21,28,38,49,65,82,105,131,164,201,248,300,364,436,522,618,733,860,1009,1175}}}
- {8,36,{{1,1,0,0,-1,0,-1,0,-1,0,1,2,1,0,1,-1,-1,-2,-1,-1,1,0,1,2,1,0,-1,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,29,40,52,70,89,116,146,186,230,288,352,434,525,638,764,919,1090,1297,1527,1801,2104,2462,2857,3319,3828,4417,5066}}}
- {9,45,{{1,1,0,0,-1,0,-1,0,0,-1,0,2,1,1,1,0,-1,-1,-1,-2,-1,-1,1,1,2,1,1,1,0,-1,-1,-1,-2,0,1,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,41,54,73,94,123,157,201,252,318,393,488,598,732,887,1076,1291,1549,1845,2194,2592,3060,3589,4206,4904,5708,6615,7657,8824,10156,11648,13338,15224,17354,19720,22380}}}
- {10,55,{{1,1,0,0,-1,0,-1,0,0,0,-1,1,1,1,2,0,0,-1,-1,-1,-1,-3,0,0,1,1,2,2,1,1,0,0,-3,-1,-1,-1,-1,0,0,2,1,1,1,-1,0,0,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,30,42,55,75,97,128,164,212,267,340,423,530,653,807,984,1204,1455,1761,2112,2534,3015,3590,4242,5013,5888,6912,8070,9418,10936,12690,14663,16928,19466,22367,25608,29292,33401,38047,43214,49037,55494,62740,70760,79725,89623,100654}}}
- {11,66,{{1,1,0,0,-1,0,-1,0,0,0,0,0,0,1,2,1,0,0,-1,-1,-1,-2,-1,-1,0,-1,2,2,2,2,1,1,0,-1,-1,-2,-2,-2,-2,1,0,1,1,2,1,1,1,0,0,-1,-2,-1,0,0,0,0,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,42,56,76,99,131,169,219,278,355,445,560,695,863,1060,1303,1586,1930,2331,2812,3370,4035,4802,5708,6751,7972,9373,11004,12866,15021,17475,20298,23501,27169,31316,36043,41373,47420,54218,61903,70515,80215,91058,103226,116792,131970,148847,167672,188556,211782,237489,266006,297495,332337,370733,413112,459718}}}
- {12,78,{{1,1,0,0,-1,0,-1,0,0,0,0,1,-1,0,2,1,1,0,0,-1,-1,-2,-1,-1,0,-2,0,1,2,2,2,2,1,1,0,-1,-2,-1,-4,-1,-2,-1,0,1,1,2,2,2,2,1,0,-2,0,-1,-1,-2,-1,-1,0,0,1,1,2,0,-1,1,0,0,0,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,30,42,56,77,100,133,172,224,285,366,460,582,725,905,1116,1380,1686,2063,2503,3036,3655,4401,5262,6290,7476,8877,10489,12384,14552,17084,19978,23334,27156,31570,36578,42333,48849,56297,64707,74287,85067,97299,111036,126560,143948,163540,185425,210005,237405,268079,302196,340293,382562,429636,481769,539672,603666,674585,752802,839286,934502,1039543,1154981,1282083,1421506,1574714,1742509,1926533,2127747}}}
- {13,91,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,-1,1,1,1,1,0,0,-1,-2,-1,-1,-1,-1,0,-1,1,1,2,2,2,2,2,0,-1,-1,-2,-1,-3,-3,-2,-1,-1,1,1,2,3,3,1,2,1,1,0,-2,-2,-2,-2,-2,-1,-1,1,0,1,1,1,1,2,1,0,0,-1,-1,-1,-1,1,0,-1,0,0,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,134,174,227,290,373,471,597,747,935,1158,1436,1763,2164,2637,3210,3882,4691,5635,6761,8073,9624,11424,13542,15988,18847,22142,25971,30366,35452,41269,47968,55610,64370,74331,85711,98609,113287,129883,148702,169919,193906,220877,251274,285373,323689,366566,414624,468273,528245,595056,669555,752368,844504,946708,1060163,1185776,1324916,1478670,1648649,1836130,2042987,2270754,2521589,2797302,3100410,3433027,3798063,4198013,4636214,5115586,5639989,6212802,6838459,7520910,8265217,9075952,9958931}}}
- {14,105,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,-2,-1,-1,-1,-2,0,0,0,0,1,1,2,2,3,2,0,0,-1,0,-3,-2,-3,-2,-3,-1,-1,0,1,3,2,3,3,2,3,1,0,-1,-1,-3,-2,-3,-2,-3,0,-1,0,0,2,3,2,2,1,1,0,0,0,0,-2,-1,-1,-1,-2,0,0,1,1,1,0,0,0,0,1,0,0,0,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,175,229,293,378,478,608,762,957,1188,1478,1819,2241,2738,3345,4057,4920,5928,7139,8551,10232,12186,14499,17176,20325,23961,28212,33104,38797,45326,52888,61538,71509,82882,95943,110795,127786,147059,169027,193880,222118,253981,290071,330699,376577,428104,486133,551155,624188,705851,797341,899427,1013531,1140588,1282281,1439757,1614987,1809369,2025226,2264234,2529120,2821909,3145777,3503153,3897751,4332454,4811594,5338601,5918495,6555343,7254976,8022171,8863685,9785144,10794337,11897861,13104708,14422567,15861795,17431358,19143136,21007554,23038248,25247274,27650253,30261132,33097743,36176175,39516787,43138066,47063214}}}
- {15,120,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,1,-1,0,1,1,1,0,-1,-1,-1,-1,-2,-1,0,0,0,1,0,1,1,3,2,2,1,0,1,-1,-2,-3,-2,-3,-2,-2,-2,-1,0,0,3,3,3,3,4,2,2,1,0,-1,-2,-2,-4,-3,-3,-3,-3,0,0,1,2,2,2,3,2,3,2,1,-1,0,-1,-2,-2,-3,-1,-1,0,-1,0,0,0,1,2,1,1,1,1,0,-1,-1,-1,0,1,-1,0,0,-1,0,0,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,176,230,295,381,483,615,773,972,1210,1508,1861,2297,2815,3446,4192,5096,6158,7434,8932,10715,12801,15272,18148,21535,25469,30073,35401,41612,48772,57080,66634,77667,90316,104875,121510,140587,162331,187175,215415,247587,284054,325472,372311,425349,485184,552767,628822,714504,810726,918851,1040014,1175862,1327763,1497696,1687344,1899041,2134841,2397537,2689583,3014304,3374676,3774599,4217657,4708477,5251305,5851608,6514463,7246258,8053039,8942320,9921212,10998526,12182681,13483920,14912165,16479384,18197166,20079452,22139835,24394441,26859162,29552711,32493532,35703292,39203452,43018955,47174701,51699468,56621986,61975379,67792847,74112342,80972138,88415780,96487178,105236197,114713263,124975255,136079959,148092302,161078251,175111785,190268239,206631638,224287850}}}
- {16,136,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,1,0,-1,0,1,1,1,-1,0,-1,-1,-2,-1,-1,0,0,0,1,1,0,2,1,2,2,1,2,0,0,-2,-2,-3,-2,-3,-2,-2,-1,-3,1,1,2,3,3,3,4,4,2,2,0,0,-2,-2,-3,-3,-6,-3,-3,-2,-2,0,0,2,2,4,4,3,3,3,2,1,1,-3,-1,-2,-2,-3,-2,-3,-2,-2,0,0,2,1,2,2,1,2,0,1,1,0,0,0,-1,-1,-2,-1,-1,0,-1,1,1,1,0,-1,0,1,0,0,1,0,0,0,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,176,231,296,383,486,620,780,983,1225,1530,1891,2339,2871,3523,4293,5231,6334,7665,9228,11098,13287,15892,18928,22518,26694,31603,37292,43951,51643,60603,70927,82898,96650,112540,130738,151685,175618,203067,234343,270105,310748,357075,409603,469300,536827,613370,699749,797402,907376,1031391,1170752,1327547,1503381,1700763,1921687,2169146,2445589,2754612,3099186,3483604,3911503,4387969,4917406,5505879,6158681,6882999,7685215,8573805,9556420,10643083,11842899,13167672,14628270,16238532,18011351,19962988,22108669,24467421,27057241,29900320,33017843,36435710,40178747,44277097,48759872,53662038,59017600,64867140,71250256,78213911,85804198,94075330,103080807,112883201,123544419,135136517,147731106,161410965,176258706,192369399,209838123,228773823,249285839,271498778,295538106,321546251,349666857,380062426,412897300,448356535,486627762,527921587,572451830,620457761,672182817,727898397,787881177,852438748,921885011,996568049,1076843687}}}
- {17,153,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,1,0,0,-1,0,1,1,0,0,0,-1,-2,-1,-1,-1,0,0,0,1,1,2,0,1,1,2,2,1,1,0,-1,-2,-2,-3,-2,-3,-2,-3,-1,0,0,1,2,1,4,4,4,4,3,2,1,0,-1,-2,-3,-4,-4,-4,-5,-3,-3,-2,-2,2,2,3,3,5,4,4,4,3,2,1,0,-1,-2,-3,-4,-4,-4,-4,-1,-2,-1,0,0,1,3,2,3,2,3,2,2,1,0,-1,-1,-2,-2,-1,-1,0,-2,-1,-1,0,0,0,1,1,1,2,1,0,0,0,-1,-1,0,1,0,0,-1,0,0,-1,0,0,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,176,231,297,384,488,623,785,990,1236,1545,1913,2369,2913,3579,4370,5332,6469,7841,9459,11395,13671,16380,19551,23303,27684,32839,38837,45864,54012,63516,74506,87268,101982,119009,138579,161144,187013,216738,250723,289656,334051,384759,442442,508137,582691,667382,763265,871908,994644,1133373,1289761,1466126,1664525,1887776,2138425,2419869,2735245,3088663,3483945,3926046,4419640,4970660,5584788,6269144,7030589,7877643,8818588,9863566,11022546,12307608,13730675,15306097,17048139,18973777,21100014,23446933,26034715,28887061,32027901,35485108,39286987,43466299,48056390,53095685,58623438,64684584,71325208,78597815,86556353,95262050,104777975,115175344,126527740,138917916,152431480,167164418,183216214,200697952,219725005,240425789,262933808,287397261,313970423,342823986,374135921,408102604,444928907,484840401,528072644,574884275,625545678,680353067,739616248,803673975,872880769,947623402,1028306966,1115372556,1209282272,1310538472,1419667673,1537241148,1663857953,1800167013,1946848910,2104639829,2274312060,2456699633,2652677784,2863190371,3089227913,3331857268,3592198201,3871455062,4170892164,4491867656,4835807257,5204240813}}}
- {18,171,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,1,0,0,0,-1,0,1,0,1,0,0,-2,-1,-1,-1,-1,0,0,0,1,2,1,1,0,1,2,1,1,1,1,-1,-1,-2,-2,-3,-2,-4,-2,-2,0,0,1,-1,2,3,3,4,4,4,3,3,1,1,-1,-1,-3,-4,-5,-4,-5,-3,-6,-2,-2,-1,0,3,3,4,5,5,5,5,4,3,3,0,-1,-2,-2,-6,-3,-5,-4,-5,-4,-3,-1,-1,1,1,3,3,4,4,4,3,3,2,-1,1,0,0,-2,-2,-4,-2,-3,-2,-2,-1,-1,1,1,1,1,2,1,0,1,1,2,1,0,0,0,-1,-1,-1,-1,-2,0,0,1,0,1,0,-1,0,0,0,1,0,0,1,0,0,0,0,-1,0,-1,0,0,1,1,-1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,176,231,297,385,489,625,788,995,1243,1556,1928,2391,2943,3621,4426,5409,6570,7976,9635,11626,13968,16765,20040,23928,28472,33834,40080,47420,55940,65907,77449,90889,106408,124418,145149,169120,196648,228364,264691,306421,354091,408687,470914,541971,622771,714802,819205,937815,1072093,1224262,1396169,1590544,1809674,2056896,2335073,2648233,2999936,3395084,3838036,4334733,4890554,5512631,6207559,6983946,7849794,8815458,9890681,11087828,12418715,13898152,15540349,17362993,19383212,21622010,24099950,26842017,29872751,33221794,36918455,40997739,45494546,50450245,55906184,61911143,68514119,75772412,83743923,92495967,102096702,112625043,124161187,136797354,150627690,165759933,182304231,200386212,220134669,241695691,265219551,290876034,318839992,349308404,382484542,418596398,457879844,500598571,547025609,597465444,652233831,711681629,776173368,846113000,921920479,1004060187,1093015438,1189319093,1293526517,1406248590,1528122264,1659846876,1802152215,1955837546,2121737797,2300765584,2493874519,2702105273,2926545891,3168381262,3428851152,3709303371,4011148392,4335917455,4685213639,5060774155,5464418681,5898116246,6363929521,6864087689,7400926549,7976966566,8594849726,9257423191,9967671420,10728807090,11544198307,12417465866,13352406616,14353097610,15423813949,16569141670,17793889888,19103211434,20502510514,21997571702,23594461204,25299666403}}}
- {19,190,{{1,1,0,0,-1,0,-1,0,0,0,0,1,0,0,1,0,0,0,0,-1,0,0,1,1,0,-1,-1,-1,-1,-1,-1,0,0,0,2,1,1,1,1,1,1,0,1,1,1,0,-1,-1,-2,-2,-4,-2,-3,-2,-1,0,-1,1,1,2,3,3,3,4,4,3,3,2,1,1,-2,-3,-4,-5,-4,-5,-4,-5,-4,-4,-1,-1,1,2,4,4,6,5,6,7,5,3,3,1,0,-1,-3,-3,-5,-7,-6,-5,-6,-4,-4,-2,-1,1,1,4,4,5,4,5,4,5,4,3,2,-1,-1,-2,-3,-3,-4,-4,-3,-3,-3,-2,-1,-1,1,0,1,2,3,2,4,2,2,1,1,0,-1,-1,-1,0,-1,-1,-1,-1,-1,-1,-2,0,0,0,1,1,1,1,1,1,0,-1,-1,0,0,1,0,0,0,0,-1,0,0,-1,0,0,0,0,1,0,1,0,0,-1,-1,1},{1,1,2,3,5,7,11,15,22,30,42,56,77,101,135,176,231,297,385,490,626,790,998,1248,1563,1939,2406,2965,3651,4468,5465,6647,8077,9770,11802,14199,17062,20425,24418,29098,34624,41078,48668,57503,67846,79855,93854,110059,128886,150614,175767,204725,238134,276493,320620,371153,429112,495332,571069,657395,755880,867873,995318,1139939,1304117,1490023,1700603,1938560,2207510,2510840,2852958,3238070,3671577,4158656,4705886,5319666,6007963,6778628,7641341,8605674,9683331,10885999,12227767,13722832,15388175,17240952,19301553,21590722,24132850,26952908,30080087,33544328,37380450,41624341,46317405,51502509,57228873,63547525,70516817,78197450,86658411,95971690,106218799,117484877,129865995,143462740,158388076,174760540,192712841,212384318,233930540,257515119,283320032,311536956,342378543,376068865,412855929,453001359,496793848,544538255,596570261,653244408,714950321,782099826,855144369,934561444,1020873540,1114633320,1216444505,1326945978,1446834212,1576846549,1717785546,1870500807,2035915741,2215008144,2408838905,2618531645,2845303839,3090444780,3355349681,3641496212,3950481088,4283995521,4643864815,5032021932,5450550775,5901658144,6387720133,6911252893,7474962795,8081715067,8734588496,9436842290,10191974710,11003688631,11875954836,12812975259,13819251870,14899547988,16058962078,17302887704,18637093131,20067678764,21601163602,23244440663,25004869578,26890230647,28908824595,31069423999,33381381470,35854579015,38499543853,41327396501,44349975450,47579782574,51030118097,54715024029,58649428629,62849088755,67330745235,72112062630,77211797218,82649734981,88446871333,94625348422,101208648288,108221527829,115690227333,123642404108}}}
复制代码
经过检验,楼主2#的$f_5(n)$是正确的,$f_6(n)$就出现了问题。
附代码:
- m = 15; Table[{k,
- data = CoefficientList[Series[QPochhammer[q^(k + 1), q]/QPochhammer[q, q], {q, 0, m^2 + m}], q]; kernel = FindLinearRecurrence[data]; Length[kernel], {kernel, data[[1 ;; Length[kernel]]]}}
- , {k, m}]
复制代码
|