TOPICS
Search

Undulating Number


An undulating number is a nonnegative integer whose decimal expansion alternates between two digits a and b. The first few nontrivial undulants, which have at least three digits and satisfy a!=b, are 101, 121, 131, 141, 151, 161, 171, 181, 191, 202, 212, ... (OEIS A046075). Including the trivial 1- and 2-digit undulants and allowing a=b gives OEIS A033619.

The only nontrivial undulating squares are 121, 484, 676, and 69696 (OEIS A016073; Moews 1998, pp. 1-7). Pickover (1995) had reported that no larger examples have fewer than a million digits. Several tricks can be used to speed the search for undulating squares, especially by examining the possible patterns of ending digits. For example, a nontrivial undulating square number with at least four digits must end in one of 0404, 1616, 2121, 2929, 3636, 6161, 6464, 6969, 8484, and 9696.

Among nontrivial undulating numbers with at most 100 digits, the only perfect power n^p with a positive integer base n and an integer exponent 3<=p<=31 is 7^3=343 (Pickover 1995). A large undulating prime number is given by 7+720(100^(49)-1)/99 (Pickover 1995).

A binary undulant is a power of 2 whose decimal expansion contains the substring 010 or 101. The first few are 2^n for n=103, 107, 138, 159, 179, 187, 192, 199, 205, ... (OEIS A046076). The smallest n for which the longest substring of alternating digits 0 and 1 in the decimal expansion of 2^n has length exactly d, for d=3, 4, ..., are 103, 138, 875, 949, 6617, 1802, 14545, ... (OEIS A046077). The longest such substring has length 10 for n=1748219 (Pickover 1995).


Explore with Wolfram|Alpha

References

Moews, D. "No More Undulating Squares." Oct. 1998. https://djm.cc/dmoews/und.pdf.Pickover, C. A. "Is There a Double Smoothly Undulating Integer?" In Computers, Pattern, Chaos and Beauty. New York: St. Martin's Press, 1990.Pickover, C. A. "The Undulation of the Monks." Ch. 20 in Keys to Infinity. New York: Wiley, pp. 159-161, 1995.Sloane, N. J. A. Sequences A016073, A033619, A046075, A046076, and A046077 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Undulating Number

Cite this as:

Weisstein, Eric W. "Undulating Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/UndulatingNumber.html

Subject classifications