A hidden signal in the Ulam sequence. Stefan Steinerberger Research Report YALEU/DCS/TR-1508 Yale University May 4, 2015

Similar documents
The Ulam Numbers up to One Trillion

Some Remarks on Iterated Maps of Natural Numbers

arxiv: v1 [math.ca] 23 Oct 2018

SPLITTING FIELDS AND PERIODS OF FIBONACCI SEQUENCES MODULO PRIMES

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

arxiv: v1 [math.gm] 1 Oct 2015

Equidivisible consecutive integers

Some Results on Benford s Law and Ulam Sequences

Solutions to Assignment 1

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Received: 2/12/08, Revised: 10/8/08, Accepted: 12/3/08, Published: 12/23/08. Abstract

DIVISIBILITY AND DISTRIBUTION OF PARTITIONS INTO DISTINCT PARTS

Problem Set 5 Solutions

SQUARE PATTERNS AND INFINITUDE OF PRIMES

On the Composite Terms in Sequence Generated from Mersenne-type Recurrence Relations

A combinatorial problem related to Mahler s measure

#A50 INTEGERS 14 (2014) ON RATS SEQUENCES IN GENERAL BASES

Fall 2017 November 10, Written Homework 5

Various Tendencies of Non-Poissonian Distributions Along Subsequences of Certain Transcendental Numbers

MATH CSE20 Homework 5 Due Monday November 4

Jonathan Sondow 209 West 97th Street Apt 6F New York, NY USA

Proof that Fermat Prime Numbers are Infinite

arxiv: v6 [math.nt] 10 Oct 2018

Odd Primes. Theory W: Structure and organization of odd primes (8th problem of Hilbert) mathscience.tsoft .com

Prime Sieve and Factorization Using Multiplication Table

ON HOFSTADTER S MARRIED FUNCTIONS

O Notation (Big Oh) We want to give an upper bound on the amount of time it takes to solve a problem.

Martin Gardner and Wythoff s Game

arxiv: v1 [math.co] 8 Feb 2013

EULER S THEOREM KEITH CONRAD

Conway s RATS Sequences in Base 3

CYCLES AND FIXED POINTS OF HAPPY FUNCTIONS

A Geometric Proof that e is Irrational and a New Measure of its Irrationality

DIFFERENCE DENSITY AND APERIODIC SUM-FREE SETS. Neil J. Calkin Department of Mathematical Sciences, Clemson University, Clemson, SC 29634, USA

inv lve a journal of mathematics 2009 Vol. 2, No. 2 Bounds for Fibonacci period growth mathematical sciences publishers Chuya Guo and Alan Koch

EGYPTIAN FRACTIONS WITH SMALL NUMERATORS

1. multiplication is commutative and associative;

Lengyel's Constant Page 1 of 5

Permutations with Inversions

Joshua N. Cooper Department of Mathematics, Courant Institute of Mathematics, New York University, New York, NY 10012, USA.

ON THE DECIMAL EXPANSION OF ALGEBRAIC NUMBERS

A proof of strong Goldbach conjecture and twin prime conjecture

Fermat s Last Theorem for Regular Primes

A Platonic basis of Integers

Math 11 Foundations: Unit 1 - Logic. Unit 1: Logic

MATHEMATICS 6180, SPRING 2017 SOME MOTIVATIONAL PROBLEMS IN NUMBER THEORY. p k

ATotallyDisconnectedThread: Some Complicated p-adic Fractals

Solutions of the problem of Erdös-Sierpiński:

Chris K. Caldwell 1 Department of Mathematics and Statistics, University of Tennessee at Martin, Martin, TN 38238, USA

The Humble Sum of Remainders Function

Jaegug Bae and Sungjin Choi

Primes in Spirals. Cassie Gribble. A Thesis Submitted to the Faculty of the DEPARTMENT OF MATHEMATICS

Generalized Lucas Sequences Part II

CALCULATING EXACT CYCLE LENGTHS IN THE GENERALIZED FIBONACCI SEQUENCE MODULO p

Carmichael numbers with a totient of the form a 2 + nb 2

Winter Camp 2009 Number Theory Tips and Tricks

#A6 INTEGERS 17 (2017) AN IMPLICIT ZECKENDORF REPRESENTATION

Reducing round-off errors in symmetric multistep methods

Numerical analysis meets number theory: using rootfinding methods to calculate inverses mod p n

Secondary Curriculum Maps

ON THE THREE-ROWED CHOMP. Andries E. Brouwer Department of Mathematics, Technical University Eindhoven, P.O. Box 513, 5600MB Eindhoven, Netherlands

WHAT IS A CHAOTIC ATTRACTOR?

Sums of Consecutive Integers

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

= More succinctly we can write the preceding statements as

On k-fibonacci Numbers with Applications to Continued Fractions

π in terms of φ via the Machin s Route

REGULAR TETRAHEDRA WHOSE VERTICES HAVE INTEGER COORDINATES. 1. Introduction

Tewodros Amdeberhan, Dante Manna and Victor H. Moll Department of Mathematics, Tulane University New Orleans, LA 70118

REFINEMENTS OF SOME PARTITION INEQUALITIES

ANALOGUES OF THE TRIPLE PRODUCT IDENTITY, LEBESGUE S IDENTITY AND EULER S PENTAGONAL NUMBER THEOREM

Some problems related to Singer sets

All numbered readings are from Beck and Geoghegan s The art of proof.

Enumerating Distinct Chessboard Tilings and Generalized Lucas Sequences Part I

Champernowne s Number, Strong Normality, and the X Chromosome. by Adrian Belshaw and Peter Borwein

Compositions, Bijections, and Enumerations

SUMS OF SQUARES WUSHI GOLDRING

A CONSTRUCTION OF ARITHMETIC PROGRESSION-FREE SEQUENCES AND ITS ANALYSIS

MULTIPLICATIVE SEMIGROUPS RELATED TO THE 3x +1 PROBLEM. 1. Introduction The 3x +1iteration is given by the function on the integers for x even 3x+1

Journal of Number Theory

#A67 INTEGERS 18 (2018) ON THE NESTED LOCAL POSTAGE STAMP PROBLEM

THE UNIT DISTANCE PROBLEM ON SPHERES

SOME HINTS AND ANSWERS TO 18.S34 SUPPLEMENTARY PROBLEMS (Fall 2007)

Needles and Numbers. The Buffon Needle Experiment

PROBLEMS GUIDE Mathcounts / Contest Math

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

The dichotomy between structure and randomness. International Congress of Mathematicians, Aug Terence Tao (UCLA)

#A11 INTEGERS 12 (2012) FIBONACCI VARIATIONS OF A CONJECTURE OF POLIGNAC

On the discrepancy of circular sequences of reals

1 i<j k (g ih j g j h i ) 0.

Cool theorems proved by undergraduates

ALIQUOT SEQUENCES WITH SMALL STARTING VALUES. Wieb Bosma Department of Mathematics, Radboud University, Nijmegen, the Netherlands

The poetry of mathematics

ABSTRACT 1. INTRODUCTION

Counting on Continued Fractions

Week 2: Sequences and Series

Results of modern sieve methods in prime number theory and more

Cullen Numbers in Binary Recurrent Sequences

A linear algebra proof of the fundamental theorem of algebra

A linear algebra proof of the fundamental theorem of algebra

Transcription:

The Ulam sequence is defined as a 1 = 1, a 2 = 2 and a n being the smallest integer that can be written as the sum of two distinct earlier elements in a unique way. This gives 1, 2, 3, 4, 6, 8, 11, 13, 16, 18, 26, 28, 36, 38, 47,... Virtually nothing is known about the behavior of the sequence and it is described as quite erratic and seems to not follow any recognizable pattern. Consecutive differences do not seem to be periodic and can be large, e.g. a 18858 a 18857 = 315. The purpose of this short note is to report the following empirical discovery: there seems to exist a real α 2.57145... such that {αa n : n N} is not uniformly distributed mod 2π. The distribution function of αa n mod 2π seems to be supported on an interval of length 3 and has a curious shape. Indeed, for the first 10.000 elements of Ulam s sequence, we have cos (2.57145 a n ) < 0 for all a n / {2, 3, 47, 69}. All of this indicates that Ulam s sequence has a lot more rigidity than hithereto assumed. A hidden signal in the Ulam sequence Stefan Steinerberger Research Report YALEU/DCS/TR-1508 Yale University May 4, 2015 Approved for public release: distribution is unlimited. Keywords: Ulam sequence, frequency shift 1

A HIDDEN SIGNAL IN THE ULAM SEQUENCE STEFAN STEINERBERGER Abstract. The Ulam sequence is defined as a 1 = 1, a 2 = 2 and a n being the smallest integer that can be written as the sum of two distinct earlier elements in a unique way. This gives 1, 2, 3, 4, 6, 8, 11, 13, 16, 18, 26, 28, 36, 38, 47,... Virtually nothing is known about the behavior of the sequence and it is described as quite erratic and seems to not follow any recognizable pattern. Consecutive differences do not seem to be periodic and can be large, e.g. a 18858 a 18857 = 315. The purpose of this short note is to report the following empirical discovery: there seems to exist a real α 2.57145... such that {αa n : n N} is not uniformly distributed mod 2π. The distribution function of αa n mod 2π seems to be supported on an interval of length 3 and has a curious shape. Indeed, for the first 10.000 elements of Ulam s sequence, we have cos (2.57145 a n) < 0 for all a n / {2, 3, 47, 69}. All of this indicates that Ulam s sequence has a lot more rigidity than hithereto assumed. 1. Introduction Stanislaw Ulam introduced his sequence, nowadays called the Ulam sequence, 1, 2, 3, 4, 6, 8, 11, 13, 16, 18, 26, 28, 36, 38, 47, 48, 53, 57, 62, 69, 72, 77, 82, 87, 97...... in a 1964 survey [12] on unsolved problems. The construction is given by a 1 = 1, a 2 = 2 and then iteratively by choosing a n as the smallest integer that can be written as the sum of two distinct earlier elements in a unique way. Ulam writes One can consider a rule for growth of patterns in one dimension it would be merely a rule for obtaining successive integers. [...] In both cases simple questions that come to mind about the properties of a sequence of integers thus obtained are notoriously hard to answer. (Ulam, 1964) He asks in the Preface of [13] whether it is possible to determine the asymptotic density of the sequence (this problem is sometimes incorrectly attributed to Recaman [8]). While empirically the density seems to be close to 7.4%, it is not even known whether it is bigger than 0. Indeed, it seems that hardly anything is known at all: Section C4 of Guy s Unsolved Problems in Number Theory [6] contains an observation due to Burr and Zeitlin that a n+1 a n +a n 1 < 2a n and that therefore every integer can be written as a sum of Ulam numbers. Different initial values a 1, a 2 can give rise to more structured sequences [2, 4, 7]: for some of them the sequence of consecutive differences a n+1 a n is eventually periodic. It seems that this is not the case for Ulam s sequence: Knuth [9] remarks that a 4953 a 4952 = 262 and a 18858 a 18857 = 315. In general, Ulam s sequence does not appear to follow any recognizable pattern [3] and is quite erratic [11]. We describe the (accidental) discovery of some very surprising structure. While using Fourier series with Ulam numbers as frequencies, we noticed a persisting signal in the noise: indeed, dilating the sequence by a factor α 2.57145... and considering the sequence (αa n mod 2π) gives rise to a very regular distribution function. One surprising implication is cos (2.57145 a n ) < 0 for the first 10.000 Ulam numbers except 2, 3, 47, 69. 2

40 20 20 1 2 3 4 5 6 100 50 50 1 2 3 4 5 6 3 The dilation factor α seems to be a universal constant (of which we were able to compute the first four digits); it seems likely that cos (αa n ) < 0 holds for all but these four Ulam numbers. 2. The Observation 2.1. A Fourier series. We were originally motivated by the following: suppose the Ulam sequence has a positive density, then by a classical theorem of Roth [10] it contains many 3-arithmetic progressions. We were interested in whether the existence of progressions would have any impact on the structure of the sequence (because, if a n + b is in the sequence for n = 1, 2, 3, then either a or 2a is not). There is a well-known connection between randomness in sets and smallness of Fourier coefficients and this motivated us to study f N (x) = Re N e ianx = n=1 N cos (a n x). Clearly, f N (0) = N. However, since the Ulam sequence is not periodic (at least for small N) and seems to have positive density, one would expect a very large amount of cancellation outside of the origin. Much to our surprise, we discovered that this is not the case. n=1 Figure 1. The function f 50. Figure 2. The function f 100. We see that f N is indeed large around the 0 and small away from the origin with the clear exception of two points: there is a clear signal in the noise; furthermore, the location of the signal is independent of N and its strength is increasing linearly in N. 2.2. The hidden frequency. An explicit computation with N = 10.000 pinpoints the location of the signal at α 2.57145... and, by symmetry, at 2π α. This signal acts as a hidden shift in frequency space: we can now remove that shift in frequency by considering { αan } S N = αa n 2π : n N instead. 2π Usually, for a generic non-periodic sequence (or even this very sequence with a different α), one would expect the set to be asymptotically uniformly distributed mod 2π (for the simple reason that there is no good reason why any structure should be present). Here, as it turns out, the situation is very different. We clearly see two big centers of concentration; everything is strictly contained inside the interval [1.4, 5.2] and after the first 69 elements of the sequence, everything is in the interval [1.5, 4.7]. We do not know whether the discovery of this phenomenon will allow for some additional insight into the structure of Ulam s sequence or only add to its mystery in any case, it clearly indicates some underlying and very regular structure at work.

4 Figure 3. Distribution of S N on [0, 2π] for N = 10.000. 2.3. Prior observations. We emphasize that there have been prior observations hinting at some sort of regularity (see e.g. David Wilson s remark in the The On-Line Encyclopedia of Integer Sequences [9]). It is clear that even without a suitable dilation of the Ulam numbers, some form of periodicity is still visible to the human eye the truly surprising fact is that a suitable dilation does not merely yield some form of quasi-periodicity but actually seems to give rise to a nontrivial measure on T. The factor α is universal: if we dilate by any factor β such that α and β are linearly independent over Q (which is generically the case and which one would expect for β = 1), then, assuming there exists a smooth, nontrivial distribution function for (αa n mod 2π), the ergodicity of irrationals on T implies that the distribution function of (βa n mod 2π) will tend towards the uniform distribution. 2.4. Other initial values. There has been quite some work on the behavior of Ulam-type sequences with other initial values. It has first been observed by Queneau [7] that the initial values (a 1, a 2 ) = (2, 5) give rise to sequence where a n+1 a n is eventually periodic. Finch proved that this is the case whenever only finitely many even numbers appear in the sequence and conjectured that this is the case for (a 1, a 2 ) = (2, n) whenever n 5 is odd. Finch s conjecture was proven by Schmerl & Spiegel [11]. Subsequently, Cassaigne & Finch [1] proved that all sequences starting from (a 1, a 2 ) = (4, n) with n 1 (mod 4) contain precisely three even integers and are thus eventually periodic. The sequence (a 1, a 2 ) = (2, 3) as well as all sequences (a 1, a 2 ) = (1, n) with n N do not exhibit such behavior and are being described erratic in the above literature. 0 1 2 3 4 5 6 0 1 2 3 4 5 6 Figure 4. Distribution for initial value (a 1, a 2 ) = (1, 3). Figure 5. Distribution for the initial values (a 1, a 2 ) = (2, 3).

5 It seems that the underlying mechanism is indeed independent of the initial values. Using again N = 10.000 elements, we found that the frequencies for the erratic sequences with (a 1, a 2 ) = (1, 3) and (a 1, a 2 ) = (2, 3) are given by α (1,3) 2.8335 and α (2,3) 1.1650 and removing that hidden frequeny in the same way as above gives rise to the following two distributions, where the first one appears to be of the very same type as the distribution in the classical case while the second one is very different. References [1] J. Cassaigne and S. Finch, A class of 1-additive sequences and quadratic recurrences. Experiment. Math. 4 (1995), no. 1, 49-60. [2] S. Finch, Conjectures about s-additive sequences. Fibonacci Quart. 29 (1991), no. 3, 209-214. [3] S. Finch, Patterns in 1-additive sequences. Experiment. Math. 1 (1992), no. 1, 57-63 [4] S. Finch, On the regularity of certain 1-additive sequences. J. Combin. Theory Ser. A 60 (1992), no. 1, 123-130. [5] V. Gardiner, R. Lazarus and N. Metropolis, On certain sequences of integers defined by sieves. Math. Mag. 29 (1956), 117-122. [6] Richard K. Guy, Unsolved problems in number theory. Third edition. Problem Books in Mathematics. Springer- Verlag, New York, 2004. [7] R. Queneau, Sur les suites s-additives. J. Combinatorial Theory Ser. A 12 (1972), 31-71. [8] B. Recaman, Research Problems: Questions on a Sequence of Ulam. Amer. Math. Monthly 80 (1973), 919-920. [9] The On-Line Encyclopedia of Integer Sequences, http://oeis.org, 30. Apr 2015, Sequence A002858 [10] K. F. Roth, On certain sets of integers. J. London Math. Soc. 28, (1953). 104-109. [11] J. Schmerl and E. Spiegel, The regularity of some 1-additive sequences. J. Combin. Theory Ser. A 66 (1994), no. 1, 172-175. [12] S. Ulam, Combinatorial analysis in infinite sets and some physical theories. SIAM Rev. 6 1964 343-355. [13] S. M. Ulam, Problems in modern mathematics. Science Editions John Wiley & Sons, Inc., New York 1964 Department of Mathematics, Yale University, 10 Hillhouse Avenue, New Haven, CT 06511, USA E-mail address: stefan.steinerberger@yale.edu