Innumber theory, apolite number is apositive integer that can be written as the sum of two or more consecutive positive integers. A positive integer which is not polite is calledimpolite.[1][2] The impolite numbers are exactly thepowers of two, and the polite numbers are thenatural numbers that are not powers of two.
Polite numbers have also been calledstaircase numbers because theYoung diagrams which represent graphically thepartitions of a polite number into consecutive integers (in theFrench notation of drawing these diagrams) resemblestaircases.[3][4][5] If all numbers in the sum are strictly greater than one, the numbers so formed are also calledtrapezoidal numbers because they represent patterns of points arranged in atrapezoid.[6][7][8][9][10][11][12]
Thepoliteness of a positive number is defined as the number of ways it can be expressed as the sum of consecutive integers. For everyx, the politeness ofx equals the number ofodddivisors ofx that are greater than one.[13] The politeness of the numbers 1, 2, 3, ... is
For instance, the politeness of 9 is 2 because it has two odd divisors, 3 and 9, and two polite representations
9 = 2 + 3 + 4 = 4 + 5;
the politeness of 15 is 3 because it has three odd divisors, 3, 5, and 15, and (as is familiar tocribbage players)[25] three polite representations
15 = 4 + 5 + 6 = 1 + 2 + 3 + 4 + 5 = 7 + 8.
An easy way of calculating the politeness of a positive number by decomposing the number into itsprime factors, taking the powers of all prime factors greater than 2, adding 1 to all of them, multiplying the numbers thus obtained with each other and subtracting 1. For instance 90 has politeness 5 because; the powers of 3 and 5 are respectively 2 and 1, and applying this method.
Construction of polite representations from odd divisors
To see the connection between odd divisors and polite representations, suppose a numberx has the odd divisory > 1. Theny consecutive integers centered onx/y (so that their average value isx/y) havex as their sum:
Some of the terms in this sum may be zero or negative. However, if a term is zero it can be omitted and any negative terms may be used to cancel positive ones, leading to a polite representation forx. (The requirement thaty > 1 corresponds to the requirement that a polite representation have more than one term; applying the same construction fory = 1 would just lead to the trivial one-term representationx = x.)For instance, the polite numberx = 14 has a single nontrivial odd divisor, 7. It is therefore the sum of 7 consecutive numbers centered at 14/7 = 2:
Conversely, every polite representation ofx can be formed from this construction. If a representation has an odd number of terms,x/y is the middle term, while if it has aneven number of terms and its minimum value ism it may be extended in a unique way to a longer sequence with the same sum and an odd number of terms, by including the 2m − 1 numbers −(m − 1), −(m − 2), ..., −1, 0, 1, ...,m − 2,m − 1.After this extension, again,x/y is the middle term. By this construction, the polite representations of a number and its odd divisors greater than one may be placed into aone-to-one correspondence, giving abijective proof of the characterization of polite numbers and politeness.[13][26] More generally, the same idea gives a two-to-one correspondence between, on the one hand, representations as a sum of consecutive integers (allowing zero, negative numbers, and single-term representations) and on the other hand odd divisors (including 1).[15]
Another generalization of this result states that, for anyn, the number of partitions ofn into odd numbers havingk distinct values equals the number of partitions ofn into distinct numbers havingk maximal runs of consecutive numbers.[13][27][28] Here a run is one or more consecutive values such that the next larger and the next smaller consecutive values are not part of the partition; for instance the partition 10 = 1 + 4 + 5 has two runs, 1 and 4 + 5.A polite representation has a single run, and a partition with one valued is equivalent to a factorization ofn as the productd ⋅ (n/d), so the special casek = 1 of this result states again the equivalence between polite representations and odd factors (including in this case the trivial representationn = n and the trivial odd factor 1).
If a polite representation starts with 1, the number so represented is atriangular number
Otherwise, it is the difference of two nonconsecutive triangular numbers
This second case is called a trapezoidal number.[12] One can also consider polite numbers that aren't trapezoidal. The only such numbers are the triangular numbers with only one nontrivial odd divisor, because for those numbers, according to thebijection described earlier, the odd divisor corresponds to the triangular representation and there can be no other polite representations. Thus, non-trapezoidal polite number must have the form of a power of two multiplied by an odd prime. As Jones and Lord observe,[12] there are exactly two types of triangular numbers with this form:
the products 2n − 1(2n + 1) of aFermat prime 2n + 1 with half the nearest power of two.
(sequenceA068195 in theOEIS). For instance, the perfect number 28 = 23 − 1(23 − 1) and the number 136 = 24 − 1(24 + 1) are both this type of polite number. It is conjectured that there are infinitely many Mersenne primes, in which case there are also infinitely many polite numbers of this type.
^Gamer, Carlton; Roeder, David W.; Watkins, John J. (1985), "Trapezoidal numbers",Mathematics Magazine,58 (2):108–110,doi:10.2307/2689901,JSTOR2689901.
^Haggard, Paul W.; Morales, Kelly L. (1993), "Discovering relationships and patterns by exploring trapezoidal numbers",International Journal of Mathematical Education in Science and Technology,24 (1):85–90,doi:10.1080/0020739930240111.
^Feinberg-McBrian, Carol (1996), "The case of trapezoidal numbers",Mathematics Teacher,89 (1):16–24,doi:10.5951/MT.89.1.0016.
^Smith, Jim (1997), "Trapezoidal numbers",Mathematics in School,5: 42.
^Mason, T. E. (1911), "On the representations of a number as a sum of consecutive integers",Proceedings of the Indiana Academy of Science:273–274.
^abMason, Thomas E. (1912), "On the representation of an integer as the sum of consecutive integers",American Mathematical Monthly,19 (3):46–50,doi:10.2307/2972423,JSTOR2972423,MR1517654.
^Britt, Michael J. C.; Fradin, Lillie; Philips, Kathy; Feldman, Dima; Cooper, Leon N. (2005), "On sums of consecutive integers",Quart. Appl. Math.,63 (4):791–792,doi:10.1090/S0033-569X-05-00991-1,MR2187932.
^Andrews, G. E. (1966), "On generalizations of Euler's partition theorem",Michigan Mathematical Journal,13 (4):491–498,doi:10.1307/mmj/1028999609,MR0202617.
^Ramamani, V.; Venkatachaliengar, K. (1972), "On a partition theorem of Sylvester",The Michigan Mathematical Journal,19 (2):137–140,doi:10.1307/mmj/1029000844,MR0304323.