Some Remarks on Iterated Maps of Natural Numbers

Similar documents
CYCLES AND FIXED POINTS OF HAPPY FUNCTIONS

CALCULATING EXACT CYCLE LENGTHS IN THE GENERALIZED FIBONACCI SEQUENCE MODULO p

Journal of Number Theory

Cullen Numbers in Binary Recurrent Sequences

On the number of special numbers

The primitive root theorem

Some Remarks on the Discrete Uncertainty Principle

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

A remark on a conjecture of Chowla

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

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

On generalizing happy numbers to fractional base number systems

A SIMPLE PROOF OF BURNSIDE S CRITERION FOR ALL GROUPS OF ORDER n TO BE CYCLIC

EGYPTIAN FRACTIONS WITH EACH DENOMINATOR HAVING THREE DISTINCT PRIME DIVISORS

On arithmetic functions of balancing and Lucas-balancing numbers

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

4 Linear Recurrence Relations & the Fibonacci Sequence

ON VALUES OF CYCLOTOMIC POLYNOMIALS. V

Ma/CS 6a Class 2: Congruences

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

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Colloq. Math. 145(2016), no. 1, ON SOME UNIVERSAL SUMS OF GENERALIZED POLYGONAL NUMBERS. 1. Introduction. x(x 1) (1.1) p m (x) = (m 2) + x.

ON THE SET OF WIEFERICH PRIMES AND OF ITS COMPLEMENT

. As the binomial coefficients are integers we have that. 2 n(n 1).

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

COLLATZ CONJECTURE: IS IT FALSE?

Rational tetrahedra with edges in geometric progression

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

A CONSTRUCTION OF ARITHMETIC PROGRESSION-FREE SEQUENCES AND ITS ANALYSIS

PELL S EQUATION NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA

Journal of Number Theory

Ma/CS 6a Class 2: Congruences

ON INTEGERS EXPRESSIBLE BY SOME SPECIAL LINEAR FORM. 1. Introduction

arxiv: v1 [math.nt] 18 Jul 2012

Journal of Combinatorics and Number Theory 1(2009), no. 1, ON SUMS OF PRIMES AND TRIANGULAR NUMBERS. Zhi-Wei Sun

arxiv: v1 [math.gm] 1 Oct 2015

THE EULER FUNCTION OF FIBONACCI AND LUCAS NUMBERS AND FACTORIALS

Notes on Systems of Linear Congruences

1. multiplication is commutative and associative;

An Elementary Proof that any Natural Number can be Written as the Sum of Three Terms of the Sequence n2

ON THE ELEMENTS OF THE CONTINUED FRACTIONS OF QUADRATIC IRRATIONALS

*!5(/i,*)=t(-i)*-, fty.

arxiv: v1 [math.nt] 12 May 2017

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

Sieving 2m-prime pairs

Equidivisible consecutive integers

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

5.2. Perfect Numbers Divisors of a natural number were covered in Section 5.1.

Florian Luca Instituto de Matemáticas, Universidad Nacional Autonoma de México, C.P , Morelia, Michoacán, México

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

Recognising nilpotent groups

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

1. Introduction. Let P and Q be non-zero relatively prime integers, α and β (α > β) be the zeros of x 2 P x + Q, and, for n 0, let

MATH 2200 Final Review

Fermat numbers and integers of the form a k + a l + p α

Fibonacci numbers of the form p a ± p b

The Collatz Problem and Analogues

Special values of derivatives of L-series and generalized Stieltjes constants

NOTES ON ZHANG S PRIME GAPS PAPER

THE SUM OF DIGITS OF n AND n 2

Solutions to Assignment 1

Instructor s suggestions for use of Number Theory notes

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

A Curious Connection Between Fermat Numbers and Finite Groups

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Necessary and Sufficient Conditions for the Central Norm to Equal 2 h in the Simple Continued Fraction Expansion of 2 h c for Any Odd Non-Square c > 1

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

Standard forms for writing numbers

The Impossibility of Certain Types of Carmichael Numbers

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

On the discrepancy of circular sequences of reals

A Simple Left-to-Right Algorithm for Minimal Weight Signed Radix-r Representations

Basic elements of number theory

Basic elements of number theory

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

PRIME NUMBERS IN CERTAIN ARITHMETIC PROGRESSIONS M. Ram Murty 1 & Nithum Thain Introduction

PERIODICITY OF SOME RECURRENCE SEQUENCES MODULO M

Elliptic Curves Spring 2015 Problem Set #2 Due: 02/20/2015

PILLAI S CONJECTURE REVISITED

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

Relative Densities of Ramified Primes 1 in Q( pq)

Math 110 HW 3 solutions

Fibonacci Sequence and Continued Fraction Expansions in Real Quadratic Number Fields

ON A THEOREM OF TARTAKOWSKY

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

There are no Barker arrays having more than two dimensions

THE CONCEPT OF SUBTRACTIVE BLACK HOLES AND BLACK LOOPS

THE CONGRUENT NUMBER PROBLEM

New Minimal Weight Representations for Left-to-Right Window Methods

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

FIFTH ROOTS OF FIBONACCI FRACTIONS. Christopher P. French Grinnell College, Grinnell, IA (Submitted June 2004-Final Revision September 2004)

LEHMER S TOTIENT PROBLEM AND CARMICHAEL NUMBERS IN A PID

Polynomial analogues of Ramanujan congruences for Han s hooklength formula

#A5 INTEGERS 17 (2017) THE 2-ADIC ORDER OF SOME GENERALIZED FIBONACCI NUMBERS

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

A NOTE ON THE TURÁN FUNCTION OF EVEN CYCLES

On some inequalities between prime numbers

Winter Camp 2009 Number Theory Tips and Tricks

GAPS IN BINARY EXPANSIONS OF SOME ARITHMETIC FUNCTIONS, AND THE IRRATIONALITY OF THE EULER CONSTANT

Transcription:

Some Remarks on Iterated Maps of Natural Numbers Agnes M Herzberg and M Ram Murty (left) Agnes M. Herzberg is a Fellow of the Royal Society of Canada and Emeritus Professor at Queen s University, Canada. She continues research on the statistical design of experiments. (right) M Ram Murty is also a Fellow of the Royal Society of Canada as well as Fellow the Indian Science Academy. He is currently Queen s Research Chair in mathematics and philosophy at Queen s University, Canada. Dedicated to Professor Sir David Cox and Professor John Meisel on the occasion of their 89th birthdays. Research of the authors was partially supported by NSERC Discovery grants. Keywords Iterates of maps, integer sequences, Steinhaus problem. The iterates of maps f : N N given as a function of the digits of the number written in a fixed base b are dealt with here. For such maps, the iterates end up in a finite collection of cycles. The number and length of such cycles have arithmetic significance. 1. Introduction In preparing to write a congratulatory note to John Meisel on his 89th birthday, one of the authors looked at the volume The Penguin Dictionary of Curious and Interesting Numbers by D Wells (1998) that Meisel had given her earlier. For the number 89, it was noted that among other properties, Add the squares of the digits of any number: repeat this process, and eventually the number [sequence] either sticks to 1, or goes round this cycle: 89-145-42-20-4-16-37-58-89.... It was this property that set the authors on the study that resulted in this article. The first appearance of this intriguing phenomenon is in an old problem of Steinhaus [1] which asks the following. Take any natural number and add the square of its digits (in base 10). Iterating this procedure with the new numbers obtained, show that either this procedure leads to the number 1 or it will lead to the following recurrent cycle: 89, 145, 42, 20, 4, 16, 37, 58, 89,... This problem is not difficult to solve. However, the problem can be placed in a wider context, as we do, and then new questions arise about the iterates of such maps and some of these questions are still unsolved. 1038 RESONANCE November 2014

What is fascinating is that something from recreational mathematics can lead to some profound questions in dynamical systems of natural numbers. We explore this here. It is unlikely that the problem originates from Steinhaus. It is equally unlikely that it comes from Reg Allenby s daughter as described on page 234 of [2] who describes numbers that terminate at 1 as happy numbers. It is conjectured that about 1/7 of the set of natural numbers are happy though it is not clear if such numbers even have a density. Can one obtain estimates for upper and lower densities? Seemingly, more conjectures abound. What about the occurrence of consecutive happy numbers? Are there infinitely many such pairs? How large are the gaps between happy numbers? El-Sedy and Siksek [3] showed that there exist sequences of consecutive happy numbers of arbitrary length. This was subsequently generalized by Pan [4] who studied the analogous question replacing base 10 with base b. Any number theorist knows that such questions can be asked ad infinitum but the value of these questions emanates from its fecundity to generate new mathematical concepts and reveal interconnections with other parts of mathematics. The novelty of the question given here is its relation to dynamical systems and number theory. This topic seems to have been re-discovered many times before by many authors as the listing of our references reveals. There are at least five papers by Grundman and Teeple [5 9] on this problem. Let N be the set of natural numbers and f : N {0} N {0} be an arbitrary map. For each natural number n writteninbaseb: n = a 0 + a 1 b + + a k 1 b k 1 It is conjectured that about 1/7 of the set of natural numbers are `happy' though it is not clear if such numbers even have a density. El-Sedy and Siksek showed that there exist sequences of consecutive happy numbers of arbitrary length. RESONANCE November 2014 1039

with k digits (in base b), define the map φ(n) =f(a 0 )+f(a 1 )+ + f(a k 1 ). Our first result is: Theorem 1. There is a finite set S such that for every natural number n, there is an r such that the rth iterate φ r (n) lies in S. Remark. Here φ r = φ φ φ times. }{{} r Proof. Since 0 a i b 1, we can set Then, φ(n) km. Now, so that We easily see that M =max 0 a<b f(a). k 1 log n log b <k k = φ(n) km = [ ] log n +1. log b ([ ] ) log n +1 M<n log b if n n 0 (say). Thus, for n sufficiently large, φ(n) <n. In particular, there is a k 0 such that if n has more than k 0 digits, then n n 0 so that φ(n) <n.let S = {n : n has k 0 digits in base b} {φ(n) :n n 0 }. Then, it is easily seen that S satisfies the requirements of the theorem. 2. The Herzberg Maps For each natural number m, we consider the map φ m (n) =a m 0 + am 1 + + am k 1. 1040 RESONANCE November 2014

For these maps (first brought to the attention of the second author by the first author, and hence the name), termed Herzberg maps, more precise inequalities and descriptions of S can be derived. Clearly, φ m (n) (b 1) m k. We begin with the following lemma. Lemma 2. If k m +2,then (b 1) m k b k 1. Proof. Consider the function Note that F (x) =b x 1 x(b 1) m. F (x) =(logb)b x 1 (b 1) m > 0 if x m +1. In other words, F (x) is increasing for x m +1.Thus, since F (x) F (m +2)=b m+1 (m +2)(b 1) m > 0 b m+1 =(b 1+1) m+1 =(b 1) m+1 +(m +1)(b 1) m + > (b 1) m+1 +(m +1)(b 1) m =(m +2)(b 1) m. In other words, (b 1) m k b k 1 claimed. This proves: Theorem 2. If k m +2,then if k m +2, as φ m (n) <n, that is, if n has more than m+2 digits, then φ m (n) <n. Thus, for the Herzberg maps, φ m,wecantakes = S m RESONANCE November 2014 1041

to be the set of numbers with less than or equal to m+1 digits. Remark. Theorem 2 reduces the determination of the possible values of the iterations of φ m to a finite calculation. In the special case b =10andm = 2, corresponding to the original Steinhaus problem, we only need to calculate the orbits of φ 2 for all numbers less than 1000. If b is small (e.g., b = 2 or 3), this is manageable since we need to check in general b 3 numbers. Thus, for b =2, we need to check the orbits of 1, 10, 11, 100, 101, 110, 111 and in each case we see that the iterations terminate at 1. In fact, for b =2,wehaveastrengtheningofTheorem 2. Theorem 3. If b =2,thenφ j m (n) =1for all n and j sufficiently large (depending on n and m). Proof. In base 2, any digit is either 0 or 1. Thus, if φ m (n) = i a m i with n = i a i 2 i, then φ m (n) = i a i < i a i 2 i = n for n>1 so that the iterates form a descending sequence which eventually terminates at 1. For b =3andm = 2, this is also manageable. We need to check 27 numbers. A quick check shows that only two possibilities arise: φ 2 has 1, 5, and 8 as fixed points and the cycle {2, 4} are the only possible terminal points of the iterates. Now n = i a i3 i i a i(mod 2) i a2 i = φ 2 (n)(mod 2) 1042 RESONANCE November 2014

because a 2 a(mod 2). Thus, iterating we get, so that we deduce: φ k 2 (n) n(mod 2) Theorem 4. If b = 3, then φ 2 (n) n(mod 2). In particular, the terminal point is odd if and only if n is odd. The previous argument works for any odd base b. Indeed, a m a(mod 2) and we have φ m (n) = i a m i i a i i a i b i (mod 2). In other words, φ m (n) andn havethesameparity.this leads to: Theorem 5. Let the base b be odd. If the terminal point of the iterates of φ m (n) is 1, thenn is odd. In other words, the density of numbers with 1 as the terminal point is at most 1/2. This theorem can be extended to give the following. Theorem 6. Let p be a prime number and suppose that b 1(modp). Ifm is a power of p, then, n φ m (n)(mod p). In particular, the density of numbers with 1 as the terminal point is at most 1/p. Proof. Since b 1(mod p), n a i (mod p). i On the other hand, by Fermat s little theorem, we have a p a (mod p) and by induction, a pr a (mod p) for any r 1. so that φ m (n) = i a m i a i a i b i n(mod p), i i For a base b congruent to 1 modulo a prime p, then the density of numbers with 1 as the terminal number is at the most 1/p. RESONANCE November 2014 1043

which completes the proof since the final assertion follows immediately on noting that the density of numbers 1(modp) isequalto1/p. 3. Fixed Points of φ 2 The eventual cycles of numbers and their lengths for the Herzberg maps seem to be of some interest. Cycles of length 1 correspond to fixed points of these maps. In thecaseofφ 2, the fixed points are easily determined as follows. We will show that if φ 2 (n) =n, thenn<b 2. This helps us to reduce the search for fixed points. Theorem 7. If φ 2 (n) =n, thenn<b 2. Proof. Write n = a k b k +a k 1 b k 1 + +a 1 b+a 0 = a 2 k+a 2 k 1+ +a 2 1+a 2 0 so that a k (b k a k )+ a 1 (b a 1 )=a 2 0 a 0. The left-hand side is a sum of non-negative terms as b>a i and so it is greater than or equal to a k (b k a k ) as a k 0. Buta 2 0 a 0 = a 0 (a 0 1) <b(b 1) = b 2 b. Also, a k (b k a k ) b k a k b 2 (b 1) = b 2 b +1 which is a contradiction. Thus, any fixed point n satisfies n<b 2. This last result allows us to connect this problem to the classical number theoretic problem of representing a number as a sum of two squares. Indeed, from Theorem 7, if we want to determine the fixed points of φ 2,we need only consider numbers with two digits. Thus, n = a 0 + a 1 b and φ 2 (n) =n, if and only if a 2 0 + a 2 1 = a 0 + a 1 b. 1044 RESONANCE November 2014

This is equivalent to a 2 0 a 0 + a 2 1 a 1 b =0 which means ( a 0 1 ) 2 +(a 1 b2) 2 = 1 2 4 + b2 4, that is, if and only if (2a 0 1) 2 +(2a 1 b) 2 =1+b 2. In other words, to find the fixed points of φ 2, we need only find all the representations of 1 + b 2 as a sum of two squares and from these representations determine the fixed points. For example, if 1 + b 2 = p is prime, then as there is only one way to write a prime congruent to 1 (mod 4) as a sum of two positive squares, we must have a 0 =1anda 1 =0(sincea 1 = b is ruled out because the digits are less than b) and this corresponds to n =1 as being the only fixed point. In particular, for b = 10, 1 is the only fixed point since 101 = 1 + 10 2 is a prime. In other words, to find the fixed points of φ 2, we need only find all the representations of 1+b 2 as a sum of two squares and from these representations determine the fixed points. This pretty result has been re-discovered by many. For example, Beardon [10] showed this in 1998, although there were others before him who also discovered it. 4. The Case k =3 Iseki [11, 12] obtained the complete list of cycles for the case k = 3 and b = 10. The cycles are of length 3 starting with 55 or 160, or length 2 starting with 136 or 919 or length 1 with 1, 153, 370 or 407. This was obtained through extensive computer calculations. 5. Open Questions As can be seen from the case k =3,thequestionsof how many cycles there are and what their lengths are, are not transparent. However, even for k = 2 and b = 10, there seem to be several unresolved aspects. These RESONANCE November 2014 1045

Acknowledgements We thank the referee for useful comments on an earlier version of this article. questions have also risen in several later studies [13, 14]. For instance, for k = 2, (as noted earlier), Guy [2] calls numbers that terminate at 1 happy numbers and asks what is the density of such numbers. It is unclear if the density exists, though there have been some recent papers in this context (see for example [4]). Suggested Reading Address for Correspondence Agnes M Herzberg 1 M Ram Murty 2 Department of Mathematics Queen s University Kingston Ontario K7L 3N6, Canada. Email: 1 herzberg@queensu.ca 2 murty@mast.queensu.ca [1] H Steinhaus, One Hundred Problems in Elementary Mathematics, Dover Publications, 1979. [2] R K Guy, Unsolved Problems in Number Theory, Springer-Verlag, New Yor, 2nd edition, 2004. [3] E El-Sedy and S Siksek, On happy numbers, Rocky Mountain J. Math., Vol.30, No.2, pp.565 570, 2000. [4] H Pan, On consecutive happy numbers, Journal of Number Theory, Vol. 128, No.6, pp.1646 1654, 2008. [5] H G Grundman and E A Teeple, Generalized happy numbers. Fibonacci Quart., Vol.39, No.5, pp.462 466, 2001. [6] H G Grundman and E A Teeple, Heights of happy numbers and cubic happy numbers, Fibonacci Quart., Vol.41, 2003, No.4, pp.301 306, 2003. [7] H G Grundman and E A Teeple, Sequences of generalized happy numbers with small bases, J. Integer Seq., Vol.10, No.1, Article 07.1.8, 6, 2007. [8] H G Grundman and E A Teeple, Sequences of consecutive happy numbers, Rocky Mountain J. Math., Vol.37, No.6, pp.1905 1916, 2007. [9] H G Grundman and E A Teeple, Iterated sums of fifth powers of digits, Rocky Mountain J. Math., Volo.38, No.4, pp.1139 1146, 2008. [10] A F Beardon, Sums of squares of digits, Math. Gazette, Vol.82, pp.379 388. 1998. [11] K Iseki, A problem of number theory, Proc. Japan Acad., Vol.36, pp.578 583, 1960. [12] K Iseki, Necessary results for computation of cyclic parts in Steinhaus problem, Proc. Japan Acad., Vol.36, pp.650 651, 1960. [13] S P Mohanty and H Kumar, Powers of sums of digits, Math. Mag., Vol.52, No.5, pp.310 312, 1979. [14] K Chikawa and K Iseki, Unsolved problems in number theory. Steinhaus Problem, Proc. Japan Acad., Vol.38, p.271, 1962. [15] J Gilmer, On the density of happy numbers, preprint, 2011, posted at: http://arxiv.org/pdf/1110.3836v3.pdf 1046 RESONANCE November 2014