northwolves 发表于 2025-10-30 23:38
{{5,2},1,{{{31251,42},1312542}}}
{{6,3},8,{{{212514,633},134521362},{{312615,423},132236145},{{345 ...
n=10:
- s=Select[FromDigits/@Permutations[Range[0,9]],Union[DigitCount[#^2]]=={2}&];{Length@s,s}
复制代码
{534,{3175462089,3175804269,3204957816,3206549178,3210754689,3254196708,3260974851,3275409816,3284591706,3290581476,3406829517,3410856297,3459186720,3469857012,3475806912,3501249678,3512067849,3519876240,3549716208,3564980172,3587902614,3589612047,3590846172,3591267408,3598412670,3612980754,3619072845,3642810957,3642915807,3648129057,3672980514,3684590127,3685049127,3709526418,3719086524,3745129608,3762058914,3765420198,3794256081,3794281605,3796025184,3798562041,3841792605,3851049726,3851902674,3864520719,3869154027,3946751820,3950648217,3960754182,3962751408,3974201568,3987451206,4029365187,4035896127,4035967218,4037962185,4065179382,4068259713,4069273851,4078615293,4107932568,4128306975,4138205697,4162953087,4165093872,4183596072,4192067853,4195602873,4205397618,4219738605,4231856079,4237801695,4239081675,4239865017,4253907186,4267039158,4278069315,4297158630,4320197685,4350179268,4350179826,4361958702,4375016892,4381795062,4382519067,4390275186,4395162780,4506193728,4507291683,4510897326,4518306927,4523069781,4529718063,4531678209,4532816709,4563079812,4572160839,4612035987,4613728509,4650371928,4658792103,4679283105,4681207593,4683571902,4753806192,4759086231,4781052963,4805796213,4813697025,4861920357,4872190653,4872391056,4872561930,4872659013,4875961302,4896207513,4902635187,4935102867,4935276801,4956801237,4958610327,4968071352,4975123086,4980127563,4983720516,5014387269,5017249683,5018697342,5036184972,5037612849,5043719826,5043796821,5049627318,5061382947,5067493821,5086437912,5089237641,5097813642,5103497682,5107962348,5109628734,5109738624,5134079268,5137092648,5174098362,5193728406,5201439768,5206719348,5219043687,5230718649,5234071896,5246980731,5247089316,5273948160,5273968104,5274981630,5281643079,5286379041,5287143960,5296031874,5301742698,5302796418,5309716248,5318769402,5327940681,5346017892,5360197842,5368029147,5380716294,5382690471,5386719402,5392108476,5409162378,5420768913,5437021896,5462193708,5462890317,5467892301,5479802163,5489027316,5604192837,5614870293,5617203948,5617809342,5627809413,5634208719,5637981042,5641290387,5674830219,5692740831,5694732801,5698327014,5703146298,5724938160,5728690431,5730682419,5731208946,5734802961,5736428109,5742683019,5762098134,5762134809,5762980134,5780941236,5807246913,5829460371,5832041976,5847910326,5867194203,5871290634,5890162374,5902186473,5923460781,5924631708,5926814370,5947320168,5960483712,5972846031,5978421603,5982613047,5984017623,5984627013,6017352489,6041582973,6042573198,6042713958,6051728493,6053419782,6103894572,6129487053,6147850293,6157238094,6175439802,6198370254,6198432705,6208714953,6218057349,6239875041,6259780134,6278109435,6285374091,6297483501,6307548291,6359208147,6384720591,6387210594,6398270514,6409317825,6432015987,6459827013,6492738051,6509371824,6514273089,6521708349,6527081934,6528073491,6540328791,6579081324,6580719342,6709835124,6715408932,6745820391,6749028351,6754829031,6754918032,6784359201,6795480321,6801295347,6807324951,6820941753,6835492071,6849750231,6874013529,6874351029,6894012753,6903274518,6914382057,6927403581,6938240175,6941078253,6980217453,6980723145,6982145703,7016523849,7026459183,7026984153,7031258496,7048623591,7091234856,7091853264,7094326851,7103642895,7105348269,7109368452,7138460259,7145209863,7150982364,7153920468,7153964208,7158069342,7159084236,7184903256,7189362405,7192560843,7198430625,7204563819,7206145893,7215048936,7216938054,7238906541,7239850164,7253419086,7258601349,7259164803,7291358064,7295641830,7314208596,7315482906,7319024586,7326081549,7345810692,7360412589,7395086214,7395280461,7396548201,7396820154,7438205691,7463185290,7485631029,7492581630,7493156082,7496380512,7508243196,7510493268,7519068243,7521430968,7530268941,7549326810,7564328019,7581609432,7582634901,7590614283,7591403682,7591426830,7593021864,7598236410,7610938425,7618203459,7624918350,7629310584,7641932508,7648250319,7685134029,7802154693,7810625439,7812649053,7814062593,7829143506,7832540961,7839425610,7841032695,7841962350,7908152436,7918605234,7984326015,7985632041,8015479263,8029647513,8042316795,8047321965,8056273491,8056294713,8062914357,8069574312,8074153692,8074195632,8147362059,8190247563,8192037654,8194635207,8210736495,8214756903,8259364071,8302516749,8305169247,8320946751,8341960527,8351724609,8354061972,8370421659,8379516042,8391056724,8395276014,8413752609,8421950376,8423075169,8425307916,8456913720,8460927513,8463795102,8492760153,8502139467,8504231796,8510692734,8526047139,8534019276,8537214069,8574196023,8591674023,8603925741,8625710394,8654072139,8691054723,8694170532,8695243107,8725960314,8734621509,8741506293,8746192305,8765024193,8902153674,8913576240,8916537042,8923567041,8924731056,8935106247,8952063174,8953176042,8954031267,8962043157,8967150234,8970231456,9013827564,9017628345,9017845236,9018236574,9023586174,9025816473,9026473581,9032817645,9043186752,9046128537,9052867431,9053271648,9056172348,9057124386,9063254187,9064815273,9076148352,9085173246,9107536248,9120348657,9142058763,9142853067,9148632750,9150327648,9150476283,9157864230,9160378524,9160487253,9178206534,9180376425,9182760534,9183740625,9187620345,9208374615,9231654870,9240168537,9245601387,9260458371,9265084731,9270583416,9270816435,9275846301,9281637540,9284137056,9286750134,9287045316,9304786512,9305827461,9324815067,9328140756,9342675018,9356147802,9360154728,9368102754,9410736582,9418723056,9473680152,9476823015,9478165302,9483257061,9485702631,9504132678,9527406831,9538061724,9543281067,9543670812,9576210384,9601357482,9608371542,9618247053,9637458021,9643018752,9651037824,9652813074,9657841302,9672803514,9675104832,9681573204,9683104752,9704618532,9705843126,9706523481,9716243085,9740586231,9741253608,9748015632,9756230184,9768254310,9784561023,9785624301,9804631275,9804652317,9807213465,9824705613,9825640137,9834652071,9853024671,9865017243,9865403721,9876104253,9876124053}} |