Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $exptable = 215;
- $levelstart = 1;
- $numlevels = 100;
- $exptable = GetExpTable($exptable, $levelstart, $numlevels);
- echo '<br><br><pre>';
- echo print_r($exptable, true);
- echo '</pre>';
- function GetExpTable($exptable, $startlevel=1, $numlevels=100) {
- $i = 0; $potential_new_exp = 0; $ret = array(); $lastexp = 0; $startexp = 0;
- $running_exp_tabulation = 0; $billions_tabulator = 0; $MAX_UINT = 4294967295;
- $exp_multiplier = 0; $exp_divisor = 0; $ALTERNATE_NEW_EXP = 0; $accurate_exp = array();
- $debug = true;
- if ($debug) { $accurate_exp = GetAcurateExpChart($exptable); }
- // Calculate experience
- for ($i = 1; $i <= ($startlevel+$numlevels-1); $i++) {
- $startexp = $lastexp;
- if ($i == 1) {
- $running_exp_tabulation = 0;
- } elseif ($i == 2) {
- $running_exp_tabulation = $exptable * 10;
- } else {
- if ($i <= 26) { //levels 1-26
- list($exp_multiplier, $exp_divisor) = GetExpModifiers($i);
- } elseif ($i <= 55) { //levels 27-55
- $exp_multiplier = 115;
- $exp_divisor = 100;
- } elseif ($i <= 58) { //levels 56-58
- $exp_multiplier = 109;
- $exp_divisor = 100;
- } else { //levels 59+
- $exp_multiplier = 108;
- $exp_divisor = 100;
- }
- if ($exp_multiplier == 0 || $exp_divisor == 0) {
- $potential_new_exp = 0;
- } else {
- $potential_new_exp = $running_exp_tabulation * $exp_multiplier;
- }
- if ($potential_new_exp > $MAX_UINT) { //UINT ROLLOVER #1
- $num_divides = 0;
- while ($potential_new_exp > $MAX_UINT) {
- $running_exp_tabulation = floor($running_exp_tabulation / 100);
- $potential_new_exp = $running_exp_tabulation * $exp_multiplier;
- $num_divides++;
- }
- if ($num_divides > 1) {
- $ALTERNATE_NEW_EXP = floor(($running_exp_tabulation * $exp_multiplier * 100) / $exp_divisor);
- } else {
- $ALTERNATE_NEW_EXP = floor($potential_new_exp / $exp_divisor);
- }
- while ($num_divides > 0) {
- $ALTERNATE_NEW_EXP *= 100;
- $num_divides--;
- }
- } else {
- $ALTERNATE_NEW_EXP = floor($potential_new_exp / $exp_divisor);
- }
- $j = (1000000 * $exp_multiplier * $billions_tabulator);
- while ($j > $MAX_UINT) { $j -= $MAX_UINT+1; } //UINT ROLLOVER #2
- for ($j; $j >= 1000000000; $billions_tabulator++) {
- $j -= 1000000000;
- }
- $k = ($j + $ALTERNATE_NEW_EXP);
- for ($k; $k >= 1000000000; $billions_tabulator++) {
- $k -= 1000000000;
- }
- $running_exp_tabulation = $k;
- }
- $lastexp = $running_exp_tabulation + ($billions_tabulator*1000000000);
- $neededexp = $lastexp - $startexp;
- if ($i >= $startlevel) {
- $ret[$i] = $lastexp;
- if ($debug) {
- $ret[$i] = "Total: ".number_format($ret[$i], 0).", Need: ".number_format($neededexp, 0);
- if (!empty($accurate_exp[$i])) {
- if ($accurate_exp[$i] == $lastexp) {
- $ret[$i] .= " - ACCURATE";
- } else {
- $ret[$i] .= " - Should be ".number_format($accurate_exp[$i]);
- }
- }
- }
- }
- }
- return $ret;
- }
- // Returns the experience modifiers for a given level.
- function GetExpModifiers($iLevel) {
- switch ($iLevel) {
- case 3:
- return [40, 20];
- case 4:
- case 5:
- return [44, 24];
- case 6:
- case 7:
- return [48, 28];
- case 8:
- case 9:
- return [52, 32];
- case 10:
- case 11:
- return [56, 36];
- case 12:
- case 13:
- return [60, 40];
- case 14:
- case 15:
- return [65, 45];
- case 16:
- case 17:
- return [70, 50];
- case 18:
- return [75, 55];
- default:
- if ($iLevel <= 26) {
- return [50, 40];
- } else {
- return [23, 20];
- }
- }
- }
- function GetAcurateExpChart($table) {
- $ret = array();
- switch ($table) {
- case 80:
- $ret[2] = 800; $ret[3] = 1600; $ret[4] = 2933; $ret[5] = 5377; $ret[6] = 9217; $ret[7] = 15800; $ret[8] = 25675; $ret[9] = 41721; $ret[10] = 64899; $ret[11] = 100954; $ret[12] = 151431; $ret[13] = 227146; $ret[14] = 328099; $ret[15] = 473920; $ret[16] = 663488; $ret[17] = 928883; $ret[18] = 1266658; $ret[19] = 1583322; $ret[20] = 1979152; $ret[21] = 2473940; $ret[22] = 3092425; $ret[23] = 3865531; $ret[24] = 4831913; $ret[25] = 6039891; $ret[26] = 7549863; $ret[27] = 8682342; $ret[28] = 9984693; $ret[29] = 11482396; $ret[30] = 13204755; $ret[31] = 15185468; $ret[32] = 17463288; $ret[33] = 20082781; $ret[34] = 23095198; $ret[35] = 26559477; $ret[36] = 30543398; $ret[37] = 35124907; $ret[38] = 40393643; $ret[39] = 46452600; $ret[40] = 53420400; $ret[41] = 61433400; $ret[42] = 70648400; $ret[43] = 81245600; $ret[44] = 93432400; $ret[45] = 107447200; $ret[46] = 123564200; $ret[47] = 142098800; $ret[48] = 163413600; $ret[49] = 187925600; $ret[50] = 216114400; $ret[51] = 248531500; $ret[52] = 285811200; $ret[53] = 328682800; $ret[54] = 377985200; $ret[55] = 434682900; $ret[56] = 473804300; $ret[57] = 516446600; $ret[58] = 562926700; $ret[59] = 607960800; $ret[60] = 656597600; $ret[61] = 709125400; $ret[62] = 765855400; $ret[63] = 827123800; $ret[64] = 893293700; $ret[65] = 964757100; $ret[66] = 1041937600; $ret[67] = 1153292600; $ret[68] = 1273556000; $ret[69] = 1403440400; $ret[70] = 1543715600; $ret[71] = 1695212800; $ret[72] = 1858829800; $ret[73] = 2035536100; $ret[74] = 2254378988; $ret[75] = 2490729200; $ret[76] = 2745987500; $ret[77] = 3021666500; $ret[78] = 3347399820; $ret[79] = 3699191700; $ret[80] = 4079127000; $ret[81] = 4517457100; $ret[82] = 4990853600; $ret[83] = 5502121800; $ret[84] = 6082291500; $ret[85] = 6736874800; $ret[86] = 7443824700; $ret[87] = 8235330600; $ret[88] = 9118157000; $ret[89] = 10099609500; $ret[90] = 11187578200; $ret[91] = 12390584400; $ret[92] = 13717831100; $ret[93] = 15179257500; $ret[94] = 16813598100; $ret[95] = 18606685900; $ret[96] = 20599220700; $ret[97] = 22807158300; $ret[98] = 25247730900; $ret[99] = 27967549300; $ret[100] = 30960953200; $ret[101] = 34277829400; $ret[102] = 37972055700; $ret[103] = 42045820100; $ret[104] = 42290518404; $ret[105] = 42554792504; $ret[106] = 42840208604; $ret[107] = 43148457904; $ret[108] = 43509367204; $ret[109] = 43899149204; $ret[110] = 44320113804; $ret[111] = 44802755604; $ret[112] = 45324008704; $ret[113] = 45914962004; $ret[114] = 46553191604; $ret[115] = 47270479604; $ret[116] = 48073150604; $ret[117] = 48968035304; $ret[118] = 49934510804; $ret[119] = 51006304304; $ret[120] = 52219841352; $ret[121] = 53558461304; $ret[122] = 55032170904; $ret[123] = 56679777280; $ret[124] = 58487192004; $ret[125] = 60495200004; $ret[126] = 62719848704; $ret[127] = 65178469204; $ret[128] = 67917779404; $ret[129] = 70932234404; $ret[130] = 74271845804; $ret[131] = 77990626104; $ret[132] = 82090908804; $ret[133] = 82364246908; $ret[134] = 82659452008; $ret[135] = 82978273508; $ret[136] = 83322600708; $ret[137] = 83722474108; $ret[138] = 84154337408; $ret[139] = 84648749708; $ret[140] = 85182715008; $ret[141] = 85787397608; $ret[142] = 86440454808; $ret[143] = 87173756508; $ret[144] = 87993722408; $ret[145] = 88879285508; $ret[146] = 89863693708; $ret[147] = 90954854508; $ret[148] = 92161308208; $ret[149] = 93520278208; $ret[150] = 95015965808; $ret[151] = 96687308480; $ret[152] = 98520358408; $ret[153] = 100556052408; $ret[154] = 102810601908; $ret[155] = 105301515408; $ret[156] = 108075702008; $ret[157] = 111155823508; $ret[158] = 114566354708; $ret[159] = 118333728408; $ret[160] = 122514492008; $ret[161] = 122846749412; $ret[162] = 123205587412; $ret[163] = 123621132412; $ret[164] = 124069921012; $ret[165] = 124582612712; $ret[166] = 125136319812; $ret[167] = 125762323412; $ret[168] = 126438407312; $ret[169] = 127196577912; $ret[170] = 128043402212; $ret[171] = 128985972412; $ret[172] = 130003948212; $ret[173] = 131159362180; $ret[174] = 132435209112; $ret[175] = 133841123912; $ret[176] = 135387511912; $ret[177] = 137113610912; $ret[178] = 139033797812; $ret[179] = 141163599748; $ret[180] = 143519785712; $ret[181] = 146120466612; $ret[182] = 149013202012; $ret[183] = 152221356284; $ret[184] = 155770162712; $ret[185] = 159686873812; $ret[186] = 164028921812; $ret[187] = 164563366372; $ret[188] = 165140566416; $ret[189] = 165791942516; $ret[190] = 166495428716; $ret[191] = 167283193716; $ret[192] = 168161979916; $ret[193] = 169139069016; $ret[194] = 170222325316; $ret[195] = 171420242116; $ret[196] = 172741992216; $ret[197] = 174197482316; $ret[198] = 175825411616; $ret[199] = 177611575316; $ret[200] = 179596632116; $ret[201] = 181796493416; $ret[202] = 184228343616; $ret[203] = 186938741816; $ret[204] = 189921971916; $ret[205] = 193227860416; $ret[206] = 196910220016; $ret[207] = 200971168416; $ret[208] = 201174025320; $ret[209] = 201421110820; $ret[210] = 201687963120; $ret[211] = 201976163620; $ret[212] = 202287420120; $ret[213] = 202651577220; $ret[214] = 203044866820; $ret[215] = 203497619620; $ret[216] = 203986592620; $ret[217] = 204514683520; $ret[218] = 205113021620; $ret[219] = 205787226820; $ret[220] = 206515368420; $ret[221] = 207329761320; $ret[222] = 208237305720; $ret[223] = 209245453620; $ret[224] = 210362253320; $ret[225] = 211596397020; $ret[226] = 212957272220; $ret[227] = 214455017420; $ret[228] = 216128582220; $ret[229] = 217992032220; $ret[230] = 220032558220; $ret[231] = 222320326397; $ret[232] = 224847115920; $ret[233] = 227632048620; $ret[234] = 230723775920; $ret[235] = 234146841420; $ret[236] = 237955752220; $ret[237] = 242153375820; $ret[238] = 242531842024; $ret[239] = 242940585524; $ret[240] = 243382028524; $ret[241] = 243886786924; $ret[242] = 244431926024; $ret[243] = 245048676224; $ret[244] = 245742766424; $ret[245] = 246492383924; $ret[246] = 247329970824; $ret[247] = 248262564624; $ret[248] = 249297765924; $ret[249] = 250443783324; $ret[250] = 251709482124; $ret[251] = 253104436824; $ret[252] = 254666987924; $ret[253] = 256382543124; $ret[254] = 258291342724; $ret[255] = 260408846324;
- break;
- case 100:
- $ret[2] = 1000; $ret[3] = 2000; $ret[4] = 3666; $ret[5] = 6721; $ret[6] = 11521; $ret[7] = 19750; $ret[8] = 32093; $ret[9] = 52151; $ret[10] = 81123; $ret[11] = 126191; $ret[12] = 189286; $ret[13] = 283929; $ret[14] = 410119; $ret[15] = 592394; $ret[16] = 829351; $ret[17] = 1161091; $ret[18] = 1583305; $ret[19] = 1979131; $ret[20] = 2473913; $ret[21] = 3092391; $ret[22] = 3865488; $ret[23] = 4831860; $ret[24] = 6039825; $ret[25] = 7549781; $ret[26] = 9437226; $ret[27] = 10852809; $ret[28] = 12480730; $ret[29] = 14352839; $ret[30] = 16505764; $ret[31] = 18981628; $ret[32] = 21828872; $ret[33] = 25103202; $ret[34] = 28868682; $ret[35] = 33198984; $ret[36] = 38178831; $ret[37] = 43905600; $ret[38] = 50491400; $ret[39] = 58065100; $ret[40] = 66774800; $ret[41] = 76791000; $ret[42] = 88309600; $ret[43] = 101556000; $ret[44] = 116789400; $ret[45] = 134307800; $ret[46] = 154453900; $ret[47] = 177621900; $ret[48] = 204265100; $ret[49] = 234904800; $ret[50] = 270140500; $ret[51] = 310661500; $ret[52] = 357260700; $ret[53] = 410849800; $ret[54] = 472477200; $ret[55] = 543348700; $ret[56] = 592250000; $ret[57] = 645552500; $ret[58] = 703652200; $ret[59] = 759944300; $ret[60] = 820739800; $ret[61] = 886398900; $ret[62] = 957310800; $ret[63] = 1033895600; $ret[64] = 1144607248; $ret[65] = 1264175700; $ret[66] = 1393309700; $ret[67] = 1532774400; $ret[68] = 1683396300; $ret[69] = 1846068000; $ret[70] = 2021753400; $ret[71] = 2239493672; $ret[72] = 2474653000; $ret[73] = 2728625200; $ret[74] = 3002915200; $ret[75] = 3327148416; $ret[76] = 3677320200; $ret[77] = 4055505800; $ret[78] = 4491946200; $ret[79] = 4963301800; $ret[80] = 5472365900; $ret[81] = 6050155100; $ret[82] = 6702167500; $ret[83] = 7406340900; $ret[84] = 8194848100; $ret[85] = 9074435900; $ret[86] = 10052390700; $ret[87] = 11136581900; $ret[88] = 12335508400; $ret[89] = 13658349000; $ret[90] = 15115016900; $ret[91] = 16744218200; $ret[92] = 18531755600; $ret[93] = 20518296000; $ret[94] = 22719759600; $ret[95] = 25153340300; $ret[96] = 27865607500; $ret[97] = 30850856100; $ret[98] = 34158924500; $ret[99] = 37843638400; $ret[100] = 41907129400; $ret[101] = 42112732404; $ret[102] = 42362783604; $ret[103] = 42632838904; $ret[104] = 42924498704; $ret[105] = 43239491204; $ret[106] = 43607683104; $ret[107] = 44005330404; $ret[108] = 44462789540; $ret[109] = 44956845304; $ret[110] = 45490425604; $ret[111] = 46094692304; $ret[112] = 46775300304; $ret[113] = 47510357004; $ret[114] = 48332218204; $ret[115] = 49247828304; $ret[116] = 50264687204; $ret[117] = 51390894804; $ret[118] = 52635199004; $ret[119] = 54007047604; $ret[120] = 55544644116; $ret[121] = 57233248304; $ret[122] = 59112940804; $ret[123] = 61199008704; $ret[124] = 63507962004; $ret[125] = 66057631604; $ret[126] = 68895274804; $ret[127] = 72015929404; $ret[128] = 75498236460; $ret[129] = 79343128004; $ret[130] = 83607610904; $ret[131] = 84030285108; $ret[132] = 84514773324; $ret[133] = 85038020508; $ret[134] = 85631127556; $ret[135] = 86271683108; $ret[136] = 86991483108; $ret[137] = 87768867108; $ret[138] = 88636441808; $ret[139] = 89601422508; $ret[140] = 90671601708; $ret[141] = 91855395208; $ret[142] = 93161892208; $ret[143] = 94628908908; $ret[144] = 96241287008; $ret[145] = 98038655308; $ret[146] = 100035813140; $ret[147] = 102248743599; $ret[148] = 104694708308; $ret[149] = 107392350308; $ret[150] = 110389803708; $ret[151] = 113711053308; $ret[152] = 117382002908; $ret[153] = 121458628508; $ret[154] = 121678416812; $ret[155] = 121915788212; $ret[156] = 122172149312; $ret[157] = 122477019312; $ret[158] = 122806278912; $ret[159] = 123161879312; $ret[160] = 123573927712; $ret[161] = 124018940012; $ret[162] = 124527553324; $ret[163] = 125076855612; $ret[164] = 125698102112; $ret[165] = 126369048312; $ret[166] = 127121670212; $ret[167] = 127962501912; $ret[168] = 128870600112; $ret[169] = 129879346212; $ret[170] = 130996791912; $ret[171] = 132231633312; $ret[172] = 133621262012; $ret[173] = 135150061012; $ret[174] = 136857163912; $ret[175] = 138728835112; $ret[176] = 140806240012; $ret[177] = 143105837312; $ret[178] = 145673402312; $ret[179] = 148502372512; $ret[180] = 151641660412; $ret[181] = 155116091312; $ret[182] = 158980476712; $ret[183] = 163238012912; $ret[184] = 163681184716; $ret[185] = 164159810216; $ret[186] = 164704725816; $ret[187] = 165293234616; $ret[188] = 165956824116; $ret[189] = 166673500816; $ret[190] = 167475511616; $ret[191] = 168369683316; $ret[192] = 169363388716; $ret[193] = 170464590516; $ret[194] = 171681888516; $ret[195] = 173024570316; $ret[196] = 174530666757; $ret[197] = 176185250816; $ret[198] = 178028201616; $ret[199] = 180074588561; $ret[200] = 182340686316; $ret[201] = 184844072016; $ret[202] = 187603728516; $ret[203] = 190668157516; $ret[204] = 194061740916; $ret[205] = 197838810916; $ret[206] = 202002046516; $ret[207] = 202343373757; $ret[208] = 202712007020; $ret[209] = 203110131020; $ret[210] = 203568104920; $ret[211] = 204062716720; $ret[212] = 204624897520; $ret[213] = 205232052820; $ret[214] = 205915780520; $ret[215] = 206654206420; $ret[216] = 207479706420; $ret[217] = 208399246420; $ret[218] = 209420349620; $ret[219] = 210551141020; $ret[220] = 211800395720; $ret[221] = 213177590820; $ret[222] = 214720961520; $ret[223] = 216415801920; $ret[224] = 218302229520; $ret[225] = 220395571320; $ret[226] = 222712380520; $ret[227] = 225270534420; $ret[228] = 228117340620; $ret[229] = 231275891320; $ret[230] = 234771126120; $ret[231] = 238629979620; $ret[232] = 242909541420; $ret[233] = 243348500924; $ret[234] = 243850577124; $ret[235] = 244392819424; $ret[236] = 245006441124; $ret[237] = 245697152637; $ret[238] = 246443121024; $ret[239] = 247276766824; $ret[240] = 248205104324; $ret[241] = 249235708824; $ret[242] = 250376761724; $ret[243] = 251637098824; $ret[244] = 253026262924; $ret[245] = 254582560181; $ret[246] = 256291361124; $ret[247] = 258192866124; $ret[248] = 260302491524; $ret[249] = 262636887024; $ret[250] = 265214034124; $ret[251] = 268081353024; $ret[252] = 271262057424; $ret[253] = 274781218124; $ret[254] = 278665911724; $ret[255] = 282973380824;
- break;
- case 215:
- $ret[2] = 2150; $ret[3] = 4300; $ret[4] = 7883; $ret[5] = 14452; $ret[6] = 24774; $ret[7] = 42469; $ret[8] = 69012; $ret[9] = 112144; $ret[10] = 174446; $ret[11] = 271360; $ret[12] = 407040; $ret[13] = 610560; $ret[14] = 881920; $ret[15] = 1273884; $ret[16] = 1783437; $ret[17] = 2496811; $ret[18] = 3404742; $ret[19] = 4255927; $ret[20] = 5319908; $ret[21] = 6649885; $ret[22] = 8312356; $ret[23] = 10390445; $ret[24] = 12988056; $ret[25] = 16235070; $ret[26] = 20293837; $ret[27] = 23337912; $ret[28] = 26838598; $ret[29] = 30864387; $ret[30] = 35494045; $ret[31] = 40818151; $ret[32] = 46940800; $ret[33] = 53981900; $ret[34] = 62079100; $ret[35] = 71390900; $ret[36] = 82099500; $ret[37] = 94414400; $ret[38] = 108576500; $ret[39] = 124862900; $ret[40] = 143592300; $ret[41] = 165131100; $ret[42] = 189900700; $ret[43] = 218385800; $ret[44] = 251143600; $ret[45] = 288815100; $ret[46] = 332137300; $ret[47] = 381957800; $ret[48] = 439251400; $ret[49] = 505139100; $ret[50] = 580909900; $ret[51] = 668046300; $ret[52] = 768253200; $ret[53] = 883491100; $ret[54] = 1016014700; $ret[55] = 1133416905; $ret[56] = 1254424400; $ret[57] = 1386322500; $ret[58] = 1530091500; $ret[59] = 1680498800; $ret[60] = 1842938700; $ret[61] = 2018373700; $ret[62] = 2235843596; $ret[63] = 2470710900; $ret[64] = 2724367700; $ret[65] = 2998317100; $ret[66] = 3294182400; $ret[67] = 3641716900; $ret[68] = 4017054200; $ret[69] = 4450418536; $ret[70] = 4918451900; $ret[71] = 5423928000; $ret[72] = 5997842200; $ret[73] = 6617669500; $ret[74] = 7315083000; $ret[75] = 8096289600; $ret[76] = 8967992700; $ret[77] = 9909432100; $ret[78] = 10954186600; $ret[79] = 12110521500; $ret[80] = 13415363200; $ret[81] = 14852592200; $ret[82] = 16432799500; $ret[83] = 18195423400; $ret[84] = 20155057200; $ret[85] = 22327461700; $ret[86] = 24729658600; $ret[87] = 27380031200; $ret[88] = 30326433600; $ret[89] = 33592548200; $ret[90] = 37203952000; $ret[91] = 41216268100; $ret[92] = 41366602204; $ret[93] = 41528963004; $ret[94] = 41704312704; $ret[95] = 41893690404; $ret[96] = 42098218304; $ret[97] = 42347108404; $ret[98] = 42615909704; $ret[99] = 42906215104; $ret[100] = 43219745004; $ret[101] = 43586357304; $ret[102] = 43982298504; $ret[103] = 44409915004; $ret[104] = 44899740904; $ret[105] = 45428752804; $ret[106] = 46028085704; $ret[107] = 46703365264; $ret[108] = 47432667104; $ret[109] = 48248313104; $ret[110] = 49157210804; $ret[111] = 50166820304; $ret[112] = 51285198604; $ret[113] = 52521047104; $ret[114] = 53883763504; $ret[115] = 55383497204; $ret[116] = 57059209604; $ret[117] = 58924979004; $ret[118] = 60968010004; $ret[119] = 63230483504; $ret[120] = 65757954804; $ret[121] = 68543623804; $ret[122] = 71636146404; $ret[123] = 75060070804; $ret[124] = 78869909104; $ret[125] = 83068534504; $ret[126] = 83448082608; $ret[127] = 83857994608; $ret[128] = 84300699508; $ret[129] = 84806820808; $ret[130] = 85353431808; $ret[131] = 85971771708; $ret[132] = 86639578808; $ret[133] = 87388810508; $ret[134] = 88225980708; $ret[135] = 89158124508; $ret[136] = 90192839808; $ret[137] = 91338332308; $ret[138] = 92603464208; $ret[139] = 93997806708; $ret[140] = 95531696608; $ret[141] = 97244297708; $ret[142] = 99149906908; $ret[143] = 101263964808; $ret[144] = 103603147308; $ret[145] = 106185464408; $ret[146] = 109058366908; $ret[147] = 112245101608; $ret[148] = 115770775108; $ret[149] = 119662502508; $ret[150] = 123977568108; $ret[151] = 124454871612; $ret[152] = 124998359412; $ret[153] = 125585326212; $ret[154] = 126247250312; $ret[155] = 126990128412; $ret[156] = 127792436712; $ret[157] = 128686929712; $ret[158] = 129680982112; $ret[159] = 130782558712; $ret[160] = 132000261412; $ret[161] = 133371380436; $ret[162] = 134880188912; $ret[163] = 136537702112; $ret[164] = 138383816312; $ret[165] = 140433619712; $ret[166] = 142703407312; $ret[167] = 145210777912; $ret[168] = 148002738212; $ret[169] = 151102055380; $ret[170] = 154533317812; $ret[171] = 158323081312; $ret[172] = 162528025912; $ret[173] = 162886398716; $ret[174] = 163273441316; $ret[175] = 163719447416; $ret[176] = 164201133916; $ret[177] = 164749355416; $ret[178] = 165341434616; $ret[179] = 166008880116; $ret[180] = 166757721341; $ret[181] = 167566469816; $ret[182] = 168467918116; $ret[183] = 169469482316; $ret[184] = 170579171616; $ret[185] = 171805636116; $ret[186] = 173158217716; $ret[187] = 174675005916; $ret[188] = 176341137116; $ret[189] = 178196558816; $ret[190] = 180256414316; $ret[191] = 182537058216; $ret[192] = 185056153616; $ret[193] = 187860776616; $ret[194] = 190945769516; $ret[195] = 194361561816; $ret[196] = 198162617516; $ret[197] = 202379757716; $ret[198] = 202751301820; $ret[199] = 203152569420; $ret[200] = 203613938420; $ret[201] = 204112216920; $ret[202] = 204678357720; $ret[203] = 205289789820; $ret[204] = 205978136420; $ret[205] = 206721550820; $ret[206] = 207552438320; $ret[207] = 208477796820; $ret[208] = 209505184020; $ret[209] = 210642762220; $ret[210] = 211899346620; $ret[211] = 213284457820; $ret[212] = 214836377920; $ret[213] = 216540451620; $ret[214] = 218436851220; $ret[215] = 220540962720; $ret[216] = 222869403220; $ret[217] = 225440118920; $ret[218] = 228300491920; $ret[219] = 231473694720; $ret[220] = 234984753720; $ret[221] = 238860697420; $ret[222] = 243158716620; $ret[223] = 243645610124; $ret[224] = 244171455124; $ret[225] = 244767367724; $ret[226] = 245410953324; $ret[227] = 246134025724; $ret[228] = 246942943924; $ret[229] = 247816575624; $ret[230] = 248788097824; $ret[231] = 249865341824; $ret[232] = 251056765324; $ret[233] = 252399502724; $ret[234] = 253877659124; $ret[235] = 255502068024; $ret[236] = 257312429624; $ret[237] = 259323620124; $ret[238] = 261551705924; $ret[239] = 264014038524; $ret[240] = 266757357829; $ret[241] = 269776142624; $ret[242] = 273120430224; $ret[243] = 276844260824; $ret[244] = 280949997824; $ret[245] = 281201226528; $ret[246] = 281500553528; $ret[247] = 281823826628; $ret[248] = 282172961628; $ret[249] = 282578027428; $ret[250] = 283015498428; $ret[251] = 283515967230; $ret[252] = 284056473428; $ret[253] = 284668220128; $ret[254] = 285328906628; $ret[255] = 286070448028;
- break;
- case 295:
- $ret[2] = 2950; $ret[3] = 5900; $ret[4] = 10816; $ret[5] = 19829; $ret[6] = 33992; $ret[7] = 58272; $ret[8] = 94692; $ret[9] = 153874; $ret[10] = 239359; $ret[11] = 372336; $ret[12] = 558504; $ret[13] = 837756; $ret[14] = 1210092; $ret[15] = 1747910; $ret[16] = 2447074; $ret[17] = 3425903; $ret[18] = 4671685; $ret[19] = 5839606; $ret[20] = 7299507; $ret[21] = 9124383; $ret[22] = 11405478; $ret[23] = 14256847; $ret[24] = 17821058; $ret[25] = 22276322; $ret[26] = 27845402; $ret[27] = 32022212; $ret[28] = 36825543; $ret[29] = 42349374; $ret[30] = 48701600; $ret[31] = 56006800; $ret[32] = 64407800; $ret[33] = 74068900; $ret[34] = 85179200; $ret[35] = 97956000; $ret[36] = 112649400; $ret[37] = 129546800; $ret[38] = 148978800; $ret[39] = 171325600; $ret[40] = 197024400; $ret[41] = 226578000; $ret[42] = 260564700; $ret[43] = 299649400; $ret[44] = 344596800; $ret[45] = 396286300; $ret[46] = 455729200; $ret[47] = 524088500; $ret[48] = 602701700; $ret[49] = 693106900; $ret[50] = 797072900; $ret[51] = 916633800; $ret[52] = 1054128800; $ret[53] = 1177248100; $ret[54] = 1318835300; $ret[55] = 1481660500; $ret[56] = 1634009900; $ret[57] = 1800070700; $ret[58] = 1981077000; $ret[59] = 2167563100; $ret[60] = 2396968100; $ret[61] = 2644725500; $ret[62] = 2912303500; $ret[63] = 3201287700; $ret[64] = 3541390700; $ret[65] = 3908701900; $ret[66] = 4305398000; $ret[67] = 4761829800; $ret[68] = 5254776100; $ret[69] = 5815158100; $ret[70] = 6420370700; $ret[71] = 7102000300; $ret[72] = 7866160300; $ret[73] = 8691453100; $ret[74] = 9610769300; $ret[75] = 10631630800; $ret[76] = 11762161200; $ret[77] = 13011134000; $ret[78] = 14416024720; $ret[79] = 15961306600; $ret[80] = 17658211100; $ret[81] = 19546867900; $ret[82] = 21642617300; $ret[83] = 23962026600; $ret[84] = 26522988700; $ret[85] = 29372827700; $ret[86] = 32534653900; $ret[87] = 36033426200; $ret[88] = 39924100296; $ret[89] = 44210028200; $ret[90] = 44683863104; $ret[91] = 45195604804; $ret[92] = 45776285804; $ret[93] = 46403421304; $ret[94] = 47108727704; $ret[95] = 47898458604; $ret[96] = 48751367904; $ret[97] = 49700510004; $ret[98] = 50753583504; $ret[99] = 51918902804; $ret[100] = 53205447704; $ret[101] = 54650916204; $ret[102] = 56240022104; $ret[103] = 58012256504; $ret[104] = 59982269728; $ret[105] = 62137883904; $ret[106] = 64549947304; $ret[107] = 67210975704; $ret[108] = 70168886404; $ret[109] = 73447430004; $ret[110] = 77072257104; $ret[111] = 81099070304; $ret[112] = 81265061308; $ret[113] = 81444331608; $ret[114] = 81637943508; $ret[115] = 81847044308; $ret[116] = 82072873208; $ret[117] = 82344768408; $ret[118] = 82638415208; $ret[119] = 82955553808; $ret[120] = 83298063508; $ret[121] = 83695973908; $ret[122] = 84125717208; $ret[123] = 84617839908; $ret[124] = 85149332408; $ret[125] = 85751344308; $ret[126] = 86401517208; $ret[127] = 87131703908; $ret[128] = 87948305608; $ret[129] = 88830235408; $ret[130] = 89810719608; $ret[131] = 90897642508; $ret[132] = 92099519308; $ret[133] = 93453546208; $ret[134] = 94943895208; $ret[135] = 96581472208; $ret[136] = 98406055308; $ret[137] = 100432605108; $ret[138] = 102677278908; $ret[139] = 105157526608; $ret[140] = 107920194108; $ret[141] = 110959875008; $ret[142] = 114326730408; $ret[143] = 118074934208; $ret[144] = 122234994308; $ret[145] = 122544891912; $ret[146] = 122879581312; $ret[147] = 123241045912; $ret[148] = 123659427612; $ret[149] = 124111279912; $ret[150] = 124627280312; $ret[151] = 125184560812; $ret[152] = 125814423712; $ret[153] = 126494675612; $ret[154] = 127257347712; $ret[155] = 128109033612; $ret[156] = 129056854312; $ret[157] = 130108500712; $ret[158] = 131272278812; $ret[159] = 132557159212; $ret[160] = 133972830012; $ret[161] = 135529754512; $ret[162] = 137267232912; $ret[163] = 139199709612; $ret[164] = 141342784412; $ret[165] = 143713305212; $ret[166] = 146329467712; $ret[167] = 149238923212; $ret[168] = 152465135112; $ret[169] = 156033444012; $ret[170] = 159999217644; $ret[171] = 164366253112; $ret[172] = 164927684116; $ret[173] = 165534029616; $ret[174] = 166216882716; $ret[175] = 166982364116; $ret[176] = 167809084016; $ret[177] = 168729941516; $ret[178] = 169752467616; $ret[179] = 170884795816; $ret[180] = 172135710216; $ret[181] = 173542697816; $ret[182] = 175090244416; $ret[183] = 176817594716; $ret[184] = 178711133016; $ret[185] = 180812154416; $ret[186] = 183137257516; $ret[187] = 185732368916; $ret[188] = 188591089216; $ret[189] = 191762507116; $ret[190] = 195271638416; $ret[191] = 199173500216; $ret[192] = 199204543720; $ret[193] = 199238070620; $ret[194] = 199274279720; $ret[195] = 199313385520; $ret[196] = 199355619820; $ret[197] = 199401232820; $ret[198] = 199450494920; $ret[199] = 199503697920; $ret[200] = 199561157220; $ret[201] = 199623213220; $ret[202] = 199690233720; $ret[203] = 199762615820; $ret[204] = 199840788520; $ret[205] = 199925215020; $ret[206] = 200016395720; $ret[207] = 200142870897; $ret[208] = 200279463920; $ret[209] = 200426984520; $ret[210] = 200586306720; $ret[211] = 200758374720; $ret[212] = 200944208120; $ret[213] = 201144908220; $ret[214] = 201389664320; $ret[215] = 201654000920; $ret[216] = 201939484420; $ret[217] = 202247806620; $ret[218] = 202608794620; $ret[219] = 202998661620; $ret[220] = 203419718020; $ret[221] = 203902458920; $ret[222] = 204423819120; $ret[223] = 205014888120; $ret[224] = 205681242689; $ret[225] = 206400905520; $ret[226] = 207206141420; $ret[227] = 208103796220; $ret[228] = 209101263320; $ret[229] = 210206527820; $ret[230] = 211428213520; $ret[231] = 212775634020; $ret[232] = 214258848220; $ret[233] = 215916719520; $ret[234] = 217735220520; $ret[235] = 219755201620; $ret[236] = 221992781220; $ret[237] = 224465367120; $ret[238] = 227219759920; $ret[239] = 230278504120; $ret[240] = 233665947920; $ret[241] = 237408387220; $ret[242] = 241562221620; $ret[243] = 241865395524; $ret[244] = 242192823324; $ret[245] = 242574445324; $ret[246] = 242986597124; $ret[247] = 243431721024; $ret[248] = 243940454824; $ret[249] = 244489887324; $ret[250] = 245111274424; $ret[251] = 245810372524; $ret[252] = 246565398524; $ret[253] = 247408826524; $ret[254] = 248347728824; $ret[255] = 249389743324;
- break;
- case 300:
- $ret[2] = 3000; $ret[3] = 6000; $ret[4] = 11000; $ret[5] = 20166; $ret[6] = 34570; $ret[7] = 59262; $ret[8] = 96300; $ret[9] = 156487; $ret[10] = 243424; $ret[11] = 378659; $ret[12] = 567988; $ret[13] = 851982; $ret[14] = 1230640; $ret[15] = 1777591; $ret[16] = 2488627; $ret[17] = 3484077; $ret[18] = 4751014; $ret[19] = 5938767; $ret[20] = 7423458; $ret[21] = 9279322; $ret[22] = 11599152; $ret[23] = 14498940; $ret[24] = 18123675; $ret[25] = 22654593; $ret[26] = 28318241; $ret[27] = 32565977; $ret[28] = 37450873; $ret[29] = 43068400; $ret[30] = 49528600; $ret[31] = 56957800; $ret[32] = 65501400; $ret[33] = 75326600; $ret[34] = 86625500; $ret[35] = 99619300; $ret[36] = 114562100; $ret[37] = 131746400; $ret[38] = 151508300; $ret[39] = 174234500; $ret[40] = 200369600; $ret[41] = 230425000; $ret[42] = 264988700; $ret[43] = 304737000; $ret[44] = 350447500; $ret[45] = 403014600; $ret[46] = 463466700; $ret[47] = 532986700; $ret[48] = 612934700; $ret[49] = 704874900; $ret[50] = 810606100; $ret[51] = 932197000; $ret[52] = 1072026500; $ret[53] = 1197830400; $ret[54] = 1342504900; $ret[55] = 1508880600; $ret[56] = 1663679800; $ret[57] = 1832410900; $ret[58] = 2016327800; $ret[59] = 2233634024; $ret[60] = 2468324700; $ret[61] = 2721790600; $ret[62] = 2995533800; $ret[63] = 3291176500; $ret[64] = 3638470600; $ret[65] = 4013548200; $ret[66] = 4446632056; $ret[67] = 4914362500; $ret[68] = 5419511500; $ret[69] = 5993072400; $ret[70] = 6612518100; $ret[71] = 7309519500; $ret[72] = 8090281000; $ret[73] = 8961503400; $ret[74] = 9902423600; $ret[75] = 10946617400; $ret[76] = 12102346700; $ret[77] = 13406534400; $ret[78] = 14843057100; $ret[79] = 16422501600; $ret[80] = 18184301700; $ret[81] = 20143045800; $ret[82] = 22314489400; $ret[83] = 24715648500; $ret[84] = 27364900300; $ret[85] = 30310092300; $ret[86] = 33574899600; $ret[87] = 37184891500; $ret[88] = 41195682800; $ret[89] = 41344370104; $ret[90] = 41504952404; $ret[91] = 41678381204; $ret[92] = 41865684304; $ret[93] = 42067971704; $ret[94] = 42314442104; $ret[95] = 42580630104; $ret[96] = 42868113204; $ret[97] = 43178594904; $ret[98] = 43541915104; $ret[99] = 43934301004; $ret[100] = 44358077704; $ret[101] = 44843756604; $ret[102] = 45368289804; $ret[103] = 45962785604; $ret[104] = 46604841104; $ret[105] = 47326261004; $ret[106] = 48133394504; $ret[107] = 49033098704; $ret[108] = 50032779304; $ret[109] = 51140434352; $ret[110] = 52364701704; $ret[111] = 53714910504; $ret[112] = 55201136004; $ret[113] = 56862259504; $ret[114] = 58684272904; $ret[115] = 60708047404; $ret[116] = 62949723804; $ret[117] = 65426734404; $ret[118] = 68185905804; $ret[119] = 71249810904; $ret[120] = 74642828404; $ret[121] = 78391287304; $ret[122] = 82551622904; $ret[123] = 82861818108; $ret[124] = 83196828908; $ret[125] = 83586640608; $ret[126] = 84007637208; $ret[127] = 84490313592; $ret[128] = 85011603908; $ret[129] = 85602597628; $ret[130] = 86240870808; $ret[131] = 86958205808; $ret[132] = 87732927608; $ret[133] = 88597627208; $ret[134] = 89559502708; $ret[135] = 90626328308; $ret[136] = 91806499908; $ret[137] = 93109085208; $ret[138] = 94571877408; $ret[139] = 96179692908; $ret[140] = 97972133708; $ret[141] = 99935969708; $ret[142] = 102112912608; $ret[143] = 104548011008; $ret[144] = 107233917208; $ret[145] = 110218695908; $ret[146] = 113526256908; $ret[147] = 117182422808; $ret[148] = 121243082008; $ret[149] = 121445626612; $ret[150] = 121664374812; $ret[151] = 121900622812; $ret[152] = 122155770712; $ret[153] = 122459330412; $ret[154] = 122787174912; $ret[155] = 123141246912; $ret[156] = 123551644712; $ret[157] = 123994874312; $ret[158] = 124473562312; $ret[159] = 125018545312; $ret[160] = 125635127048; $ret[161] = 126301035212; $ret[162] = 127048216112; $ret[163] = 127883171412; $ret[164] = 128784923212; $ret[165] = 129786815112; $ret[166] = 130896858412; $ret[167] = 132123705112; $ret[168] = 133504699612; $ret[169] = 135024173612; $ret[170] = 136721205612; $ret[171] = 138582000112; $ret[172] = 140647658212; $ret[173] = 142934568912; $ret[174] = 145460432512; $ret[175] = 148272365212; $ret[176] = 151393252512; $ret[177] = 154847810812; $ret[178] = 158662733712; $ret[179] = 162894850412; $ret[180] = 163282569216; $ret[181] = 163729305516; $ret[182] = 164211780716; $ret[183] = 164760853916; $ret[184] = 165353853016; $ret[185] = 166022292016; $ret[186] = 166772206193; $ret[187] = 167582113316; $ret[188] = 168484813116; $ret[189] = 169487728916; $ret[190] = 170598878016; $ret[191] = 171826919016; $ret[192] = 173181203316; $ret[193] = 174699830316; $ret[194] = 176367947516; $ret[195] = 178225514116; $ret[196] = 180287686016; $ret[197] = 182570831616; $ret[198] = 185092628916; $ret[199] = 187900170016; $ret[200] = 190988314416; $ret[201] = 194407510316; $ret[202] = 198212241916; $ret[203] = 202433352016; $ret[204] = 202809183620; $ret[205] = 203215081720; $ret[206] = 203681451720; $ret[207] = 204185131320; $ret[208] = 204757105320; $ret[209] = 205374837220; $ret[210] = 206069987620; $ret[211] = 206848750120; $ret[212] = 207689813620; $ret[213] = 208626162120; $ret[214] = 209665418520; $ret[215] = 210815815420; $ret[216] = 212086244120; $ret[217] = 213514307120; $ret[218] = 215084615120; $ret[219] = 216836547820; $ret[220] = 218756635120; $ret[221] = 220886329420; $ret[222] = 223242399220; $ret[223] = 225870954620; $ret[224] = 228765794420; $ret[225] = 231976221420; $ret[226] = 235527482620; $ret[227] = 239474844720; $ret[228] = 239555028424; $ret[229] = 239641626824; $ret[230] = 239735153124; $ret[231] = 239836161524; $ret[232] = 239945250624; $ret[233] = 240063066824; $ret[234] = 240218308324; $ret[235] = 240385969124; $ret[236] = 240567042824; $ret[237] = 240762602424; $ret[238] = 240973806724; $ret[239] = 241201907424; $ret[240] = 241476256124; $ret[241] = 241772552724; $ret[242] = 242092553124; $ret[243] = 242466153524; $ret[244] = 242869641924; $ret[245] = 243305409424; $ret[246] = 243804038324; $ret[247] = 244342557524; $ret[248] = 244952158324; $ret[249] = 245610527124; $ret[250] = 246349565424; $ret[251] = 247175726824; $ret[252] = 248095981124; $ret[253] = 249117855724; $ret[254] = 250249480324; $ret[255] = 251499634924;
- break;
- }
- return $ret;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement