Knowledge

Pairing function

Source 📝

596: 4814: 588: 5238: 4541: 4934: 2932: 25: 4809:{\displaystyle \operatorname {ElegantUnpair} :={\begin{cases}\left\{z-\lfloor {\sqrt {z}}\rfloor ^{2},\lfloor {\sqrt {z}}\rfloor \right\}&{\text{if }}z-\lfloor {\sqrt {z}}\rfloor ^{2}<\lfloor {\sqrt {z}}\rfloor ,\\\left\{\lfloor {\sqrt {z}}\rfloor ,z-\lfloor {\sqrt {z}}\rfloor ^{2}-\lfloor {\sqrt {z}}\rfloor \right\}&{\text{if }}z-\lfloor {\sqrt {z}}\rfloor ^{2}\geq \lfloor {\sqrt {z}}\rfloor .\end{cases}}} 5233:{\displaystyle (\alpha ,\beta )\preccurlyeq (\gamma ,\delta ){\text{ if either }}{\begin{cases}(\alpha ,\beta )=(\gamma ,\delta ),\\\max(\alpha ,\beta )<\max(\gamma ,\delta ),\\\max(\alpha ,\beta )=\max(\gamma ,\delta )\ {\text{and}}\ \alpha <\gamma ,{\text{ or}}\\\max(\alpha ,\beta )=\max(\gamma ,\delta )\ {\text{and}}\ \alpha =\gamma \ {\text{and}}\ \beta <\delta .\end{cases}}} 4313: 3730: 4019: 4530: 4143: 1638: 3416: 4122:, which is doubtful). In fact, both this pairing function and its inverse can be computed with finite-state transducers that run in real time. In the same paper, the author proposed two more monotone pairing functions that can be 3829: 801: 3049:
The function must also define what to do when it hits the boundaries of the 1st quadrant – Cantor's pairing function resets back to the x-axis to resume its diagonal progression one step further out, or algebraically:
2482: 2576: 4393: 215: 656: 2339: 1063: 370: 5360: 1323: 1193: 980: 2033: 1741: 1431: 2411: 1908: 577: 3834: 3421: 3239: 3135:
Assume that there is a quadratic 2-dimensional polynomial that can fit these conditions (if there were not, one could just repeat by trying a higher-degree polynomial). The general form is then
880: 2213: 4308:{\displaystyle \langle i,j\rangle _{P}={\begin{cases}T&{\text{if}}\ i=j=0;\\\langle \lfloor i/2\rfloor ,\lfloor j/2\rfloor \rangle _{P}:i_{0}:j_{0}&{\text{otherwise,}}\end{cases}}} 3347: 5394: 4109: 3043: 3119: 426: 2625: 4926: 1236: 1106: 5318: 4876: 1810: 1776: 1468: 2141: 5285: 5260: 2947:. The algebraic rules of this diagonal-shaped function can verify its validity for a range of polynomials, of which a quadratic will turn out to be the simplest, using the 4843: 504: 465: 2935:
A diagonally incrementing "snaking" function, from same principles as Cantor's pairing function, is often used to demonstrate the countability of the rational numbers.
2696: 4896: 2659: 2067: 1953: 1460: 4370: 4343: 265: 3725:{\displaystyle {\begin{aligned}\pi (x,y)+1&=a(x^{2}+y^{2})+cxy+(1-a)x+(1+a)y+1\\&=a((x-1)^{2}+(y+1)^{2})+c(x-1)(y+1)+(1-a)(x-1)+(1+a)(y+1).\end{aligned}}} 4014:{\displaystyle {\begin{aligned}\pi (x,y)&={\frac {1}{2}}(x^{2}+y^{2})+xy+{\frac {1}{2}}x+{\frac {3}{2}}y\\&={\frac {1}{2}}(x+y)(x+y+1)+y,\end{aligned}}} 2951:. Indeed, this same technique can also be followed to try and derive any number of other functions for any variety of schemes for enumerating the plane. 667: 5397: 2422: 2519: 4525:{\displaystyle \operatorname {ElegantPair} :={\begin{cases}y^{2}+x&{\text{if}}\ x<y,\\x^{2}+x+y&{\text{if}}\ x\geq y.\\\end{cases}}} 173: 617: 2230: 282: 5323: 4024:
is the Cantor pairing function, and we also demonstrated through the derivation that this satisfies all the conditions of induction.
888: 1959: 1646: 1380: 2350: 988: 89: 1818: 1241: 1111: 509: 61: 3141: 1332:. Whether this is the only polynomial pairing function is still an open question. When we apply the pairing function to 68: 4981: 809: 5396:
and the pairing function above is nothing more than the enumeration of integer couples in increasing order. (See also
5621: 2164: 108: 42: 5511: 3258: 4819:(Qualitatively, it assigns consecutive numbers to pairs along the edges of squares.) This pairing function orders 75: 5653: 4899: 5365: 4035: 2974: 46: 2939:
The graphical shape of Cantor's pairing function, a diagonal progression, is a standard trick in working with
5421: 3056: 375: 57: 2582: 4905: 608: 5290: 4848: 1781: 1633:{\displaystyle \pi ^{(n)}(k_{1},\ldots ,k_{n-1},k_{n}):=\pi (\pi ^{(n-1)}(k_{1},\ldots ,k_{n-1}),k_{n})} 1329: 1753: 1198: 1068: 4568: 4426: 4177: 2097: 5265: 5245: 4826: 3125:
Also we need to define the starting point, what will be the initial step in our induction method:
4118:
and with constant space (as the previously known examples can only be computed in linear time if
35: 5416:
The term "diagonal argument" is sometimes used to refer to this type of enumeration, but it is
4820: 470: 431: 2968:
th pair? The way Cantor's function progresses diagonally across the plane can be expressed as
2665: 82: 5648: 4881: 4373: 2631: 2039: 1925: 1439: 4348: 4321: 243: 8: 5643: 4119: 2948: 2706: 5537: 4387:
In 2006, Szudzik proposed a "more elegant" pairing function defined by the expression:
2702: 2089: 591:
The Cantor pairing function assigns one natural number to each pair of natural numbers
5617: 5585: 5580: 5563: 5464: 4127: 2940: 2079: 1919:
is invertible. It is helpful to define some intermediate values in the calculation:
428:. This is the same as the Cantor pairing function below, shifted to exclude 0 (i.e., 5609: 5575: 4134: 4123: 796:{\displaystyle \pi (k_{1},k_{2}):={\frac {1}{2}}(k_{1}+k_{2})(k_{1}+k_{2}+1)+k_{2}} 595: 145: 4114:
In 1990, Regan proposed the first known pairing function that is computable in
2492: 1328:
The statement that this is the only quadratic pairing function is known as the
130: 587: 5637: 5589: 1778:
be an arbitrary natural number. We will show that there exist unique values
5536:
Szudzik, Matthew P. (2017-06-01). "The Rosenberg-Strong Pairing Function".
2954:
A pairing function can usually be defined inductively – that is, given the
2944: 2477:{\displaystyle w=\left\lfloor {\frac {{\sqrt {8z+1}}-1}{2}}\right\rfloor .} 5613: 3410:, and we have a final equation, our diagonal step, that will relate them: 2571:{\displaystyle w=\left\lfloor {\frac {{\sqrt {8z+1}}-1}{2}}\right\rfloor } 4115: 149: 122: 5500: 137: 4845:
of the idea, found in most textbooks on Set Theory, used to establish
5469: 985:
It is also strictly monotonic w.r.t. each argument, that is, for all
210:{\displaystyle \pi :\mathbb {N} \times \mathbb {N} \to \mathbb {N} .} 165: 2931: 651:{\displaystyle \pi :\mathbb {N} \times \mathbb {N} \to \mathbb {N} } 24: 5608:. Springer Monographs in Mathematics. Springer-Verlag. p. 30. 5542: 2334:{\displaystyle t\leq z=t+y<t+(w+1)={\frac {(w+1)^{2}+(w+1)}{2}}} 365:{\displaystyle \langle i,j\rangle :={\frac {1}{2}}(i+j-2)(i+j-1)+i} 279:
Hopcroft and Ullman (1979) define the following pairing function:
141: 5262:
is then shown to be a well-ordering such that every element has
5355:{\displaystyle (\mathbb {N} \times \mathbb {N} ,\preccurlyeq )} 4823:
expressions by depth. This method is the mere application to
2701:
Since the Cantor pairing function is invertible, it must be
2218:
which is a strictly increasing and continuous function when
975:{\displaystyle \pi (x,y):={\frac {x^{2}+x+2xy+3y+y^{2}}{2}}} 5226: 4802: 4518: 4301: 2028:{\displaystyle t={\frac {1}{2}}w(w+1)={\frac {w^{2}+w}{2}}} 1736:{\displaystyle \pi ^{(2)}(k_{1},k_{2}):=\pi (k_{1},k_{2}).} 1426:{\displaystyle \pi ^{(n)}:\mathbb {N} ^{n}\to \mathbb {N} } 4130:; the first can also be computed offline with zero space. 2406:{\displaystyle w\leq {\frac {{\sqrt {8z+1}}-1}{2}}<w+1} 16:
Function uniquely mapping two numbers into a single number
5461: 1058:{\displaystyle k_{1},k_{1}',k_{2},k_{2}'\in \mathbb {N} } 5398:
Talk:Tarski's theorem about choice#Proof of the converse
1745: 1903:{\displaystyle z=\pi (x,y)={\frac {(x+y+1)(x+y)}{2}}+y} 1318:{\displaystyle \pi (k_{1},k_{2})<\pi (k_{1},k_{2}')} 1188:{\displaystyle \pi (k_{1},k_{2})<\pi (k_{1}',k_{2})} 572:{\displaystyle \langle i,j\rangle -1=\pi (k_{2},k_{1})} 274: 1371:
This definition can be inductively generalized to the
5368: 5326: 5293: 5268: 5248: 4937: 4908: 4884: 4851: 4829: 4544: 4396: 4351: 4324: 4146: 4133:
In 2001, Pigeon proposed a pairing function based on
4038: 3832: 3735:
Expand and match terms again to get fixed values for
3419: 3261: 3144: 3059: 2977: 2668: 2634: 2585: 2522: 2425: 2353: 2233: 2167: 2100: 2042: 1962: 1928: 1821: 1784: 1756: 1649: 1471: 1442: 1383: 1244: 1201: 1114: 1071: 991: 891: 812: 670: 620: 512: 473: 434: 378: 285: 246: 176: 3245:Plug in our initial and boundary conditions to get 3234:{\displaystyle \pi (x,y)=ax^{2}+by^{2}+cxy+dx+ey+f} 224:is a function that maps each pair of elements from 49:. Unsourced material may be challenged and removed. 5388: 5354: 5312: 5279: 5254: 5232: 4920: 4890: 4870: 4837: 4808: 4524: 4364: 4337: 4307: 4103: 4013: 3724: 3341: 3233: 3113: 3037: 2690: 2653: 2619: 2570: 2476: 2405: 2333: 2207: 2135: 2061: 2027: 1947: 1902: 1804: 1770: 1735: 1632: 1454: 1425: 1317: 1230: 1187: 1100: 1057: 974: 874: 795: 650: 571: 498: 459: 420: 364: 259: 209: 2687: 2650: 2132: 2058: 1944: 875:{\displaystyle k_{1},k_{2}\in \{0,1,2,3,\dots \}} 5635: 5162: 5141: 5091: 5070: 5045: 5024: 2208:{\displaystyle w={\frac {{\sqrt {8t+1}}-1}{2}}} 3398:So every parameter can be written in terms of 3342:{\displaystyle bk^{2}+ek+1=a(k+1)^{2}+d(k+1)} 1643:with the base case defined above for a pair: 4793: 4783: 4771: 4760: 4739: 4729: 4717: 4706: 4694: 4684: 4669: 4659: 4647: 4636: 4615: 4605: 4593: 4582: 4535:Which can be unpaired using the expression: 4256: 4252: 4238: 4232: 4218: 4215: 4160: 4147: 869: 839: 525: 513: 415: 391: 298: 286: 220:More generally, a pairing function on a set 4027: 582: 236:are associated with different elements of 5579: 5541: 5389:{\displaystyle (\mathbb {N} ,\leqslant )} 5373: 5339: 5331: 4831: 4104:{\displaystyle P_{2}(x,y):=2^{x}(2y+1)-1} 3038:{\displaystyle \pi (x,y)+1=\pi (x-1,y+1)} 1798: 1764: 1419: 1405: 1051: 644: 636: 628: 232:, such that any two pairs of elements of 200: 192: 184: 109:Learn how and when to remove this message 5606:Set theory: the third millennium edition 2930: 1350:we often denote the resulting number as 594: 586: 5568:Journal of Computer and System Sciences 5535: 5498: 3114:{\displaystyle \pi (0,k)+1=\pi (k+1,0)} 421:{\displaystyle i,j\in \{1,2,3,\dots \}} 5636: 5603: 5564:"Minimum-complexity pairing functions" 2620:{\displaystyle t={\frac {w^{2}+w}{2}}} 5561: 5517:from the original on 25 November 2011 5462: 4921:{\displaystyle \kappa \times \kappa } 1746:Inverting the Cantor pairing function 5557: 5555: 5553: 5494: 5492: 5490: 5488: 5457: 5455: 5453: 5451: 5449: 5447: 5445: 5443: 5441: 599:Graph of the Cantor pairing function 275:Hopcroft and Ullman pairing function 136:Any pairing function can be used in 129:is a process to uniquely encode two 47:adding citations to reliable sources 18: 5313:{\displaystyle \kappa ^{2}=\kappa } 4871:{\displaystyle \kappa ^{2}=\kappa } 1805:{\displaystyle x,y\in \mathbb {N} } 13: 14: 5665: 5550: 5485: 5438: 5287:predecessors, which implies that 1771:{\displaystyle z\in \mathbb {N} } 5562:Regan, Kenneth W. (1992-12-01). 23: 1231:{\displaystyle k_{2}<k_{2}'} 1101:{\displaystyle k_{1}<k_{1}'} 34:needs additional citations for 5596: 5529: 5410: 5383: 5369: 5349: 5327: 5177: 5165: 5156: 5144: 5106: 5094: 5085: 5073: 5060: 5048: 5039: 5027: 5014: 5002: 4996: 4984: 4968: 4956: 4950: 4938: 4557: 4551: 4415: 4403: 4092: 4077: 4061: 4049: 3995: 3977: 3974: 3962: 3898: 3872: 3852: 3840: 3712: 3700: 3697: 3685: 3679: 3667: 3664: 3652: 3646: 3634: 3631: 3619: 3610: 3601: 3588: 3576: 3563: 3560: 3535: 3523: 3514: 3502: 3484: 3458: 3439: 3427: 3336: 3324: 3309: 3296: 3160: 3148: 3108: 3090: 3075: 3063: 3032: 3008: 2993: 2981: 2322: 2310: 2298: 2285: 2276: 2264: 2136:{\displaystyle w^{2}+w-2t=0\!} 1994: 1982: 1885: 1873: 1870: 1852: 1843: 1831: 1727: 1701: 1692: 1666: 1661: 1655: 1627: 1611: 1573: 1568: 1556: 1548: 1539: 1488: 1483: 1477: 1415: 1395: 1389: 1312: 1283: 1274: 1248: 1182: 1153: 1144: 1118: 907: 895: 777: 745: 742: 716: 700: 674: 640: 566: 540: 353: 335: 332: 314: 196: 133:into a single natural number. 1: 5501:"An Elegant Pairing Function" 5431: 5280:{\displaystyle {}<\kappa } 5255:{\displaystyle \preccurlyeq } 2926: 2224:is non-negative real. Since 155: 5581:10.1016/0022-0000(92)90027-G 4838:{\displaystyle \mathbb {N} } 1913:and hence that the function 885:It can also be expressed as 7: 3747:, and thus all parameters: 2712: 10: 5670: 5422:Cantor's diagonal argument 4878:for any infinite cardinal 4137:, defined recursively as: 5499:Szudzik, Matthew (2006). 4120:multiplication can be too 499:{\displaystyle j=k_{1}+1} 460:{\displaystyle i=k_{2}+1} 5403: 4126:in linear time and with 2691:{\displaystyle x=w-y.\!} 4891:{\displaystyle \kappa } 4111:is a pairing function. 4028:Other pairing functions 2654:{\displaystyle y=z-t\!} 2062:{\displaystyle z=t+y\!} 1948:{\displaystyle w=x+y\!} 605:Cantor pairing function 583:Cantor pairing function 5654:Functions and mappings 5390: 5356: 5314: 5281: 5256: 5234: 4922: 4892: 4872: 4839: 4821:SK combinator calculus 4810: 4526: 4374:least significant bits 4366: 4339: 4309: 4105: 4015: 3726: 3343: 3235: 3115: 3039: 2936: 2692: 2655: 2621: 2572: 2478: 2407: 2335: 2209: 2137: 2063: 2029: 1949: 1904: 1806: 1772: 1737: 1634: 1456: 1455:{\displaystyle n>2} 1427: 1319: 1232: 1189: 1102: 1059: 976: 876: 797: 652: 600: 592: 573: 500: 461: 422: 366: 261: 211: 5614:10.1007/3-540-44761-X 5604:Thomas, Jech (2006). 5391: 5357: 5315: 5282: 5257: 5235: 4973: if either  4923: 4893: 4873: 4840: 4811: 4527: 4367: 4365:{\displaystyle j_{0}} 4340: 4338:{\displaystyle i_{0}} 4310: 4106: 4016: 3727: 3344: 3236: 3116: 3040: 2960:th pair, what is the 2934: 2825:107.037 − 1 = 106.037 2693: 2656: 2622: 2573: 2479: 2408: 2336: 2210: 2138: 2064: 2030: 1950: 1905: 1807: 1773: 1738: 1635: 1457: 1428: 1373:Cantor tuple function 1320: 1233: 1190: 1103: 1060: 977: 877: 798: 653: 598: 590: 574: 501: 462: 423: 367: 262: 260:{\displaystyle A^{2}} 212: 5420:directly related to 5366: 5324: 5291: 5266: 5246: 4935: 4928:the binary relation 4906: 4882: 4849: 4827: 4542: 4394: 4349: 4322: 4144: 4036: 3830: 3417: 3353:so we can match our 3259: 3142: 3057: 2975: 2831:106.037 ÷ 2 = 53.019 2666: 2632: 2583: 2520: 2423: 2351: 2231: 2165: 2098: 2040: 1960: 1926: 1819: 1782: 1754: 1647: 1469: 1440: 1381: 1330:Fueter–Pólya theorem 1242: 1199: 1112: 1069: 989: 889: 810: 668: 618: 510: 471: 432: 376: 283: 244: 240:or a bijection from 174: 152:as natural numbers. 43:improve this article 2949:method of induction 1311: 1227: 1168: 1097: 1046: 1017: 609:primitive recursive 228:into an element of 5465:"Pairing function" 5386: 5352: 5320:. It follows that 5310: 5277: 5252: 5230: 5225: 4918: 4888: 4868: 4835: 4806: 4801: 4522: 4517: 4362: 4335: 4305: 4300: 4101: 4011: 4009: 3722: 3720: 3339: 3231: 3111: 3035: 2941:infinite sequences 2937: 2688: 2651: 2617: 2568: 2495:. So to calculate 2474: 2403: 2331: 2205: 2133: 2090:quadratic equation 2088:. If we solve the 2059: 2025: 1945: 1900: 1802: 1768: 1733: 1630: 1452: 1423: 1315: 1299: 1228: 1215: 1185: 1156: 1098: 1085: 1055: 1034: 1005: 972: 872: 793: 648: 601: 593: 569: 496: 457: 418: 362: 257: 207: 58:"Pairing function" 5602:See for instance 5362:is isomorphic to 5210: 5206: 5202: 5190: 5186: 5182: 5135: 5119: 5115: 5111: 4974: 4791: 4768: 4752: 4737: 4714: 4692: 4667: 4644: 4628: 4613: 4590: 4502: 4498: 4454: 4450: 4296: 4192: 4188: 4128:logarithmic space 3960: 3937: 3921: 3870: 2807:11456 + 1 = 11457 2615: 2562: 2550: 2465: 2453: 2389: 2377: 2329: 2203: 2191: 2152:as a function of 2023: 1977: 1892: 970: 714: 611:pairing function 312: 119: 118: 111: 93: 5661: 5628: 5627: 5600: 5594: 5593: 5583: 5559: 5548: 5547: 5545: 5533: 5527: 5526: 5524: 5522: 5516: 5505: 5496: 5483: 5482: 5481: 5479: 5477: 5459: 5425: 5414: 5395: 5393: 5392: 5387: 5376: 5361: 5359: 5358: 5353: 5342: 5334: 5319: 5317: 5316: 5311: 5303: 5302: 5286: 5284: 5283: 5278: 5270: 5261: 5259: 5258: 5253: 5239: 5237: 5236: 5231: 5229: 5228: 5208: 5207: 5204: 5200: 5188: 5187: 5184: 5180: 5136: 5133: 5117: 5116: 5113: 5109: 4975: 4972: 4927: 4925: 4924: 4919: 4897: 4895: 4894: 4889: 4877: 4875: 4874: 4869: 4861: 4860: 4844: 4842: 4841: 4836: 4834: 4815: 4813: 4812: 4807: 4805: 4804: 4792: 4787: 4779: 4778: 4769: 4764: 4753: 4750: 4746: 4742: 4738: 4733: 4725: 4724: 4715: 4710: 4693: 4688: 4668: 4663: 4655: 4654: 4645: 4640: 4629: 4626: 4622: 4618: 4614: 4609: 4601: 4600: 4591: 4586: 4531: 4529: 4528: 4523: 4521: 4520: 4500: 4499: 4496: 4480: 4479: 4452: 4451: 4448: 4438: 4437: 4371: 4369: 4368: 4363: 4361: 4360: 4344: 4342: 4341: 4336: 4334: 4333: 4314: 4312: 4311: 4306: 4304: 4303: 4297: 4294: 4290: 4289: 4277: 4276: 4264: 4263: 4248: 4228: 4190: 4189: 4186: 4168: 4167: 4135:bit-interleaving 4110: 4108: 4107: 4102: 4076: 4075: 4048: 4047: 4020: 4018: 4017: 4012: 4010: 3961: 3953: 3945: 3938: 3930: 3922: 3914: 3897: 3896: 3884: 3883: 3871: 3863: 3818: 3810: 3809: 3807: 3806: 3803: 3800: 3787: 3779: 3770: 3768: 3767: 3764: 3761: 3746: 3740: 3731: 3729: 3728: 3723: 3721: 3609: 3608: 3584: 3583: 3550: 3483: 3482: 3470: 3469: 3409: 3403: 3393: 3382: 3371: 3358: 3348: 3346: 3345: 3340: 3317: 3316: 3274: 3273: 3251: 3240: 3238: 3237: 3232: 3194: 3193: 3178: 3177: 3131: 3120: 3118: 3117: 3112: 3044: 3042: 3041: 3036: 2967: 2959: 2922: 2915: 2904: 2897: 2886: 2879: 2868: 2862: 2856: 2849: 2838: 2832: 2826: 2820: 2818: 2817: 2808: 2802: 2801:8 × 1432 = 11456 2795: 2780: 2774: 2765: 2754: 2753:3160 + 32 = 3192 2748: 2742: 2736: 2730: 2723: 2697: 2695: 2694: 2689: 2660: 2658: 2657: 2652: 2626: 2624: 2623: 2618: 2616: 2611: 2604: 2603: 2593: 2577: 2575: 2574: 2569: 2567: 2563: 2558: 2551: 2537: 2534: 2512: 2506: 2500: 2490: 2483: 2481: 2480: 2475: 2470: 2466: 2461: 2454: 2440: 2437: 2412: 2410: 2409: 2404: 2390: 2385: 2378: 2364: 2361: 2340: 2338: 2337: 2332: 2330: 2325: 2306: 2305: 2283: 2223: 2214: 2212: 2211: 2206: 2204: 2199: 2192: 2178: 2175: 2157: 2151: 2142: 2140: 2139: 2134: 2110: 2109: 2087: 2077: 2068: 2066: 2065: 2060: 2034: 2032: 2031: 2026: 2024: 2019: 2012: 2011: 2001: 1978: 1970: 1954: 1952: 1951: 1946: 1918: 1909: 1907: 1906: 1901: 1893: 1888: 1850: 1811: 1809: 1808: 1803: 1801: 1777: 1775: 1774: 1769: 1767: 1742: 1740: 1739: 1734: 1726: 1725: 1713: 1712: 1691: 1690: 1678: 1677: 1665: 1664: 1639: 1637: 1636: 1631: 1626: 1625: 1610: 1609: 1585: 1584: 1572: 1571: 1538: 1537: 1525: 1524: 1500: 1499: 1487: 1486: 1461: 1459: 1458: 1453: 1432: 1430: 1429: 1424: 1422: 1414: 1413: 1408: 1399: 1398: 1374: 1367: 1349: 1340: 1324: 1322: 1321: 1316: 1307: 1295: 1294: 1273: 1272: 1260: 1259: 1237: 1235: 1234: 1229: 1223: 1211: 1210: 1195:; similarly, if 1194: 1192: 1191: 1186: 1181: 1180: 1164: 1143: 1142: 1130: 1129: 1107: 1105: 1104: 1099: 1093: 1081: 1080: 1064: 1062: 1061: 1056: 1054: 1042: 1030: 1029: 1013: 1001: 1000: 981: 979: 978: 973: 971: 966: 965: 964: 925: 924: 914: 881: 879: 878: 873: 835: 834: 822: 821: 802: 800: 799: 794: 792: 791: 770: 769: 757: 756: 741: 740: 728: 727: 715: 707: 699: 698: 686: 685: 657: 655: 654: 649: 647: 639: 631: 578: 576: 575: 570: 565: 564: 552: 551: 505: 503: 502: 497: 489: 488: 466: 464: 463: 458: 450: 449: 427: 425: 424: 419: 371: 369: 368: 363: 313: 305: 266: 264: 263: 258: 256: 255: 216: 214: 213: 208: 203: 195: 187: 162:pairing function 146:rational numbers 127:pairing function 114: 107: 103: 100: 94: 92: 51: 27: 19: 5669: 5668: 5664: 5663: 5662: 5660: 5659: 5658: 5634: 5633: 5632: 5631: 5624: 5601: 5597: 5560: 5551: 5534: 5530: 5520: 5518: 5514: 5503: 5497: 5486: 5475: 5473: 5463:Steven Pigeon. 5460: 5439: 5434: 5429: 5428: 5415: 5411: 5406: 5372: 5367: 5364: 5363: 5338: 5330: 5325: 5322: 5321: 5298: 5294: 5292: 5289: 5288: 5269: 5267: 5264: 5263: 5247: 5244: 5243: 5224: 5223: 5203: 5183: 5138: 5137: 5132: 5112: 5067: 5066: 5021: 5020: 4977: 4976: 4971: 4936: 4933: 4932: 4907: 4904: 4903: 4883: 4880: 4879: 4856: 4852: 4850: 4847: 4846: 4830: 4828: 4825: 4824: 4800: 4799: 4786: 4774: 4770: 4763: 4749: 4747: 4732: 4720: 4716: 4709: 4687: 4683: 4679: 4676: 4675: 4662: 4650: 4646: 4639: 4625: 4623: 4608: 4596: 4592: 4585: 4575: 4571: 4564: 4563: 4543: 4540: 4539: 4516: 4515: 4495: 4493: 4475: 4471: 4468: 4467: 4447: 4445: 4433: 4429: 4422: 4421: 4395: 4392: 4391: 4356: 4352: 4350: 4347: 4346: 4329: 4325: 4323: 4320: 4319: 4299: 4298: 4293: 4291: 4285: 4281: 4272: 4268: 4259: 4255: 4244: 4224: 4212: 4211: 4185: 4183: 4173: 4172: 4163: 4159: 4145: 4142: 4141: 4124:computed online 4071: 4067: 4043: 4039: 4037: 4034: 4033: 4030: 4008: 4007: 3952: 3943: 3942: 3929: 3913: 3892: 3888: 3879: 3875: 3862: 3855: 3833: 3831: 3828: 3827: 3813: 3804: 3801: 3798: 3797: 3795: 3790: 3782: 3765: 3762: 3759: 3758: 3756: 3751: 3742: 3736: 3719: 3718: 3604: 3600: 3579: 3575: 3548: 3547: 3478: 3474: 3465: 3461: 3448: 3420: 3418: 3415: 3414: 3405: 3399: 3385: 3374: 3363: 3354: 3312: 3308: 3269: 3265: 3260: 3257: 3256: 3246: 3189: 3185: 3173: 3169: 3143: 3140: 3139: 3126: 3058: 3055: 3054: 2976: 2973: 2972: 2961: 2955: 2929: 2917: 2910: 2902: 2892: 2885:1432 − 1431 = 1 2884: 2874: 2867:2862 ÷ 2 = 1431 2866: 2860: 2854: 2844: 2836: 2830: 2824: 2815: 2813: 2812: 2806: 2800: 2782: 2776: 2770: 2764:(47, 32) = 3192 2760: 2752: 2747:6320 ÷ 2 = 3160 2746: 2740: 2734: 2728: 2718: 2715: 2667: 2664: 2663: 2633: 2630: 2629: 2599: 2595: 2594: 2592: 2584: 2581: 2580: 2536: 2535: 2533: 2529: 2521: 2518: 2517: 2508: 2502: 2496: 2488: 2439: 2438: 2436: 2432: 2424: 2421: 2420: 2363: 2362: 2360: 2352: 2349: 2348: 2301: 2297: 2284: 2282: 2232: 2229: 2228: 2219: 2177: 2176: 2174: 2166: 2163: 2162: 2153: 2147: 2105: 2101: 2099: 2096: 2095: 2083: 2080:triangle number 2073: 2041: 2038: 2037: 2007: 2003: 2002: 2000: 1969: 1961: 1958: 1957: 1927: 1924: 1923: 1914: 1851: 1849: 1820: 1817: 1816: 1797: 1783: 1780: 1779: 1763: 1755: 1752: 1751: 1748: 1721: 1717: 1708: 1704: 1686: 1682: 1673: 1669: 1654: 1650: 1648: 1645: 1644: 1621: 1617: 1599: 1595: 1580: 1576: 1555: 1551: 1533: 1529: 1514: 1510: 1495: 1491: 1476: 1472: 1470: 1467: 1466: 1441: 1438: 1437: 1418: 1409: 1404: 1403: 1388: 1384: 1382: 1379: 1378: 1372: 1365: 1358: 1351: 1348: 1342: 1339: 1333: 1303: 1290: 1286: 1268: 1264: 1255: 1251: 1243: 1240: 1239: 1219: 1206: 1202: 1200: 1197: 1196: 1176: 1172: 1160: 1138: 1134: 1125: 1121: 1113: 1110: 1109: 1089: 1076: 1072: 1070: 1067: 1066: 1050: 1038: 1025: 1021: 1009: 996: 992: 990: 987: 986: 960: 956: 920: 916: 915: 913: 890: 887: 886: 830: 826: 817: 813: 811: 808: 807: 787: 783: 765: 761: 752: 748: 736: 732: 723: 719: 706: 694: 690: 681: 677: 669: 666: 665: 643: 635: 627: 619: 616: 615: 585: 560: 556: 547: 543: 511: 508: 507: 484: 480: 472: 469: 468: 445: 441: 433: 430: 429: 377: 374: 373: 304: 284: 281: 280: 277: 251: 247: 245: 242: 241: 199: 191: 183: 175: 172: 171: 158: 131:natural numbers 115: 104: 98: 95: 52: 50: 40: 28: 17: 12: 11: 5: 5667: 5657: 5656: 5651: 5646: 5630: 5629: 5622: 5595: 5574:(3): 285–295. 5549: 5528: 5484: 5436: 5435: 5433: 5430: 5427: 5426: 5408: 5407: 5405: 5402: 5385: 5382: 5379: 5375: 5371: 5351: 5348: 5345: 5341: 5337: 5333: 5329: 5309: 5306: 5301: 5297: 5276: 5273: 5251: 5241: 5240: 5227: 5222: 5219: 5216: 5213: 5199: 5196: 5193: 5179: 5176: 5173: 5170: 5167: 5164: 5161: 5158: 5155: 5152: 5149: 5146: 5143: 5140: 5139: 5131: 5128: 5125: 5122: 5108: 5105: 5102: 5099: 5096: 5093: 5090: 5087: 5084: 5081: 5078: 5075: 5072: 5069: 5068: 5065: 5062: 5059: 5056: 5053: 5050: 5047: 5044: 5041: 5038: 5035: 5032: 5029: 5026: 5023: 5022: 5019: 5016: 5013: 5010: 5007: 5004: 5001: 4998: 4995: 4992: 4989: 4986: 4983: 4982: 4980: 4970: 4967: 4964: 4961: 4958: 4955: 4952: 4949: 4946: 4943: 4940: 4917: 4914: 4911: 4887: 4867: 4864: 4859: 4855: 4833: 4817: 4816: 4803: 4798: 4795: 4790: 4785: 4782: 4777: 4773: 4767: 4762: 4759: 4756: 4748: 4745: 4741: 4736: 4731: 4728: 4723: 4719: 4713: 4708: 4705: 4702: 4699: 4696: 4691: 4686: 4682: 4678: 4677: 4674: 4671: 4666: 4661: 4658: 4653: 4649: 4643: 4638: 4635: 4632: 4624: 4621: 4617: 4612: 4607: 4604: 4599: 4595: 4589: 4584: 4581: 4578: 4574: 4570: 4569: 4567: 4562: 4559: 4556: 4553: 4550: 4547: 4533: 4532: 4519: 4514: 4511: 4508: 4505: 4494: 4492: 4489: 4486: 4483: 4478: 4474: 4470: 4469: 4466: 4463: 4460: 4457: 4446: 4444: 4441: 4436: 4432: 4428: 4427: 4425: 4420: 4417: 4414: 4411: 4408: 4405: 4402: 4399: 4384:respectively. 4359: 4355: 4332: 4328: 4316: 4315: 4302: 4292: 4288: 4284: 4280: 4275: 4271: 4267: 4262: 4258: 4254: 4251: 4247: 4243: 4240: 4237: 4234: 4231: 4227: 4223: 4220: 4217: 4214: 4213: 4210: 4207: 4204: 4201: 4198: 4195: 4184: 4182: 4179: 4178: 4176: 4171: 4166: 4162: 4158: 4155: 4152: 4149: 4100: 4097: 4094: 4091: 4088: 4085: 4082: 4079: 4074: 4070: 4066: 4063: 4060: 4057: 4054: 4051: 4046: 4042: 4029: 4026: 4022: 4021: 4006: 4003: 4000: 3997: 3994: 3991: 3988: 3985: 3982: 3979: 3976: 3973: 3970: 3967: 3964: 3959: 3956: 3951: 3948: 3946: 3944: 3941: 3936: 3933: 3928: 3925: 3920: 3917: 3912: 3909: 3906: 3903: 3900: 3895: 3891: 3887: 3882: 3878: 3874: 3869: 3866: 3861: 3858: 3856: 3854: 3851: 3848: 3845: 3842: 3839: 3836: 3835: 3821: 3820: 3811: 3788: 3780: 3733: 3732: 3717: 3714: 3711: 3708: 3705: 3702: 3699: 3696: 3693: 3690: 3687: 3684: 3681: 3678: 3675: 3672: 3669: 3666: 3663: 3660: 3657: 3654: 3651: 3648: 3645: 3642: 3639: 3636: 3633: 3630: 3627: 3624: 3621: 3618: 3615: 3612: 3607: 3603: 3599: 3596: 3593: 3590: 3587: 3582: 3578: 3574: 3571: 3568: 3565: 3562: 3559: 3556: 3553: 3551: 3549: 3546: 3543: 3540: 3537: 3534: 3531: 3528: 3525: 3522: 3519: 3516: 3513: 3510: 3507: 3504: 3501: 3498: 3495: 3492: 3489: 3486: 3481: 3477: 3473: 3468: 3464: 3460: 3457: 3454: 3451: 3449: 3447: 3444: 3441: 3438: 3435: 3432: 3429: 3426: 3423: 3422: 3396: 3395: 3383: 3372: 3351: 3350: 3338: 3335: 3332: 3329: 3326: 3323: 3320: 3315: 3311: 3307: 3304: 3301: 3298: 3295: 3292: 3289: 3286: 3283: 3280: 3277: 3272: 3268: 3264: 3243: 3242: 3230: 3227: 3224: 3221: 3218: 3215: 3212: 3209: 3206: 3203: 3200: 3197: 3192: 3188: 3184: 3181: 3176: 3172: 3168: 3165: 3162: 3159: 3156: 3153: 3150: 3147: 3123: 3122: 3110: 3107: 3104: 3101: 3098: 3095: 3092: 3089: 3086: 3083: 3080: 3077: 3074: 3071: 3068: 3065: 3062: 3047: 3046: 3034: 3031: 3028: 3025: 3022: 3019: 3016: 3013: 3010: 3007: 3004: 3001: 2998: 2995: 2992: 2989: 2986: 2983: 2980: 2928: 2925: 2921:(52, 1) = 1432 2907: 2906: 2889: 2888: 2871: 2870: 2864: 2861:53 × 54 = 2862 2858: 2841: 2840: 2834: 2828: 2822: 2810: 2804: 2757: 2756: 2750: 2744: 2741:79 × 80 = 6320 2738: 2732: 2714: 2711: 2699: 2698: 2686: 2683: 2680: 2677: 2674: 2671: 2661: 2649: 2646: 2643: 2640: 2637: 2627: 2614: 2610: 2607: 2602: 2598: 2591: 2588: 2578: 2566: 2561: 2557: 2554: 2549: 2546: 2543: 2540: 2532: 2528: 2525: 2493:floor function 2485: 2484: 2473: 2469: 2464: 2460: 2457: 2452: 2449: 2446: 2443: 2435: 2431: 2428: 2414: 2413: 2402: 2399: 2396: 2393: 2388: 2384: 2381: 2376: 2373: 2370: 2367: 2359: 2356: 2342: 2341: 2328: 2324: 2321: 2318: 2315: 2312: 2309: 2304: 2300: 2296: 2293: 2290: 2287: 2281: 2278: 2275: 2272: 2269: 2266: 2263: 2260: 2257: 2254: 2251: 2248: 2245: 2242: 2239: 2236: 2216: 2215: 2202: 2198: 2195: 2190: 2187: 2184: 2181: 2173: 2170: 2144: 2143: 2131: 2128: 2125: 2122: 2119: 2116: 2113: 2108: 2104: 2070: 2069: 2057: 2054: 2051: 2048: 2045: 2035: 2022: 2018: 2015: 2010: 2006: 1999: 1996: 1993: 1990: 1987: 1984: 1981: 1976: 1973: 1968: 1965: 1955: 1943: 1940: 1937: 1934: 1931: 1911: 1910: 1899: 1896: 1891: 1887: 1884: 1881: 1878: 1875: 1872: 1869: 1866: 1863: 1860: 1857: 1854: 1848: 1845: 1842: 1839: 1836: 1833: 1830: 1827: 1824: 1800: 1796: 1793: 1790: 1787: 1766: 1762: 1759: 1747: 1744: 1732: 1729: 1724: 1720: 1716: 1711: 1707: 1703: 1700: 1697: 1694: 1689: 1685: 1681: 1676: 1672: 1668: 1663: 1660: 1657: 1653: 1641: 1640: 1629: 1624: 1620: 1616: 1613: 1608: 1605: 1602: 1598: 1594: 1591: 1588: 1583: 1579: 1575: 1570: 1567: 1564: 1561: 1558: 1554: 1550: 1547: 1544: 1541: 1536: 1532: 1528: 1523: 1520: 1517: 1513: 1509: 1506: 1503: 1498: 1494: 1490: 1485: 1482: 1479: 1475: 1451: 1448: 1445: 1434: 1433: 1421: 1417: 1412: 1407: 1402: 1397: 1394: 1391: 1387: 1363: 1356: 1346: 1337: 1314: 1310: 1306: 1302: 1298: 1293: 1289: 1285: 1282: 1279: 1276: 1271: 1267: 1263: 1258: 1254: 1250: 1247: 1226: 1222: 1218: 1214: 1209: 1205: 1184: 1179: 1175: 1171: 1167: 1163: 1159: 1155: 1152: 1149: 1146: 1141: 1137: 1133: 1128: 1124: 1120: 1117: 1096: 1092: 1088: 1084: 1079: 1075: 1053: 1049: 1045: 1041: 1037: 1033: 1028: 1024: 1020: 1016: 1012: 1008: 1004: 999: 995: 969: 963: 959: 955: 952: 949: 946: 943: 940: 937: 934: 931: 928: 923: 919: 912: 909: 906: 903: 900: 897: 894: 871: 868: 865: 862: 859: 856: 853: 850: 847: 844: 841: 838: 833: 829: 825: 820: 816: 804: 803: 790: 786: 782: 779: 776: 773: 768: 764: 760: 755: 751: 747: 744: 739: 735: 731: 726: 722: 718: 713: 710: 705: 702: 697: 693: 689: 684: 680: 676: 673: 659: 658: 646: 642: 638: 634: 630: 626: 623: 584: 581: 568: 563: 559: 555: 550: 546: 542: 539: 536: 533: 530: 527: 524: 521: 518: 515: 495: 492: 487: 483: 479: 476: 456: 453: 448: 444: 440: 437: 417: 414: 411: 408: 405: 402: 399: 396: 393: 390: 387: 384: 381: 361: 358: 355: 352: 349: 346: 343: 340: 337: 334: 331: 328: 325: 322: 319: 316: 311: 308: 303: 300: 297: 294: 291: 288: 276: 273: 254: 250: 218: 217: 206: 202: 198: 194: 190: 186: 182: 179: 157: 154: 148:have the same 140:to prove that 117: 116: 31: 29: 22: 15: 9: 6: 4: 3: 2: 5666: 5655: 5652: 5650: 5647: 5645: 5642: 5641: 5639: 5625: 5623:3-540-44085-2 5619: 5615: 5611: 5607: 5599: 5591: 5587: 5582: 5577: 5573: 5569: 5565: 5558: 5556: 5554: 5544: 5539: 5532: 5513: 5509: 5502: 5495: 5493: 5491: 5489: 5472: 5471: 5466: 5458: 5456: 5454: 5452: 5450: 5448: 5446: 5444: 5442: 5437: 5423: 5419: 5413: 5409: 5401: 5399: 5380: 5377: 5346: 5343: 5335: 5307: 5304: 5299: 5295: 5274: 5271: 5249: 5220: 5217: 5214: 5211: 5197: 5194: 5191: 5174: 5171: 5168: 5159: 5153: 5150: 5147: 5129: 5126: 5123: 5120: 5103: 5100: 5097: 5088: 5082: 5079: 5076: 5063: 5057: 5054: 5051: 5042: 5036: 5033: 5030: 5017: 5011: 5008: 5005: 4999: 4993: 4990: 4987: 4978: 4965: 4962: 4959: 4953: 4947: 4944: 4941: 4931: 4930: 4929: 4915: 4912: 4909: 4901: 4885: 4865: 4862: 4857: 4853: 4822: 4796: 4788: 4780: 4775: 4765: 4757: 4754: 4743: 4734: 4726: 4721: 4711: 4703: 4700: 4697: 4689: 4680: 4672: 4664: 4656: 4651: 4641: 4633: 4630: 4619: 4610: 4602: 4597: 4587: 4579: 4576: 4572: 4565: 4560: 4554: 4548: 4546:ElegantUnpair 4545: 4538: 4537: 4536: 4512: 4509: 4506: 4503: 4490: 4487: 4484: 4481: 4476: 4472: 4464: 4461: 4458: 4455: 4442: 4439: 4434: 4430: 4423: 4418: 4412: 4409: 4406: 4400: 4397: 4390: 4389: 4388: 4385: 4383: 4379: 4375: 4357: 4353: 4330: 4326: 4286: 4282: 4278: 4273: 4269: 4265: 4260: 4249: 4245: 4241: 4235: 4229: 4225: 4221: 4208: 4205: 4202: 4199: 4196: 4193: 4180: 4174: 4169: 4164: 4156: 4153: 4150: 4140: 4139: 4138: 4136: 4131: 4129: 4125: 4121: 4117: 4112: 4098: 4095: 4089: 4086: 4083: 4080: 4072: 4068: 4064: 4058: 4055: 4052: 4044: 4040: 4032:The function 4025: 4004: 4001: 3998: 3992: 3989: 3986: 3983: 3980: 3971: 3968: 3965: 3957: 3954: 3949: 3947: 3939: 3934: 3931: 3926: 3923: 3918: 3915: 3910: 3907: 3904: 3901: 3893: 3889: 3885: 3880: 3876: 3867: 3864: 3859: 3857: 3849: 3846: 3843: 3837: 3826: 3825: 3824: 3816: 3812: 3793: 3789: 3785: 3781: 3778: 3774: 3754: 3750: 3749: 3748: 3745: 3739: 3715: 3709: 3706: 3703: 3694: 3691: 3688: 3682: 3676: 3673: 3670: 3661: 3658: 3655: 3649: 3643: 3640: 3637: 3628: 3625: 3622: 3616: 3613: 3605: 3597: 3594: 3591: 3585: 3580: 3572: 3569: 3566: 3557: 3554: 3552: 3544: 3541: 3538: 3532: 3529: 3526: 3520: 3517: 3511: 3508: 3505: 3499: 3496: 3493: 3490: 3487: 3479: 3475: 3471: 3466: 3462: 3455: 3452: 3450: 3445: 3442: 3436: 3433: 3430: 3424: 3413: 3412: 3411: 3408: 3402: 3392: 3388: 3384: 3381: 3377: 3373: 3370: 3366: 3362: 3361: 3360: 3359:terms to get 3357: 3333: 3330: 3327: 3321: 3318: 3313: 3305: 3302: 3299: 3293: 3290: 3287: 3284: 3281: 3278: 3275: 3270: 3266: 3262: 3255: 3254: 3253: 3249: 3228: 3225: 3222: 3219: 3216: 3213: 3210: 3207: 3204: 3201: 3198: 3195: 3190: 3186: 3182: 3179: 3174: 3170: 3166: 3163: 3157: 3154: 3151: 3145: 3138: 3137: 3136: 3133: 3129: 3105: 3102: 3099: 3096: 3093: 3087: 3084: 3081: 3078: 3072: 3069: 3066: 3060: 3053: 3052: 3051: 3029: 3026: 3023: 3020: 3017: 3014: 3011: 3005: 3002: 2999: 2996: 2990: 2987: 2984: 2978: 2971: 2970: 2969: 2965: 2958: 2952: 2950: 2946: 2942: 2933: 2924: 2920: 2913: 2901: 2900: 2899: 2895: 2883: 2882: 2881: 2877: 2865: 2859: 2853: 2852: 2851: 2847: 2837:⌊53.019⌋ = 53 2835: 2829: 2823: 2811: 2805: 2799: 2798: 2797: 2793: 2789: 2785: 2779: 2773: 2767: 2763: 2751: 2745: 2739: 2733: 2727: 2726: 2725: 2721: 2717:To calculate 2710: 2708: 2704: 2684: 2681: 2678: 2675: 2672: 2669: 2662: 2647: 2644: 2641: 2638: 2635: 2628: 2612: 2608: 2605: 2600: 2596: 2589: 2586: 2579: 2564: 2559: 2555: 2552: 2547: 2544: 2541: 2538: 2530: 2526: 2523: 2516: 2515: 2514: 2511: 2505: 2499: 2494: 2471: 2467: 2462: 2458: 2455: 2450: 2447: 2444: 2441: 2433: 2429: 2426: 2419: 2418: 2417: 2400: 2397: 2394: 2391: 2386: 2382: 2379: 2374: 2371: 2368: 2365: 2357: 2354: 2347: 2346: 2345: 2344:we get that 2326: 2319: 2316: 2313: 2307: 2302: 2294: 2291: 2288: 2279: 2273: 2270: 2267: 2261: 2258: 2255: 2252: 2249: 2246: 2243: 2240: 2237: 2234: 2227: 2226: 2225: 2222: 2200: 2196: 2193: 2188: 2185: 2182: 2179: 2171: 2168: 2161: 2160: 2159: 2156: 2150: 2129: 2126: 2123: 2120: 2117: 2114: 2111: 2106: 2102: 2094: 2093: 2092: 2091: 2086: 2081: 2076: 2055: 2052: 2049: 2046: 2043: 2036: 2020: 2016: 2013: 2008: 2004: 1997: 1991: 1988: 1985: 1979: 1974: 1971: 1966: 1963: 1956: 1941: 1938: 1935: 1932: 1929: 1922: 1921: 1920: 1917: 1897: 1894: 1889: 1882: 1879: 1876: 1867: 1864: 1861: 1858: 1855: 1846: 1840: 1837: 1834: 1828: 1825: 1822: 1815: 1814: 1813: 1794: 1791: 1788: 1785: 1760: 1757: 1743: 1730: 1722: 1718: 1714: 1709: 1705: 1698: 1695: 1687: 1683: 1679: 1674: 1670: 1658: 1651: 1622: 1618: 1614: 1606: 1603: 1600: 1596: 1592: 1589: 1586: 1581: 1577: 1565: 1562: 1559: 1552: 1545: 1542: 1534: 1530: 1526: 1521: 1518: 1515: 1511: 1507: 1504: 1501: 1496: 1492: 1480: 1473: 1465: 1464: 1463: 1449: 1446: 1443: 1410: 1400: 1392: 1385: 1377: 1376: 1375: 1369: 1362: 1355: 1345: 1336: 1331: 1326: 1308: 1304: 1300: 1296: 1291: 1287: 1280: 1277: 1269: 1265: 1261: 1256: 1252: 1245: 1224: 1220: 1216: 1212: 1207: 1203: 1177: 1173: 1169: 1165: 1161: 1157: 1150: 1147: 1139: 1135: 1131: 1126: 1122: 1115: 1094: 1090: 1086: 1082: 1077: 1073: 1047: 1043: 1039: 1035: 1031: 1026: 1022: 1018: 1014: 1010: 1006: 1002: 997: 993: 983: 967: 961: 957: 953: 950: 947: 944: 941: 938: 935: 932: 929: 926: 921: 917: 910: 904: 901: 898: 892: 883: 866: 863: 860: 857: 854: 851: 848: 845: 842: 836: 831: 827: 823: 818: 814: 788: 784: 780: 774: 771: 766: 762: 758: 753: 749: 737: 733: 729: 724: 720: 711: 708: 703: 695: 691: 687: 682: 678: 671: 664: 663: 662: 632: 624: 621: 614: 613: 612: 610: 606: 597: 589: 580: 561: 557: 553: 548: 544: 537: 534: 531: 528: 522: 519: 516: 493: 490: 485: 481: 477: 474: 454: 451: 446: 442: 438: 435: 412: 409: 406: 403: 400: 397: 394: 388: 385: 382: 379: 359: 356: 350: 347: 344: 341: 338: 329: 326: 323: 320: 317: 309: 306: 301: 295: 292: 289: 272: 270: 252: 248: 239: 235: 231: 227: 223: 204: 188: 180: 177: 170: 169: 168: 167: 163: 153: 151: 147: 143: 139: 134: 132: 128: 124: 113: 110: 102: 91: 88: 84: 81: 77: 74: 70: 67: 63: 60: –  59: 55: 54:Find sources: 48: 44: 38: 37: 32:This article 30: 26: 21: 20: 5649:Georg Cantor 5605: 5598: 5571: 5567: 5531: 5519:. Retrieved 5507: 5474:. Retrieved 5468: 5417: 5412: 5242: 4902:. Define on 4818: 4534: 4386: 4381: 4377: 4317: 4132: 4113: 4031: 4023: 3822: 3814: 3791: 3783: 3776: 3772: 3752: 3743: 3737: 3734: 3406: 3400: 3397: 3390: 3386: 3379: 3375: 3368: 3364: 3355: 3352: 3247: 3244: 3134: 3127: 3124: 3048: 2963: 2956: 2953: 2945:countability 2938: 2918: 2911: 2908: 2893: 2890: 2875: 2872: 2845: 2842: 2791: 2787: 2783: 2777: 2771: 2768: 2761: 2758: 2729:47 + 32 = 79 2719: 2716: 2700: 2509: 2503: 2497: 2486: 2415: 2343: 2220: 2217: 2154: 2148: 2145: 2084: 2074: 2071: 1915: 1912: 1749: 1642: 1435: 1370: 1360: 1353: 1343: 1334: 1327: 984: 884: 805: 661:defined by 660: 604: 602: 278: 268: 237: 233: 229: 225: 221: 219: 161: 159: 135: 126: 120: 105: 96: 86: 79: 72: 65: 53: 41:Please help 36:verification 33: 5508:szudzik.com 4398:ElegantPair 4116:linear time 3404:except for 2903:53 − 1 = 52 2855:53 + 1 = 54 2735:79 + 1 = 80 150:cardinality 123:mathematics 99:August 2021 5644:Set theory 5638:Categories 5543:1706.04129 5432:References 4295:otherwise, 3823:Therefore 3130:(0, 0) = 0 2927:Derivation 2781:such that 2703:one-to-one 2416:and thus 2158:, we get 1812:such that 156:Definition 138:set theory 69:newspapers 5590:0022-0000 5521:16 August 5476:16 August 5470:MathWorld 5381:⩽ 5347:≼ 5336:× 5308:κ 5296:κ 5275:κ 5250:≼ 5218:δ 5212:β 5198:γ 5192:α 5175:δ 5169:γ 5154:β 5148:α 5127:γ 5121:α 5104:δ 5098:γ 5083:β 5077:α 5058:δ 5052:γ 5037:β 5031:α 5012:δ 5006:γ 4994:β 4988:α 4966:δ 4960:γ 4954:≼ 4948:β 4942:α 4916:κ 4913:× 4910:κ 4886:κ 4866:κ 4854:κ 4794:⌋ 4784:⌊ 4781:≥ 4772:⌋ 4761:⌊ 4758:− 4740:⌋ 4730:⌊ 4727:− 4718:⌋ 4707:⌊ 4704:− 4695:⌋ 4685:⌊ 4670:⌋ 4660:⌊ 4648:⌋ 4637:⌊ 4634:− 4616:⌋ 4606:⌊ 4594:⌋ 4583:⌊ 4580:− 4549:⁡ 4507:≥ 4401:⁡ 4257:⟩ 4253:⌋ 4239:⌊ 4233:⌋ 4219:⌊ 4216:⟨ 4161:⟩ 4148:⟨ 4096:− 3838:π 3674:− 3659:− 3626:− 3570:− 3509:− 3425:π 3146:π 3088:π 3061:π 3015:− 3006:π 2979:π 2819:= 107.037 2679:− 2645:− 2553:− 2513:, we do: 2456:− 2380:− 2358:≤ 2238:≤ 2194:− 2118:− 1829:π 1795:∈ 1761:∈ 1699:π 1652:π 1604:− 1590:… 1563:− 1553:π 1546:π 1519:− 1505:… 1474:π 1416:→ 1386:π 1281:π 1246:π 1151:π 1116:π 1048:∈ 893:π 867:… 837:∈ 672:π 641:→ 633:× 622:π 538:π 529:− 526:⟩ 514:⟨ 413:… 389:∈ 348:− 327:− 299:⟩ 287:⟨ 197:→ 189:× 178:π 166:bijection 5512:Archived 5134: or 4751:if  4627:if  4372:are the 2794:) = 1432 2769:To find 2722:(47, 32) 2713:Examples 2565:⌋ 2531:⌊ 2468:⌋ 2434:⌊ 1309:′ 1225:′ 1166:′ 1095:′ 1044:′ 1015:′ 372:, where 142:integers 3808:⁠ 3796:⁠ 3769:⁠ 3757:⁠ 2916:; thus 2814:√ 2491:is the 2078:is the 1916:π(x, y) 1238:, then 1108:, then 83:scholar 5620:  5588:  5209:  5201:  5189:  5181:  5118:  5110:  4501:  4453:  4318:where 4191:  2878:= 1431 2487:where 2072:where 806:where 506:, and 85:  78:  71:  64:  56:  5538:arXiv 5515:(PDF) 5504:(PDF) 5404:Notes 3252:and: 2816:11457 2507:from 1065:, if 607:is a 164:is a 90:JSTOR 76:books 5618:ISBN 5586:ISSN 5523:2021 5478:2021 5272:< 5215:< 5124:< 5043:< 4657:< 4459:< 4380:and 4345:and 3741:and 3389:= 1+ 3378:= 1- 2943:and 2914:= 52 2848:= 53 2775:and 2707:onto 2705:and 2501:and 2392:< 2256:< 2146:for 1750:Let 1447:> 1436:for 1341:and 1278:< 1213:< 1148:< 1083:< 603:The 144:and 125:, a 62:news 5610:doi 5576:doi 5418:not 5400:.) 5205:and 5185:and 5163:max 5142:max 5114:and 5092:max 5071:max 5046:max 5025:max 4900:ZFC 4898:in 4376:of 3817:= 0 3786:= 1 3250:= 0 2966:+1) 2909:so 2896:= 1 2891:so 2873:so 2843:so 2759:so 2489:⌊ ⌋ 2082:of 1462:as 579:). 267:to 121:In 45:by 5640:: 5616:. 5584:. 5572:45 5570:. 5566:. 5552:^ 5510:. 5506:. 5487:^ 5467:. 5440:^ 4561::= 4497:if 4449:if 4419::= 4187:if 4065::= 3794:= 3775:= 3771:= 3755:= 3367:= 3132:. 2923:. 2898:; 2880:; 2850:; 2796:: 2790:, 2766:. 2724:: 2709:. 1696::= 1543::= 1368:. 1359:, 1325:. 982:. 911::= 882:. 704::= 467:, 302::= 271:. 238:A, 160:A 5626:. 5612:: 5592:. 5578:: 5546:. 5540:: 5525:. 5480:. 5424:. 5384:) 5378:, 5374:N 5370:( 5350:) 5344:, 5340:N 5332:N 5328:( 5305:= 5300:2 5221:. 5195:= 5178:) 5172:, 5166:( 5160:= 5157:) 5151:, 5145:( 5130:, 5107:) 5101:, 5095:( 5089:= 5086:) 5080:, 5074:( 5064:, 5061:) 5055:, 5049:( 5040:) 5034:, 5028:( 5018:, 5015:) 5009:, 5003:( 5000:= 4997:) 4991:, 4985:( 4979:{ 4969:) 4963:, 4957:( 4951:) 4945:, 4939:( 4863:= 4858:2 4832:N 4797:. 4789:z 4776:2 4766:z 4755:z 4744:} 4735:z 4722:2 4712:z 4701:z 4698:, 4690:z 4681:{ 4673:, 4665:z 4652:2 4642:z 4631:z 4620:} 4611:z 4603:, 4598:2 4588:z 4577:z 4573:{ 4566:{ 4558:] 4555:z 4552:[ 4513:. 4510:y 4504:x 4491:y 4488:+ 4485:x 4482:+ 4477:2 4473:x 4465:, 4462:y 4456:x 4443:x 4440:+ 4435:2 4431:y 4424:{ 4416:] 4413:y 4410:, 4407:x 4404:[ 4382:j 4378:i 4358:0 4354:j 4331:0 4327:i 4287:0 4283:j 4279:: 4274:0 4270:i 4266:: 4261:P 4250:2 4246:/ 4242:j 4236:, 4230:2 4226:/ 4222:i 4209:; 4206:0 4203:= 4200:j 4197:= 4194:i 4181:T 4175:{ 4170:= 4165:P 4157:j 4154:, 4151:i 4099:1 4093:) 4090:1 4087:+ 4084:y 4081:2 4078:( 4073:x 4069:2 4062:) 4059:y 4056:, 4053:x 4050:( 4045:2 4041:P 4005:, 4002:y 3999:+ 3996:) 3993:1 3990:+ 3987:y 3984:+ 3981:x 3978:( 3975:) 3972:y 3969:+ 3966:x 3963:( 3958:2 3955:1 3950:= 3940:y 3935:2 3932:3 3927:+ 3924:x 3919:2 3916:1 3911:+ 3908:y 3905:x 3902:+ 3899:) 3894:2 3890:y 3886:+ 3881:2 3877:x 3873:( 3868:2 3865:1 3860:= 3853:) 3850:y 3847:, 3844:x 3841:( 3819:. 3815:f 3805:2 3802:/ 3799:3 3792:e 3784:c 3777:d 3773:b 3766:2 3763:/ 3760:1 3753:a 3744:c 3738:a 3716:. 3713:) 3710:1 3707:+ 3704:y 3701:( 3698:) 3695:a 3692:+ 3689:1 3686:( 3683:+ 3680:) 3677:1 3671:x 3668:( 3665:) 3662:a 3656:1 3653:( 3650:+ 3647:) 3644:1 3641:+ 3638:y 3635:( 3632:) 3629:1 3623:x 3620:( 3617:c 3614:+ 3611:) 3606:2 3602:) 3598:1 3595:+ 3592:y 3589:( 3586:+ 3581:2 3577:) 3573:1 3567:x 3564:( 3561:( 3558:a 3555:= 3545:1 3542:+ 3539:y 3536:) 3533:a 3530:+ 3527:1 3524:( 3521:+ 3518:x 3515:) 3512:a 3506:1 3503:( 3500:+ 3497:y 3494:x 3491:c 3488:+ 3485:) 3480:2 3476:y 3472:+ 3467:2 3463:x 3459:( 3456:a 3453:= 3446:1 3443:+ 3440:) 3437:y 3434:, 3431:x 3428:( 3407:c 3401:a 3394:. 3391:a 3387:e 3380:a 3376:d 3369:a 3365:b 3356:k 3349:, 3337:) 3334:1 3331:+ 3328:k 3325:( 3322:d 3319:+ 3314:2 3310:) 3306:1 3303:+ 3300:k 3297:( 3294:a 3291:= 3288:1 3285:+ 3282:k 3279:e 3276:+ 3271:2 3267:k 3263:b 3248:f 3241:. 3229:f 3226:+ 3223:y 3220:e 3217:+ 3214:x 3211:d 3208:+ 3205:y 3202:x 3199:c 3196:+ 3191:2 3187:y 3183:b 3180:+ 3175:2 3171:x 3167:a 3164:= 3161:) 3158:y 3155:, 3152:x 3149:( 3128:π 3121:. 3109:) 3106:0 3103:, 3100:1 3097:+ 3094:k 3091:( 3085:= 3082:1 3079:+ 3076:) 3073:k 3070:, 3067:0 3064:( 3045:. 3033:) 3030:1 3027:+ 3024:y 3021:, 3018:1 3012:x 3009:( 3003:= 3000:1 2997:+ 2994:) 2991:y 2988:, 2985:x 2982:( 2964:n 2962:( 2957:n 2919:π 2912:x 2905:, 2894:y 2887:, 2876:t 2869:, 2863:, 2857:, 2846:w 2839:, 2833:, 2827:, 2821:, 2809:, 2803:, 2792:y 2788:x 2786:( 2784:π 2778:y 2772:x 2762:π 2755:, 2749:, 2743:, 2737:, 2731:, 2720:π 2685:. 2682:y 2676:w 2673:= 2670:x 2648:t 2642:z 2639:= 2636:y 2613:2 2609:w 2606:+ 2601:2 2597:w 2590:= 2587:t 2560:2 2556:1 2548:1 2545:+ 2542:z 2539:8 2527:= 2524:w 2510:z 2504:y 2498:x 2472:. 2463:2 2459:1 2451:1 2448:+ 2445:z 2442:8 2430:= 2427:w 2401:1 2398:+ 2395:w 2387:2 2383:1 2375:1 2372:+ 2369:z 2366:8 2355:w 2327:2 2323:) 2320:1 2317:+ 2314:w 2311:( 2308:+ 2303:2 2299:) 2295:1 2292:+ 2289:w 2286:( 2280:= 2277:) 2274:1 2271:+ 2268:w 2265:( 2262:+ 2259:t 2253:y 2250:+ 2247:t 2244:= 2241:z 2235:t 2221:t 2201:2 2197:1 2189:1 2186:+ 2183:t 2180:8 2172:= 2169:w 2155:t 2149:w 2130:0 2127:= 2124:t 2121:2 2115:w 2112:+ 2107:2 2103:w 2085:w 2075:t 2056:y 2053:+ 2050:t 2047:= 2044:z 2021:2 2017:w 2014:+ 2009:2 2005:w 1998:= 1995:) 1992:1 1989:+ 1986:w 1983:( 1980:w 1975:2 1972:1 1967:= 1964:t 1942:y 1939:+ 1936:x 1933:= 1930:w 1898:y 1895:+ 1890:2 1886:) 1883:y 1880:+ 1877:x 1874:( 1871:) 1868:1 1865:+ 1862:y 1859:+ 1856:x 1853:( 1847:= 1844:) 1841:y 1838:, 1835:x 1832:( 1826:= 1823:z 1799:N 1792:y 1789:, 1786:x 1765:N 1758:z 1731:. 1728:) 1723:2 1719:k 1715:, 1710:1 1706:k 1702:( 1693:) 1688:2 1684:k 1680:, 1675:1 1671:k 1667:( 1662:) 1659:2 1656:( 1628:) 1623:n 1619:k 1615:, 1612:) 1607:1 1601:n 1597:k 1593:, 1587:, 1582:1 1578:k 1574:( 1569:) 1566:1 1560:n 1557:( 1549:( 1540:) 1535:n 1531:k 1527:, 1522:1 1516:n 1512:k 1508:, 1502:, 1497:1 1493:k 1489:( 1484:) 1481:n 1478:( 1450:2 1444:n 1420:N 1411:n 1406:N 1401:: 1396:) 1393:n 1390:( 1366:⟩ 1364:2 1361:k 1357:1 1354:k 1352:⟨ 1347:2 1344:k 1338:1 1335:k 1313:) 1305:2 1301:k 1297:, 1292:1 1288:k 1284:( 1275:) 1270:2 1266:k 1262:, 1257:1 1253:k 1249:( 1221:2 1217:k 1208:2 1204:k 1183:) 1178:2 1174:k 1170:, 1162:1 1158:k 1154:( 1145:) 1140:2 1136:k 1132:, 1127:1 1123:k 1119:( 1091:1 1087:k 1078:1 1074:k 1052:N 1040:2 1036:k 1032:, 1027:2 1023:k 1019:, 1011:1 1007:k 1003:, 998:1 994:k 968:2 962:2 958:y 954:+ 951:y 948:3 945:+ 942:y 939:x 936:2 933:+ 930:x 927:+ 922:2 918:x 908:) 905:y 902:, 899:x 896:( 870:} 864:, 861:3 858:, 855:2 852:, 849:1 846:, 843:0 840:{ 832:2 828:k 824:, 819:1 815:k 789:2 785:k 781:+ 778:) 775:1 772:+ 767:2 763:k 759:+ 754:1 750:k 746:( 743:) 738:2 734:k 730:+ 725:1 721:k 717:( 712:2 709:1 701:) 696:2 692:k 688:, 683:1 679:k 675:( 645:N 637:N 629:N 625:: 567:) 562:1 558:k 554:, 549:2 545:k 541:( 535:= 532:1 523:j 520:, 517:i 494:1 491:+ 486:1 482:k 478:= 475:j 455:1 452:+ 447:2 443:k 439:= 436:i 416:} 410:, 407:3 404:, 401:2 398:, 395:1 392:{ 386:j 383:, 380:i 360:i 357:+ 354:) 351:1 345:j 342:+ 339:i 336:( 333:) 330:2 324:j 321:+ 318:i 315:( 310:2 307:1 296:j 293:, 290:i 269:A 253:2 249:A 234:A 230:A 226:A 222:A 205:. 201:N 193:N 185:N 181:: 112:) 106:( 101:) 97:( 87:· 80:· 73:· 66:· 39:.

Index


verification
improve this article
adding citations to reliable sources
"Pairing function"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
mathematics
natural numbers
set theory
integers
rational numbers
cardinality
bijection
A plot of the Cantor pairing function
A graph of the Cantor pairing function
primitive recursive
Fueter–Pólya theorem
triangle number
quadratic equation
floor function
one-to-one
onto

infinite sequences
countability

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.