Iterations of sum of powers of digits



Similar documents
Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

k, then n = p2α 1 1 pα k

2 When is a 2-Digit Number the Sum of the Squares of its Digits?

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

Math 319 Problem Set #3 Solution 21 February 2002

Factoring Algorithms

Section 4.2: The Division Algorithm and Greatest Common Divisors

n k=1 k=0 1/k! = e. Example 6.4. The series 1/k 2 converges in R. Indeed, if s n = n then k=1 1/k, then s 2n s n = 1 n

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Continued Fractions. Darren C. Collins

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Applications of Fermat s Little Theorem and Congruences

Note on some explicit formulae for twin prime counting function

Homework until Test #2


Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Introduction. Appendix D Mathematical Induction D1

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Continued Fractions and the Euclidean Algorithm

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

On the largest prime factor of x 2 1

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

SECTION 10-2 Mathematical Induction

Lecture Notes on Polynomials

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Georgia Standards of Excellence Curriculum Map. Mathematics. GSE 8 th Grade

Lecture 13: Factoring Integers

SCORE SETS IN ORIENTED GRAPHS

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

A Study on the Necessary Conditions for Odd Perfect Numbers

8 Divisibility and prime numbers

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

A simple criterion on degree sequences of graphs

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Conic Construction of a Triangle from the Feet of Its Angle Bisectors

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

8 Primes and Modular Arithmetic

Midterm Practice Problems

V Quantitative Reasoning: Computers, Number Theory and Cryptography

Solutions for Practice problems on proofs

Handout NUMBER THEORY

MATH10040 Chapter 2: Prime and relatively prime numbers

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

PROOFS BY DESCENT KEITH CONRAD

The Fundamental Theorem of Arithmetic

1.2. Successive Differences

Tilings of the sphere with right triangles III: the asymptotically obtuse families

SEQUENCES OF MAXIMAL DEGREE VERTICES IN GRAPHS. Nickolay Khadzhiivanov, Nedyalko Nenov

CSI 333 Lecture 1 Number Systems

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

AN ANALYSIS OF A WAR-LIKE CARD GAME. Introduction

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

GREATEST COMMON DIVISOR

Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

4. Continuous Random Variables, the Pareto and Normal Distributions

Assignment 5 - Due Friday March 6

Settling a Question about Pythagorean Triples

ELEMENTARY PROBLEMS AND SOLUTIONS. Edited by A. P. HiLLMAN University of New Mexico, Albuquerque, NM 87131

International Journal of Information Technology, Modeling and Computing (IJITMC) Vol.1, No.3,August 2013

Collinear Points in Permutations

The positive minimum degree game on sparse graphs

Counting Primes whose Sum of Digits is Prime

4.2 Euler Discovers Patterns for Prime Divisors of Quadratic Forms

Full and Complete Binary Trees

Pennsylvania System of School Assessment

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Math 55: Discrete Mathematics

A note on companion matrices

Computing exponents modulo a number: Repeated squaring

As we have seen, there is a close connection between Legendre symbols of the form

Cycles in a Graph Whose Lengths Differ by One or Two

Introduction to Finite Fields (cont.)

SUM OF TWO SQUARES JAHNAVI BHASKAR

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

MATH 289 PROBLEM SET 4: NUMBER THEORY

Bipan Hazarika ON ACCELERATION CONVERGENCE OF MULTIPLE SEQUENCES. 1. Introduction

The Mathematics of the RSA Public-Key Cryptosystem

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

Integer Factorization using the Quadratic Sieve

Mathematics 31 Pre-calculus and Limits

Properties of sequences Since a sequence is a special kind of function it has analogous properties to functions:

with functions, expressions and equations which follow in units 3 and 4.

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

NUMBER SYSTEMS. William Stallings

TAKE-AWAY GAMES. ALLEN J. SCHWENK California Institute of Technology, Pasadena, California INTRODUCTION

Elementary Number Theory

The Chinese Remainder Theorem

CONTRIBUTIONS TO ZERO SUM PROBLEMS

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Rising Rates in Random institute (R&I)

Today s Topics. Primes & Greatest Common Divisors

Five fundamental operations. mathematics: addition, subtraction, multiplication, division, and modular forms

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Warm up. Connect these nine dots with only four straight lines without lifting your pencil from the paper.

Transcription:

International Journal of Computer Discovered Mathematics Volume 0 (2015) No.0 pp.1-4 c IJCDM Received 12 June 2015. Published on-line 12 June 2015 DOI: web site: c The Author(s) 2015. This article is published with open access. Iterations of sum of powers of digits Paul Yiu Department of Mathematical Sciences, Florida Atlantic University, Boca Raton, FL 33431-0991 USA e-mail: yiu@fau.edu Abstract. We show that for k =2, 3,..., 6, iterations of the sum of k-th powers of digits of natural numbers result in a small number of fixed points and limit cycles. Keywords. Sums of powers of digits, iterations, fixed points, limit cycles. Mathematics Subject Classification (2010). 97F30. 1. Iteration of sum of powers of digits A natural number is congruent modulo 9 to the sum of its decimal digits. This simple observation leads to the famous method of casting out of nines for the test of divisibility by 9. It also follows that the digit sum operation, repeated indefinitely, will eventually lead to a single digit number, its remainder when divided by 9. This is called the digital root of the number. See, for example, [1]. Let k be a fixed positive integer. Consider the sum of k-th powers of digits function l l s k (n) := a k j for n = a j 10 l j, 0 a j 9. j=0 Clearly, s 1 (n) is the sum of the digits of n. Here are some simple examples: s 2 (16) = 37, s 3 (153) = 153, s 4 (2178) = 6514, s 4 (6514) = 2178. Iterations of s 1 beginning with an integer will result in its digital root. In this note we consider iterations of s k, k 2, from the various positive integers. For a positive integer N, consider the sequence S k (N) : N, s k (N), s 2 k(n),..., s m n (N),..., where s m k (N) is obtained from N by m applications of s k. For example, the sequence S 2 (4) : 4, 16, 37, 58, 89, 145, 42, 20, 4,... j=0 1

2 Iterations of sum of powers of digits is periodic with period 8. The main result of this note is that every such S k (N) is eventually periodic (Theorem 2), and we determine the fixed points and limit cycles for k =2, 3,...,6. Lemma 1. If n has k +2or more digits, then n>s k (n). Proof. It is easy to establish by mathematical induction that (k +2) 9 k < 10 k+1 for k 1. Thisisclearlytruefork =1. Assuming (k +2) 9 k < 10 k+1,wehave (k +3) 9 k+1 =(k +2) 9 k+1 +9 k+1 < 9 10 k+1 +9 k+1 < 9 10 k+1 +10 k+1 =10 k+2. Now, if n has k +2+l digits for l 0, then n 10 k+1+l =10 l (10 k+1 ) > 10 l (k +2) 9 k > (k +2+l) 9 k s k (n). Theorem 2. For every positive integer N, the sequence S k (N) is eventually periodic. Proof. By Lemma 1, the sequence S k (N) is strictly decreasing as long as the terms have k +2 or more digits. If n has k +1 or fewer digits, then s k (n) (k+1) 9 k < 10 k+1. This means the terms of the sequence S k (N) are eventually less than 10 k+1. Therefore, there is a sufficiently large integer m such that s m k (N) = s m+l k (N) for some l>0. It follows that s m+hl k (N) =s m k (N) for every h 0. The sequence is eventually periodic. Corollary 3. For a fixed positive integer k, iterations of s k results in a fixed point or a limit cycle. For k =2, 3,...,6, the number of fixed points and limit cycles is relatively small. Here are the fixed points of s k, integers n satisfying s k (n) =n: k fixed points of s k 2 1 3 1, 153, 370, 371, 407. 4 1, 1634, 8208, 9474 5 1, 4150, 4151, 54748, 92727, 93084, 194979. 6 1, 548834. Table1.Fixedpointsofs k 2. Iterations of sum of squares of digits For k =2, if a sequence S 2 (N) does not terminate in the fixed point 1, it will eventually enter the cycle (4, 16, 37, 58, 89, 145, 42, 20). This was established by A. Porges in [2]. We outline a proof here by determining the limit cycles in the iterations of the sum of squares of digits. By Lemma 1, we need only examine those sequences beginning with 3-digit numbers. We show that we may simply begin with 2-digit numbers. First of all, if n is a 3-digit number, s 2 (n) 3 9 2 = 243. For 200 n 243, s 2 (n) 2 2 +4 2 +9 2 = 101 <n. Therefore we may restrict to 3-digit numbers beginning with 1. Table 2 shows all such numbers n with s 2 (n) 100. Ineach case, s(n) <n.

Paul Yiu 3 n 159 168 169 178 179 188 189 199 195 186 196 187 197 198 s 2 (n) 107 101 118 114 131 129 146 163 Table 2. 3-digit numbers n with s 2 (n) 100 Therefore it is enough to consider S 2 (N) for N 99. Figures 1 and 2 together show that beginning with a number with at most 2 digits, iterations of thesumofsquaresofdigitseitherconvergeto1 or eventually enter the cycle (4, 16, 37, 58, 89, 145, 42, 20). 7 49 70 94 97 130 79 31 23 13 32 44 86 82 91 68 28 1 10 100 1 Figure 1. Iterations of sum of squares of digits converging to 1 6 60 36 66 45 84 48 22 27 14 72 41 35 55 80 8 53 46 43 64 34 50 63 162 99 54 71 12 21 17 5 77 24 52 76 29 67 92 98 42 85 73 89 145 58 20 4 2 16 37 40 26 25 38 83 61 56 106 95 62 65 33 47 18 59 81 74 9 90 57 75 3 30 39 93 11 113 51 117 15 78 87 69 128 96 88 Figure 2. Iterations of sum of squares of digits to limit cycle

4 Iterations of sum of powers of digits 3. Iterations of sum of cubes of digits The function s 3 has a number of fixed points other than 1. These are 153, 370, 371, and407 (see Table 1). Sequences S 3 (N) not converging to one of these fixed points will eventually enter a limit cycle. To enumerate these limit cycles, by Lemma 1, we need only consider N with no more than 4 digits. One can further show that n>s 3 (n) for 4-digit numbers N 2000. Therefore, we need only consider S 3 (N) for N 1999. Note that s 3 (1999) = 2188 > 1999. The number of sequences converging to the various fixed points are given in Table 3 below. Fixed points 1 153 370 371 407 Total sequences 34 666 343 588 78 1709 Table 3. Number of sequences S 3 (N) with fixed points for N 1999 Each of the remaining 1999 1709 = 290 sequences enters one of the limit cycles below. Table 4 gives the number of sequences entering the cycles at various points. 244 1459 250 217 133 55 352 160 136 919 Figure 3. Limit cycles of iterations of sum of cubes of digits Cycle 136 244 919 1459 55 250 133 160 217 353 Total sequences 3 18 15 54 16 3 91 24 18 48 290 Table 4. Number of sequences S 3 (N) entering limit cycles 4. Iterations of sum of 4-th powers of digits To enumerate the limit cycles, we need only check S 4 (N) for N 19999. Table 5 shows the numbers of sequences converging to the four fixed points. Table 6 shows that the remaining sequences eventually enter one of two limit cycles, one of length 2 and another of length 7. Fixed point 1 1634 8208 9474 Total sequences 17 60 1246 60 1383 Table 5. Number of sequences S 4 (N) with fixed points for N 19999 Cycle 2178 6514 1138 4179 9219 13139 6725 4338 4514 Total sequences 744 150 44 1775 48 15749 12 72 22 18616 Table 6. Number of sequences S 4 (N) entering limit cycles

Paul Yiu 5 5. Iterations of s 5 and s 6 We record the fixed points and limit cycles for iterations of s 5 and s 6 in Figures 4 and 5 respectively. For s 5, it is enough to restrict to S 5 (N) for N<2 10 5. Cycle length 1 2 4 6 10 12 22 28 cycles 7 2 1 1 2 1 1 1 Table 7. Numbers of fixed points and limit cycles for s 5. 40579 126118 63199 14059 51625 178414 99394 183877 80005 84213 66858 92061 83190 71787 18855 93898 35893 34068 63473 59324 39020 180515 40074 184924 95428 41811 26093 50062 73318 59399 24585 19996 33795 17601 95998 79467 67100 10933 59536 74846 66414 70225 213040 101463 24584 37973 93149 119366 27708 25639 1300 9045 63198 99837 167916 91410 60075 74602 244 2080 32800 33043 1753 20176 24616 16609 26663 24647 62207 12950 133682 99626 96812 49577 76438 157596 44155 68335 33649 23603 44156 41063 18107 58618 89883 8299 550898 527711 8294 92873 108899 183635 9044 61097 83633 41273 1 4150 4151 54748 92727 93084 194979 Figure 4. Fixed points and limit cycles for iterations of s 5

6 Iterations of sum of powers of digits The result for s 6 is simpler. For N<2130000, there are two fixed points, and one limit cycle each of length 2, 3, 4, 10, 30. 957892 1189067 927588 973580 1758629 179996 275161 844403 1458364 786460 570947 594452 513069 1184692 333347 477201 1057187 172499 124661 239459 1083396 841700 383890 446171 97474 578164 774931 313625 824963 650550 313179 211691 282595 771565 63804 845130 93531 548525 301676 313205 1 548834 771564 17148 383891 1057188 657564 246307 169194 1113636 94773 Figure 5. Fixed points and limit cycles for iterations of s 6 References [1] H. E. Dudeney, Amusements in Mathematics, 1917; Dover reprint, 1970. [2] A. Porges, A set of eight numbers, American Mathematical Monthly, 52 (1945) 379 382.