CYCLIC BINARY STRINGS WITHOUT LONG RUNS OF LIKE (ALTERNATING) BITS. W. Moser McGill University, Montreal, Canada H3A2K6 (Submitted February 1991)

Similar documents
ON CYCLIC STRINGS WITHOUT LONG CONSTANT BLOCKS

COMBINATORIAL REPRESENTATION OF GENERALIZED FIBONACCI NUMBERS* Shmuel T. Klein Bar-Ilan University, Ramat-Gan , Israel (Submitted April 1989)

AND OCCUPANCY PROBLEMS

Enumerating Binary Strings

What you learned in Math 28. Rosa C. Orellana

1 Basic Combinatorics

Practice Exam 1 CIS/CSE 607, Spring 2009

Topics in Algorithms. 1 Generation of Basic Combinatorial Objects. Exercises. 1.1 Generation of Subsets. 1. Consider the sum:

FIBONACCI NUMBERS AND SEMISIMPLE CONTINUED FRACTION. and Ln

Refining the Stern Diatomic Sequence

arxiv: v1 [math.co] 13 Jul 2017

Unlabeled Motzkin numbers

Enumeration of Chord Diagrams without Loops and Parallel Chords

LONGEST SUCCESS RUNS AND FIBONACCI-TYPE POLYNOMIALS

Here, logx denotes the natural logarithm of x. Mrsky [7], and later Cheo and Yien [2], proved that iz;.(»)=^io 8 "0(i).

G. Sburlati RANDOM VARIABLES RELATED TO DISTRIBUTIONS OF SUMS MODULO AN INTEGER

ADVANCED PROBLEMS AND SOLUTIONS

THE ZECKENDORF ARRAY EQUALS THE WYTHOFF ARRAY

Self-dual interval orders and row-fishburn matrices

ADDENDA TO GEOMETRY OF A GENERALIZED SIMSON'S FORMULA

k-protected VERTICES IN BINARY SEARCH TREES

HMMT February 2018 February 10, 2018

F A M I L I E S OF IDENTITIES INVOLVING SUMS OF POWERS OF THE FIBONACCI AND LUCAS NUMBERS

ON A KIND OF GENERALIZED ARITHMETIC-GEOMETRIC PROGRESSION

1. Suppose that a, b, c and d are four different integers. Explain why. (a b)(a c)(a d)(b c)(b d)(c d) a 2 + ab b = 2018.

The q-exponential generating function for permutations by consecutive patterns and inversions

CS1800: Mathematical Induction. Professor Kevin Gold

Primary classes of compositions of numbers

Jumping Sequences. Steve Butler 1. (joint work with Ron Graham and Nan Zang) University of California Los Angelese

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes on Inductive Sets and Induction

-V-2 ^ r-\ a, r-2. ar-l

SECOND-ORDER RECURRENCES. Lawrence Somer Department of Mathematics, Catholic University of America, Washington, D.C

Week 4-5: Generating Permutations and Combinations

The Number of Non-Zero (mod k) Dominating Sets of Some Graphs

CS1800: Sequences & Sums. Professor Kevin Gold

BIJECTIVE PROOFS FOR FIBONACCI IDENTITIES RELATED TO ZECKENDORF S THEOREM

PAijpam.eu THE PERIOD MODULO PRODUCT OF CONSECUTIVE FIBONACCI NUMBERS

Z J7 TT I?2 17 n r n+l''' r n+4m+l (1 A \

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Bipartite graphs with at most six non-zero eigenvalues

Counting Palindromic Binary Strings Without r-runs of Ones

BOUNDS ON THE FIBONACCI NUMBER OF A MAXIMAL OUTERPLANAR GRAPH

DYNAMICS OF THE ZEROS OF FIBONACCI POLYNOMIALS M. X. He Nova Southeastern University, Fort Lauderdale, FL. D, Simon

Chapter 4 ARITHMETIC AND GEOMETRIC PROGRESSIONS 2, 5, 8, 11, 14,..., 101

Non-Interactive Zero Knowledge (II)

Problem Points Score Total 100

Graph Posets, Spanning-Universal Graphs and Graph Coverings

CS 2210 Discrete Structures Advanced Counting. Fall 2017 Sukumar Ghosh

FORMULAS FOR P + 3^ + + n p

Convergence Tests. Academic Resource Center

Complex Analysis Homework 3

Joint Coding for Flash Memory Storage

DIFFERENTIAL PROPERTIES OF A GENERAL CLASS OF POLYNOMIALS. Richard Andre-Jeannin IUT GEA, Route de Romain, Longwy, France (Submitted April 1994)

Introduction to Algorithms 6.046J/18.401J/SMA5503

A Recursive Relation for Weighted Motzkin Sequences

Discrete Math, Spring Solutions to Problems V

Algorithms CMSC Homework set #1 due January 14, 2015

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false.

ON SUPERCYCLICITY CRITERIA. Nuha H. Hamada Business Administration College Al Ain University of Science and Technology 5-th st, Abu Dhabi, , UAE

Counting set systems by weight

Algebraic Properties and Panconnectivity of Folded Hypercubes

EXERCISES IN MODULAR FORMS I (MATH 726) (2) Prove that a lattice L is integral if and only if its Gram matrix has integer coefficients.

Lecture 4 : Quest for Structure in Counting Problems

The Infinity Norm of a Certain Type of Symmetric Circulant Matrix

A GENERALIZATION OF STIRLING NUMBERS

Solution: By direct calculation, or observe that = = ( ) 2222 = =

Applications. More Counting Problems. Complexity of Algorithms

SOME IDENTITIES INVOLVING THE FIBONACCI POLYNOMIALS*

A class of trees and its Wiener index.

Generalized Kraft Inequality and Arithmetic Coding

, p 1 < p 2 < < p l primes.

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Optimal XOR based (2,n)-Visual Cryptography Schemes

X(^+(2^i) = i + X02^r + i.

MATH 201 Solutions: TEST 3-A (in class)

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Mathematical supplement

be a formal power series with h 0 = 1, v(h^) = \ and v(h n ) > 1 for n > 1. Define a n by

Some Identities in the Twisted Group Algebra of Symmetric Groups

ELEMENTARY PROBLEMS AND SOLUTIONS. Edited by Stanley Rabinowitz

Comments On The Fibonacci Sequences In Finite Groups

Integer Sequences Related to Compositions without 2 s

CHARACTERIZATIONS OF UNIFORM AND EXPONENTIAL DISTRIBUTIONS VIA MOMENTS OF THE kth RECORD VALUES RANDOMLY INDEXED

M _ J 1, 0 ] - - ^ + 2 [ 1, 0 ],

C O M P L E X FACTORIZATIONS O F T H E F I B O N A C C I AND LUCAS NUMBERS

SOME FACTORIZATIONS IN THE TWISTED GROUP ALGEBRA OF SYMMETRIC GROUPS. University of Rijeka, Croatia

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

On the number of occurrences of all short factors in almost all words

Basic Discrete Mathematics, Spring 2015

Phased Tilings and Generalized Fibonacci Identities

Graceful Tree Conjecture for Infinite Trees

A CONGRUENTIAL IDENTITY AND THE 2-ADIC ORDER OF LACUNARY SUMS OF BINOMIAL COEFFICIENTS

ON THE NUMBER OF HAMILTONIAN CIRCUITS IN THE «-CUBE

REPRESENTATION GRIDS FOR CERTAIN MORGAN-VOYCE NUMBERS A. F. Horadam The University of New England, Annidale, 2351, Australia (Submitted February 1998)

CLASSES OF IDENTITIES FOR THE GENERALIZED FIBONACCI NUMBERS G n = G n _ t + G n _ c FROM MATRICES WITH CONSTANT VALUED DETERMINANTS

CS151 Complexity Theory. Lecture 6 April 19, 2017

Bayes Theorem. Jan Kracík. Department of Applied Mathematics FEECS, VŠB - TU Ostrava

O N T H E fc**-order F-L I D E N T I T Y

Data Mining und Maschinelles Lernen

Transcription:

CYCLIC BINARY STRINGS WITHOUT LONG RUNS OF LIKE (ALTERNATING) BITS W. Moser McGill University, Montreal, Canada H3A2K6 (Submitted February 1991) 1. A binary w-bit cyclic string (briefly w-cs) is a sequence ofn O's l's (the bits), with the first last bits considered to be adjacent (i.e., the first bit follows the last bit). This condition is visible when the string is displayed in a circle with one bit "capped": the capped bit is the first bit reading clockwise we see the second bit, the third bit, so on to the n th bit (the last bit). In an n-cs, a subsequence of consecutive bits is a run. Motivated by a problem of genetic information processing, Agur, Fraenkel, Klein [1] derived formulas for the number of n-css with no runs 0 0 0 nor 1 1 1 (i.e., all runs of like bits have length < 2) for the number with no runs 0 10 nor 10 1 (i.e., all runs of alternating bits have length < 2). These are the cases w = 2of L< w (n) = the number of n~css in which all runs of like bits have length < w A< w (n) = the number of «-CSs in which all runs of alternating bits have length < w. In this note we prove the Theorem: \l\ \f\<n<w-\ v L<w( n ) = ' \F w {ri) + D w (n), \in>w, (1) Furthermore, 4w(") = 12", ifl<rc<w-l, [F w (n) + (-l)"d w (nl ifnzw, ^w(0) = w, F w (n) = 2 n -l, 1 < ^ < ^ - 1, F w (n) = F w (n-l) + F w (n-2)+--- + F w (n-w), w, if n> 1 M> + 1 «, 1, ifn> 1 w + lfn. (3) Z, > ) ~ 4 > ) ~ c a " c is a constant (which depends only on w) 2 ^ " 2 <a<2 * 1. 2 W 2 W n>w, 2 [FEB.

2, Consider for any n-cs thew-cs For example, T(x) = yiy 2...y n, j/,={ > ^ = ^ i = l,2,...,n (x 0 =x ). 7(001110010110001111) = 101001011101001000 7(101100011101010111) = 011010010011111100 7(110011001100100000) = 101010101010110000 Thus, when passing over the bits of x, T(x) records the changes (from 0 to 1 or from 1 to 0) by a 1, records no change (from 0 to 0 or from 1 to 1) by a 0. Of course T(x) = T(x), x is the complementary n-cs x = y&iy3 y n > # _ f l, ifx,=0, ~ \ 0, ifx,=l. However, for any two different n-css u v, both with first bit L T(u) ^ T(v). Indeed, T is bijective between the set of 2 n ~ l w-css with first bit 1 the set of 2"" 1 n-css with an even number of l's. Thus, an w-cs x with first bit 1 corresponds to an «-CS T(x) with an even number of l's, then a run of w like bits in x corresponds to a run of w -1 0's in T(x), while a run of w alternating bits in x corresponds to a run of w -1 l's in T(x). Hence, x is an n-cs with first bit 1 all runs of like bits have length < w T(x) is an n-cs with an even number of Ts all runs of 0's have length < w -1, so we have Zs w (/i) = 2 ^ ( 1 1 ), n>\ B^(n) = the number of n-css with an even number of l's all runs of 0's have length <w. Also, x is an n-cs with first bit 1 all alternating runs have length < w T(x) is an n-cs with an even number of l's all runs of l's have length < w -1 T(x) is an n-cs with an even number of 0's all runs of 0's have length <w-l 1993]

we have n is even, f(x) has an even number of l's all runs of O's have length < w - 1 or n is odd, T(x) has an odd number of l's all runs of O's have length < w l, 2B W _ X (/?), if n is even, 2B w _ x {n), if/? is odd, B (n) = the number of n-css with an odd number of l's all runs of O's have length <w. In terms of B w (n) = B e w (n) + B w (w) C w (n) = B e w (n) - B w (n), (4) ^ w ( / i ) = 5 w. 1 (w) + C w _ 1 (/i), A <w (n) = B w _ l (n) + (-\yc w _ l (nl n>\. In order to determine B e w{n), B (n), mdb w (n), we naturally investigate (for n>\ k>0, w > 1) (n : A) w = the number of n-css with exactly k l's (>?-& O's) all runs of O's have length <w. Clearly 'l, \<n<w, ( 5 ) ( /? : 0 ) ^ l n > _,i 0, /? >w + l (6) (n:k) v l<n<w + k, \<k y k(w + \)<n, n\ [n\lk\{n-k)\, 0<k<n, k )~[0, 0<n<k. Consider an /7-CS counted in (n: k) w, n>w + 2, k>2. If the first bit is 1 (i.e., capped bit is 1 ), the last 1 is followed by exactly /' O's (0<i <w), delete this last 1 the / O's which follow it then we have an (n- l - / ) - C S with k - 1 l's, first bit 1, every run of O's has length <w. If the first bit is 0, the first 1 is followed by /' O's (0 < / < w), delete this first 1 the / O's which follow it we then have an (n- l - / ) - C S with k-\ l's, first bit 0, every run of O's has length < w. Hence, (7) (n:k) w =(ri-l:k-\) w +(n-2:k-l) w +--- + (n-l-w:k-\) w,k>2, n>w + 2. Of course, 4 [FEB.

From (5), (6), (7), we deduce that 2, \<n<w, 2" -1 -l, n = w + \, B w (n-l) + B (n-2) + ---+B w (n-\-w), n>w + 2, that is, B w (n) =, 7 1-1 2"~ l, \<n<w + l, B e w(n-l)+---+b e w(n-l-w)+n-2(w + \), w + 2<n<2w + l, Bl(n-\) + B e w(n-2)+-+b e w(n-\-w), n>2w + 2, B w (n) = Bl{n) + B w {n) 2", n=\,2,...,w, 2 " - l, n = w + l, B w (n-l)+--- + B w (n-l-w)+n-2(w + l), w + 2<n<2w + l, B w (n-l) + B w (n-2) + -+B w (n-l-w), n>2w + 2. Furthermore, the numbers C w (n) = B e w (n) - B w («) are seen to satisfy C» = o, - 1, w + l, - 1, l<n<w, n = w + l, n-w-\-2, w+3<n<2w+v {-{C w (n-l) + C w (n-2)+- + C w (n-l-w)} 7 n>2w + 2, [0, l<n<w, C w (n) = <w +1, n>w + l,w + 2\n, [-1, n>w + l,w + 2][n. Now it is easy to verify that B^i{n) = F w {n\ n>w, F w (n) mdd w (n) the Theorem. It is well known that any sequence \H w \n)\ can be written C w _ l (n) = D w {n) 9 n>w, are defined by (1) (2), this with (4) completes the first part of which satisfies H w (n) = H w (n-l)+h w (n-2)+-- + H w (n-w\ n>w, #wo0 = X^<> «= 0,1,2,..., ;=1 a i - a) w), (/ = l,2,...,w) are the roots of (8) z w -z w - l -z w ~ 2 -----z-l the q -c\ w \ (i = 1,2,..., w) are determined by the w equations c l tf l +c 2 ar 2 +--- + c w cf w = H w (n\ w = 0,l,...,w-l. 1993]

This depends on the fact that a x, a 2,..., a w are distinct. This fact is easily proved: multiply (8) by x -1 to get x w+l - 2x w +1 which has no multiple roots because it has no roots in common with its derivative. Cappocelli Cull [2] have shown that exactly one of the roots of (8) is real positive, say a - a x, it satisfies (9) 2 - <a<2 -, while all the other roots satisfy p=r< a. <1, /' = M / 3 I ' I It follows that H w {ri) ~ ca n. 2,3,...,w. This leads to L< 2 ( n ) ~ A <i( n ) for w > 2, L< w (n) ~ A< w (n) ~ ca n, c is a constant (which depends only on w) a satisfies (9). The following tables show F w (ri), D w (n), L< w {n),,4< w (/z) forw = 2, 3,4. n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 F 2 (n) 2 1 3 4 7 11 18 29 47 76 123 199 322 521 843 D 2 (n) -1-1 2-1 - 1 2-1 -1 2-1 - 1 2-1 -1 L s2 (/i) 2 6 6 10 20 28 46 78 122 198 324 520 842 ^2 00 2 4 2 6 12 20 30 46 74 122 200 324 522 842 A(») 4 3 (") 1 2 3 4 5 6 7 8 9 10 11 12 13 1 3 7 11 21 39 71 131 241 443 815 1499 2757-1 -1-1 3-1 -1-1 3-1 -1-1 3-1 2 4 6 14 20 38 70 134 240 442 814 1502 2756 2 4 8 14 22 38 72 134 242 442 816 1502 2578 AW 4 4 («) 1 2 3 4 5 6 1 3 7 15 26 51-1 -1-1 -1 4-1 2 4 8 14 30 50 7 8 9 10 11 12 13 99 191 367 708 1365 2631 5071-1 -1-1 4-1 -1-1 98 190 366 712 1364 2630 5070 8 14 22 50 100 190 368 712 1366 2630 5072 REFERENCES 1. Z. Agur, A. S. Fraenkl, & S. T. Klein. "The Number of Fixed Points of the Majority Rule." Discrete Math. 70 (1988):295-302. 2. R. M. Capocelli & P. Cull. "Generalized Fibonacci Numbers Are Rounded Powers." In Applications of Fibonacci Numbers, ed. G. E. Bergum et al., pp. 57-62. Kluwer Academic Publishers, 1990. AMS Classification Number: 05A05 FEB.