Palindromic number

Last updated

A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such as 16461) that remains the same when its digits are reversed. In other words, it has reflectional symmetry across a vertical axis. The term palindromic is derived from palindrome, which refers to a word (such as rotor or racecar) whose spelling is unchanged when its letters are reversed. The first 30 palindromic numbers (in decimal) are:

Contents

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, 131, 141, 151, 161, 171, 181, 191, 202, ... (sequence A002113 in the OEIS ).

Palindromic numbers receive most attention in the realm of recreational mathematics. A typical problem asks for numbers that possess a certain property and are palindromic. For instance:

It is obvious that in any base there are infinitely many palindromic numbers, since in any base the infinite sequence of numbers written (in that base) as 101, 1001, 10001, 100001, etc. consists solely of palindromic numbers.

Formal definition

Although palindromic numbers are most often considered in the decimal system, the concept of palindromicity can be applied to the natural numbers in any numeral system. Consider a number n > 0 in base b  2, where it is written in standard notation with k+1 digits ai as:

with, as usual, 0  ai < b for all i and ak  0. Then n is palindromic if and only if ai = aki for all i. Zero is written 0 in any base and is also palindromic by definition.

Decimal palindromic numbers

All numbers with one digit are palindromic, so in base 10 there are ten palindromic numbers with one digit:

{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.

There are 9 palindromic numbers with two digits:

{11, 22, 33, 44, 55, 66, 77, 88, 99}.

All palindromic numbers with an even number of digits are divisible by 11. [1]

There are 90 palindromic numbers with three digits (Using the rule of product: 9 choices for the first digit - which determines the third digit as well - multiplied by 10 choices for the second digit):

{101, 111, 121, 131, 141, 151, 161, 171, 181, 191, ..., 909, 919, 929, 939, 949, 959, 969, 979, 989, 999}

There are likewise 90 palindromic numbers with four digits (again, 9 choices for the first digit multiplied by ten choices for the second digit. The other two digits are determined by the choice of the first two):

{1001, 1111, 1221, 1331, 1441, 1551, 1661, 1771, 1881, 1991, ..., 9009, 9119, 9229, 9339, 9449, 9559, 9669, 9779, 9889, 9999},

so there are 199 palindromic numbers smaller than 104.

There are 1099 palindromic numbers smaller than 105 and for other exponents of 10n we have: 1999, 10999, 19999, 109999, 199999, 1099999, ... (sequence A070199 in the OEIS ). The number of palindromic numbers which have some other property are listed below:

 1011021031041051061071081091010
n natural 1019109199109919991099919999109999199999
n even 594989489889488988894888988889
n odd 51060110610111061101111061110111110
n square 4714152031
n cube 34578
n prime 45201137815953
n squarefree 612671206751200682112160++
n non-squarefree (μ(n)=0)47427942479941787839++
n square with prime root [2] 235
n with an even number of distinct prime factors (μ(n)=1)26355632458333836093++
n with an odd number of distinct prime factors (μ(n)=-1)46326435161734386067++
n even with an odd number of prime factors1292110018010106067++
n even with an odd number of distinct prime factors34214926848224864452++
n odd with an odd number of prime factors34234325143724284315++
n odd with an odd number of distinct prime factors45285631756630705607++
n even squarefree with an even number of (distinct) prime factors121115981719911782++
n odd squarefree with an even number of (distinct) prime factors14244122641223924221++
n odd with exactly 2 prime factors14253920530317682403++
n even with exactly 2 prime factors231164413++
n even with exactly 3 prime factors13142412217910561400++
n even with exactly 3 distinct prime factors01184425039020012814++
n odd with exactly 3 prime factors01123417334817623292++
n Carmichael number 0000011111
n for which σ(n) is palindromic6104711468814175683+++

Perfect powers

There are many palindromic perfect powers nk, where n is a natural number and k is 2, 3 or 4.

The first nine terms of the sequence 12, 112, 1112, 11112, ... form the palindromes 1, 121, 12321, 1234321, ... (sequence A002477 in the OEIS )

The only known non-palindromic number whose cube is a palindrome is 2201, and it is a conjecture the fourth root of all the palindrome fourth powers are a palindrome with 100000...000001 (10n + 1).

G. J. Simmons conjectured there are no palindromes of form nk for k > 4 (and n > 1). [3]

Other bases

Palindromic numbers can be considered in numeral systems other than decimal. For example, the binary palindromic numbers are those with the binary representations:

0, 1, 11, 101, 111, 1001, 1111, 10001, 10101, 11011, 11111, 100001, ... (sequence A057148 in the OEIS )

or in decimal:

0, 1, 3, 5, 7, 9, 15, 17, 21, 27, 31, 33, ... (sequence A006995 in the OEIS )

The Fermat primes and the Mersenne primes form a subset of the binary palindromic primes.

Any number is palindromic in all bases with (trivially so, because is then a single-digit number), and also in base (because is then ). Even excluding cases where the number is smaller than the base, most numbers are palindromic in more than one base. For example, , . A number is never palindromic in base if . Moreover, a prime number is never palindromic in base if .

A number that is non-palindromic in all bases b in the range 2  b  n  2 can be called a strictly non-palindromic number. For example, the number 6 is written as "110" in base 2, "20" in base 3, and "12" in base 4, none of which are palindromes. All strictly non-palindromic numbers larger than 6 are prime. Indeed, if is composite, then either for some , in which case n is the palindrome "aa" in base , or else it is a perfect square , in which case n is the palindrome "121" in base (except for the special case of ). [4] [5]

The first few strictly non-palindromic numbers (sequence A016038 in the OEIS ) are:

0, 1, 2, 3, 4, 6, 11, 19, 47, 53, 79, 103, 137, 139, 149, 163, 167, 179, 223, 263, 269, 283, 293, 311, 317, 347, 359, 367, 389, 439, 491, 563, 569, 593, 607, 659, 739, 827, 853, 877, 977, 983, 997, ...

Antipalindromic numbers

If the digits of a natural number don't only have to be reversed in order, but also subtracted from to yield the original sequence again, then the number is said to be antipalindromic. Formally, in the usual decomposition of a natural number into its digits in base , a number is antipalindromic iff . [6]

Lychrel process

Non-palindromic numbers can be paired with palindromic ones via a series of operations. First, the non-palindromic number is reversed and the result is added to the original number. If the result is not a palindromic number, this is repeated until it gives a palindromic number. Such number is called "a delayed palindrome".

It is not known whether all non-palindromic numbers can be paired with palindromic numbers in this way. While no number has been proven to be unpaired, many do not appear to be. For example, 196 does not yield a palindrome even after 700,000,000 iterations. Any number that never becomes palindromic in this way is known as a Lychrel number.

On January 24, 2017, the number 1,999,291,987,030,606,810 was published in OEIS as A281509 and announced "The Largest Known Most Delayed Palindrome". The sequence of 125 261-step most delayed palindromes preceding 1,999,291,987,030,606,810 and not reported before was published separately as A281508.

Sum of the reciprocals

The sum of the reciprocals of the palindromic numbers is a convergent series, whose value is approximately 3.37028... (sequence A118031 in the OEIS ).

Scheherazade numbers

Scheherazade numbers are a set of numbers identified by Buckminster Fuller in his book Synergetics. [7] Fuller does not give a formal definition for this term, but from the examples he gives, it can be understood to be those numbers that contain a factor of the primorial n#, where n≥13 and is the largest prime factor in the number. Fuller called these numbers Scheherazade numbers because they must have a factor of 1001. Scheherazade is the storyteller of One Thousand and One Nights , telling a new story each night to delay her execution. Since n must be at least 13, the primorial must be at least 1·2·3·5·7·11·13, and 7×11×13 = 1001. Fuller also refers to powers of 1001 as Scheherazade numbers. The smallest primorial containing Scheherazade number is 13# = 30,030.

Fuller pointed out that some of these numbers are palindromic by groups of digits. For instance 17# = 510,510 shows a symmetry of groups of three digits. Fuller called such numbers Scheherazade Sublimely Rememberable Comprehensive Dividends, or SSRCD numbers. Fuller notes that 1001 raised to a power not only produces sublimely rememberable numbers that are palindromic in three-digit groups, but also the values of the groups are the binomial coefficients. For instance,

This sequence fails at (1001)13 because there is a carry digit taken into the group to the left in some groups. Fuller suggests writing these spillovers on a separate line. If this is done, using more spillover lines as necessary, the symmetry is preserved indefinitely to any power. [8] Many other Scheherazade numbers show similar symmetries when expressed in this way. [9]

Sums of palindromes

In 2018, a paper was published demonstrating that every positive integer can be written as the sum of three palindromic numbers in every number system with base 5 or greater. [10]

Notes

  1. "The Prime Glossary: palindromic prime". PrimePages . Retrieved 11 July 2023.
  2. (sequence A065379 in the OEIS ) The next example is 19 digits - 900075181570009.
  3. Murray S. Klamkin (1990), Problems in applied mathematics: selections from SIAM review, p. 520.
  4. Sloane, N. J. A. (ed.). "SequenceA016038(Strictly non-palindromic numbers)". The On-Line Encyclopedia of Integer Sequences . OEIS Foundation.
  5. Guy, Richard K. (1989). "Conway's RATS and other reversals". The American Mathematical Monthly. 96 (5): 425–428. doi:10.2307/2325149. JSTOR   2325149.
  6. Dvorakova, Lubomira; Kruml, Stanislav; Ryzak, David (16 Aug 2020). "Antipalindromic numbers". arXiv: 2008.06864 [math.CO].
  7. R. Buckminster Fuller, with E. J. Applewhite, Synergetics: Explorations in the Geometry of thinking Archived 2016-02-27 at the Wayback Machine , Macmillan, 1982 ISBN   0-02-065320-4.
  8. Fuller, pp. 773-774 Archived 2016-03-05 at the Wayback Machine
  9. Fuller, pp. 777-780
  10. Cilleruelo, Javier; Luca, Florian; Baxter, Lewis (2016-02-19). "Every positive integer is a sum of three palindromes". Mathematics of Computation. arXiv: 1602.06208 . Archived from the original on 2021-02-12. Retrieved 2021-04-28. (arXiv preprint Archived 2019-02-08 at the Wayback Machine )

Related Research Articles

11 (eleven) is the natural number following 10 and preceding 12. It is the first repdigit. In English, it is the smallest positive integer whose name has three syllables.

A highly composite number is a positive integer with more divisors than any smaller positive integer has. A related concept is that of a largely composite number, a positive integer which has at least as many divisors as any smaller positive integer. The name can be somewhat misleading, as the first two highly composite numbers are not actually composite numbers; however, all further terms are.

In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for "repeated unit" and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.

In recreational mathematics, a repdigit or sometimes monodigit is a natural number composed of repeated instances of the same digit in a positional number system. The word is a portmanteau of "repeated" and "digit". Examples are 11, 666, 4444, and 999999. All repdigits are palindromic numbers and are multiples of repunits. Other well-known repdigits include the repunit primes and in particular the Mersenne primes.

73 (seventy-three) is the natural number following 72 and preceding 74. In English, it is the smallest natural number with twelve letters in its spelled out name.

31 (thirty-one) is the natural number following 30 and preceding 32. It is a prime number.

61 (sixty-one) is the natural number following 60 and preceding 62.

101 is the natural number following 100 and preceding 102.

In mathematics, and more particularly in number theory, primorial, denoted by "#", is a function from natural numbers to natural numbers similar to the factorial function, but rather than successively multiplying positive integers, the function only multiplies prime numbers.

1000 or one thousand is the natural number following 999 and preceding 1001. In most English-speaking countries, it can be written with or without a comma or sometimes a period separating the thousands digit: 1,000.

2000 is a natural number following 1999 and preceding 2001.

10,000 is the natural number following 9,999 and preceding 10,001.

A Friedman number is an integer, which represented in a given numeral system, is the result of a non-trivial expression using all its own digits in combination with any of the four basic arithmetic operators (+, −, ×, ÷), additive inverses, parentheses, exponentiation, and concatenation. Here, non-trivial means that at least one operation besides concatenation is used. Leading zeros cannot be used, since that would also result in trivial Friedman numbers, such as 024 = 20 + 4. For example, 347 is a Friedman number in the decimal numeral system, since 347 = 73 + 4. The decimal Friedman numbers are:

<span class="mw-page-title-main">Practical number</span> Number such that it and all smaller numbers may be represented as sums of its distinct divisors

In number theory, a practical number or panarithmic number is a positive integer such that all smaller positive integers can be represented as sums of distinct divisors of . For example, 12 is a practical number because all the numbers from 1 to 11 can be expressed as sums of its divisors 1, 2, 3, 4, and 6: as well as these divisors themselves, we have 5 = 3 + 2, 7 = 6 + 1, 8 = 6 + 2, 9 = 6 + 3, 10 = 6 + 3 + 1, and 11 = 6 + 3 + 2.

A Lychrel number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers. This process is sometimes called the 196-algorithm, after the most famous number associated with the process. In base ten, no Lychrel numbers have been yet proven to exist, but many, including 196, are suspected on heuristic and statistical grounds. The name "Lychrel" was coined by Wade Van Landingham as a rough anagram of "Cheryl", his girlfriend's first name.

An undulating number is a number that has the digit form ABABAB... when in the base 10 number system. It is sometimes restricted to non-trivial undulating numbers which are required to have at least three digits and A ≠ B. The first few such numbers are:

181 is the natural number following 180 and preceding 182.

211 is the natural number following 210 and preceding 212. It is also a prime number.

A repeating decimal or recurring decimal is a decimal representation of a number whose digits are eventually periodic ; if this sequence consists only of zeros, the decimal is said to be terminating, and is not considered as repeating. It can be shown that a number is rational if and only if its decimal representation is repeating or terminating. For example, the decimal representation of 1/3 becomes periodic just after the decimal point, repeating the single digit "3" forever, i.e. 0.333.... A more complicated example is 3227/555, whose decimal becomes periodic at the second digit following the decimal point and then repeats the sequence "144" forever, i.e. 5.8144144144.... Another example of this is 593/53, which becomes periodic after the decimal point, repeating the 13-digit pattern "1886792452830" forever, i.e. 11.18867924528301886792452830....

A tetradicnumber, also known as a four-waynumber, is a number that remains the same when flipped back to front, flipped front to back, mirrored up-down, or flipped up-down. The only numbers that remain the same which turned up-side-down or mirrored are 0, 1, and 8, so a tetradic number is a palindromic number containing only 0, 1, and 8 as digits. The first few tetradic numbers are 1, 8, 11, 88, 101, 111, 181, 808, 818, ....

References