Crunching Numbers to Match Integer Sequences Hieu Nguyen
|
|
- Caroline Doyle
- 5 years ago
- Views:
Transcription
1 Slide 1 of 22 Head Bites Tail: Crunching Numbers to Match Integer Sequences Hieu Nguyen Rowan University Math Department Colloquium December 8, 2011 ABSTRACT: In this talk I will discuss an algorithm to experimentally match integer sequences as part of an ongoing project to mine the Online Encyclopedia of Integer Sequences for new identities. In particular, a similarity measure called head-bites-tail overlap will be introduced and shown how to compute distance between two finite sequences and calculate a match probability. Examples of some experimental conjectures found using a Mathematica implementation of this algorithm will be presented. This talk is highly accessible to students: those having a background in high school algebra should be able to understand most of this talk and those with a background in discrete math and introductory computer programming should fully appreciate this talk.
2 2 Head Bites Tail.nb ü Searchable online database - ü Contains almost 200,000 integer sequences ü Created by Neil Sloane (AT & T Bell Labs) ü Maintained by OEIS Foundation ü Example: F n = 0, 1, 1, 2, 3, 5, 8, 13, 21,... Slide 2 22 Online Encyclopedia of Integer Sequences (OEIS)
3 Head Bites Tail.nb 3 Slide 3 of 22 Mining the OEIS ü Data Mining (Large Scale Pattern Recognition) Process of extracting patterns from large datasets using computer science, mathematics, and statistics. ü Mine OEIS for Integer Sequence Identities ü Enlarge OEIS database to include sequence transformations ü Find matches between integer sequences (experimental conjectures) ü Prove experimental conjectures that are interesting to obtain new identities ü GOAL: Discover interesting connections between different areas of mathematics
4 4 Head Bites Tail.nb Slide 4 of 22 Experimental Pattern Matching ü Example 1 ü A : Fibonacci sequence F n = 0, 1, 1, 2, 3, 5, 8, 13, 21,, (39 terms); n ³ 0 A000045S1T3: Sums of Squares Transformation n 2 F k = 0, 1, 2, 6, 15, 40, 104,, ; n 0 k=0 A000045S1T8: Product of Consecutive Terms Transformation F n F n+1 = 0, 1, 2, 6, 15, 40, 104,, ; n 0 EXPERIMENTAL CONJECTURE: n k=0 F 2 k = F n F n+1
5 Head Bites Tail.nb 5 ü Example 2 Slide 5 of 22 ü A131524: Number of possible palindromic rows in an n X n crossword puzzle a n = 0, 0, 1, 1, 2, 2, 4, 4, 7, 7, 12,..., ; n ³ 1 (50 terms) A131524S2T4: Binomial Transform of a 2 n (pad a 0 = 0L: n k=0 H-1L k n k a 2 k = 0, 0, 1, 1, 2, 3, 5, 8, 13, 4181; n 0 ü A018910S1T4: Pisot sequence L(4,5) b n = 4, 5, 7, 10, 15, 23, 36, 57,..., n ³ 0 (39 terms) A018910S1T4: Binomial Transform of b n : n k=0 H-1L k n k b k = 4, -1, 1, 0, 1, 1, 2, 3, 5, 8, 13,, 4181,..., Hn 0L n EXPERIMENTAL CONJECTURE: k=0 H-1L n n k a 2 k = F n-1 = n+2 k=0 H-1L n+2 n + 2 k b k Hn 1L
6 6 Head Bites Tail.nb Slide 6 of 22 Hunting for Identities ü Classical Approach ü Modern Approach Small-scale (human) versus large-scale (computer) Data Mining Algorithm for Integer Sequences Database of Sequences 8aHnL< Out[108]= Generate Subsequences Apply Transformations Generate Transformed Sequences THaHn k LL Mine Database 8THaHn k LL< for Patterns
7 Head Bites Tail.nb 7 Slide 7 of 22 Pattern Matching Algorithm for Integer Sequences ahnl bhnl Out[129]= T 1 HaHn k LL T 2 HbHm k LL Compute distance d between T 1 HaHn k LL and T 2 HbHm k LL If d d max, match found: T 1 HaHn k LL=T 2 HbHn k LL If d > d max, match not found
8 8 Head Bites Tail.nb Slide 8 of 22 Database of Sequence Transformations ü Source Data - OEIS ü Set of Transformations LABEL TRANSFORMATION FORMULA T1 Identity ahnl n T2 Partial Sums k=0 ahkl n T3 Partial Sums of Squares k=0 a HkL 2 n T4 Binomial Transform k=0 H-1L k K n k O ahkl T5 Self - Convolution n k=0 ahkl ahn - kl T6 Linear Weighted Partial Sums n k=1 k ahkl n T7 Binomial Weighted Partial Sums k=0 K n k O ahkl T8 Product of Consecutive Elements a HnL a Hn + 1L T9 Cassini a Hn - 1L a Hn + 1L - a HnL 2 T10 First Stirling n k=0 shn, kl ahkl T11 Second Stirling n k=0 SHn, kl ahkl ü Create MySQL Database of Sequence Transformations Acknowledgement: Doug Taggart (Undergraduate Research Assistant)
9 Head Bites Tail.nb 9 ID Label Subsequence Transformation Position Entry1 Entry2 Entry3 1 A000045S1T A000045S1T A000045S1T A000045S1T A000045S1T A000045S1T Null 39 A000045S1T Null Null
10 10 Head Bites Tail.nb Slide 9 of 22 Matching Integer Sequences ü Exercise: Consider the finite sequence 8aHnL< = 81, 1, 2, 3, 5, 8, 13, 21, 34, 55<. Compare ahnl with each of the four finite sequences below, which are similar to ahnl but do not match exactly. Is there a way to measure how close each sequence matches with ahnl in the sense that both are likely to be subsets of the same infinite sequence (namely the Fibonacci sequence)? If so, then which sequence matches best with ahnl? 1. {1, 1, 2, 3, 5, 8, 13, 21, 47, 55} 2. {55, 89, 144, 233, 377, 610} 3. {3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377} 4. {2, 3, 5, 8, 13, 21, 34} 5. {1, 0, 1, 1, 2, 3, 5, 8, 13} ü Mathematical Model: Determine an appropriate distance function (or similarity measure) to match two sequences that are similar, but not exactly the same.
11 Head Bites Tail.nb 11 Slide 10 of 22 Overlap ü Main Assumption: Perfect data set - no errors in the values of each integer sequence ü Overlapping Run 1. {1, 1, 2, 3, 5, 8, 13, 21, 47, 55} 8aHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} NO MATCH (Worst) 2. {55, 89, 144, 233, 377, 610} 8aHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} MATCH 3. {3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377} 8aHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} MATCH 4. {2, 3, 5, 8, 13, 21, 34} 8aHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} MATCH (Best)
12 12 Head Bites Tail.nb Slide 11 of 22 Ouroboros (Bites Tail) ü What qualifies as a match between two finite sequences? :bh1l, bh2l,..., bhm - 1L, bhml> Head Tail Head Tail :ah1l, ah2l,..., ahn - 1L, ahnl> We will say that two sequences likely match or are similar (in the sense that there is a chance that both finite sequences are part of the same infinite sequence) if the head (beginning) of one sequence bites (overlaps with) the tail (end) of the other sequence.
13 Head Bites Tail.nb 13 Slide 12 of 22 Head-Bites-Tail Overlap INFORMAL DEFINITION: We say that two finite sequences contain a head-bites-tail (HBT) overlap if there is an overlapping run which starts at the beginning of one sequence and stops at the end of either sequence. Let L denote the length of an HBT overlap. There are four cases to consider: CASE 1a: L = N - n ah1l,ah2l,... ahn 0 L,...,aHNL bh1l,..., bhll,...bhml CASE 1b: L = M ah1l,ah2l,... ahn 0 L,...,aHn 0 +M-1L,...,aHNL bh1l,..., bhml CASE 2a: L = M - m ah1l,..., ahll,...ahnl bh1l,bh2l,... bhm 0 L,...,bHML CASE 2b: L = N ah1l,..., ahnl bh1l,bh2l,... bhm 0 L,...,bHm 0 +N-1L,...,bHML
14 14 Head Bites Tail.nb Slide 13 of 22 Maximum HBT Overlap N M Let 8a HnL< n=1 and 8bHmL< m=1 be two finite sequences. DEFINITION: We say that ahnl and bhnl contain a head-bites-tail (HBT) overlap of length L if one of the following two conditions hold: 1. ahn - L + kl = bhkl for all k = 1,..., L or ahn 0 + k - 1L = bhkl for a fixed positive integer n 0 and all k = 1,..., L. 2. ahkl = bhm - L + kl for all k = 1,..., L or ahkl = bhm 0 + k - 1L for a fixed positive integer m 0 and all k = 1,..., L. DEFINITION: We define L max to be the maximum HBT overlap, i.e. the length of the longest HBT overlap, between ahnl and bhnl. If no HTB overlap exists, then we set L max = 0. ü Examples 1. 8aHnL< ={1, 1, 2, 3, 5, 2, 3, 5, 2, 3, 5} 8bHnL< = {2, 3, 5, 2, 3, 5} L = aHnL< ={1, 1, 2, 3, 5, 2, 3, 5, 2, 3, 5} 8bHnL< = {2, 3, 5, 2, 3, 5} L max = 6
15 Head Bites Tail.nb 15 Slide 14 of 22 HBT Distance DEFINITION: We define the head-bites-tail (HBT) distance d between ahnl and bhnl to be where L max is the maximum HBT overlap between ahnl and bhnl. d := dhahnl, bhnll = N + M - 2 L max NOTE: d can also be thought of as specifying the number of remaining elements in ahnl and bhnl that DO NOT overlap. ü Examples 1. 8aHnL< = {55, 89, 144, 233, 377, 610} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} d = H1L = aHnL< = {3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} d = H7L = aHnL< = {2, 3, 5, 8, 13, 21} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 55, 81} d = H6L = aHnL< = {2, 3} 8bHnL< = {1, 1, 2, 3, 5, 8} d = H2L = 4
16 16 Head Bites Tail.nb Slide 15 of 22 Relative HBT Distance DEFINITION: We define the relative HBT distance r between ahnl and bhnl to be NOTE: 0 r 1 d r := rhahnl, bhnll = DEFINITION: We define the HBT probability of match p between ahnl and bhnl to be ü Examples 1. 8aHnL< = {55, 89, 144, 233, 377, 610} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} H1L d r = = 14 = aHnL< = {3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55} H7L d r = = 7 = aHnL< = {2, 3, 5, 8, 13, 21} 8bHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 55, 81} H6L d r = = 4 = aHnL< = {2, 3} 8bHnL< = {1, 1, 2, 3, 5, 8} H2L d r = = 4 = d = N+M-2 L = 1-2 L N+M N+M N+M p := phahnl, bhnll = 1 - r = 2 L N+M
17 Head Bites Tail.nb 17 Slide 16 of 22 HBT Conjecture HBT CONJECTURE: dhÿ, ÿl is a distance function, i.e. d satisfies the three properties: I. Positive-definiteness: dhahnl, bhnll 0 and dhahnl, bhnll = 0 iff ahnl = bhnl II. Symmetry: dhahnl, bhnll = dhbhnl, ahnll III. Triangle inequality: dhahnl, bhnll dhahnl, chnll + dhchnl, bhnll NOTE: Evidence suggests that HBT Conjecture is true for the space of monotone sequences. ü Example: Triangle Inequality 8aHnL< = {1, 1, 2, 3, 5, 8, 13, 21, 47, 55} 8bHnL< = {55, 89, 144, 233, 377, 610} 8cHnL< = {3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377} dhahnl, bhnll = H1L = 14 = 9 left + 5 right dhahnl, chnll = H7L = 7 = 3 left + 4 right dhchnl, bhnll = H5L = 7 = 6 left + 1 right d = N + M - 2 L max \ dhahnl, bhnll dhahnl, chnll + dhchnl, bhnll
18 18 Head Bites Tail.nb Slide 17 of 22 Mathematica Implementation of Maximum HBT Distance In[131]:= ü Algorithm for finding L max (maximum HBT distance) 8u HnL< N n=1 = 81, 1, 2, 3, 5, 8, 13, 21, 47, 55< 8v HmL< M m=1 = 83, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377< K 1. Take last element uhnl and find its occurrences in 8vHmL<. Denote the positions of these occurrences by 8p k < k=1 (decreasing order). 2. Loop through k = 1,..., K: If 8uHN - p k + 1L, uhn - p k + 2L,..., uhnl} = 8vH1L, vh2l,..., vhp k L<, then uhnl and vhnl have an HBT overlap of length p k. 3. Repeat steps 1 and 2, but switch roles of uhnl and vhnl. 4. Set L max equal to the length of the longest HBT overlap obtained from steps 1-3. ü Mathematica Module Clear@HBTdistanceD; HBTdistance@u_,v_D:=Module@8lengthu,lengthv,positionlastuinv,positionlastvinu, match,distance,rdistance,i,p,overlap1,overlap2,overlaptemp<, lengthu=length@ud; lengthv=length@vd; positionlastuinv=flatten@position@v,u@@lengthudddd; positionlastvinu=flatten@position@u,v@@lengthvdddd; Print@"N = ",lengthu," ; ","M = ",lengthvd; match=0; overlap1=0; If@positionlastuinv!=8<, i=1; While@match==0&&i<=Length@positionlastuinvD, p=positionlastuinv@@-idd; overlaptemp=min@lengthu,pd; If@Take@u,-overlaptempD==Take@v,8p-overlaptemp+1,p<D, match=1;overlap1=overlaptemp, i++ D D D; match=0; overlap2=0; If@positionlastvinu!=8<, i=1;
19 Head Bites Tail.nb 19 D; match=1;overlap2=overlaptemp, i++ D D If@overlap1>overlap2, distance=hlengthu+lengthv-2*overlap1l; rdistance=distanceêhlengthu+lengthvl, distance=hlengthu+lengthv-2*overlap2l; rdistance=distanceêhlengthu+lengthvl D; Print@"N+M = ",lengthu+lengthv," ; ","L max = ", Max@overlap1,overlap2DD; Print@"d = ",distance," ; ","d r = ",rdistance," ; ", "p = ",1-rdistanceD; D; ü Examples In[133]:= HBTdistance@81, 1, 2, 3, 5, 8, 13, 21, 34, 55<, 81, 1, 2, 3, 5, 8, 13, 21, 34, 55<D N = 10 ; M = 10 N+M = 20 ; L max = 10 d = 0 ; d r = 0 ; p = 1 In[134]:= HBTdistance@81, 1, 2, 3, 5, 8, 13, 21, 34, 55<, 81, 1, 2, 3, 5, 8, 13, 21, 47, 55<D N = 10 ; M = 10 N+M = 20 ; L max = 0 d = 20 ; d r = 1 ; p = 0 In[135]:= HBTdistance@81, 1, 2, 3, 5, 8, 13, 21, 34, 55<, 855, 89, 144, 233, 377, 610<D N = 10 ; M = 6 N+M = 16 ; L max = 1 d = 14 ; d r = 7 8 ; p = 1 8 In[136]:= HBTdistance@81, 1, 2, 3, 5, 8, 13, 21, 34, 55<, 83, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377<D
20 20 Head Bites Tail.nb N = 10 ; M = 11 N+M = 21 ; L max = 7 d = 7 ; d r = 1 3 ; p = 2 3 In[137]:= HBTdistance@81, 1, 2, 3, 5, 8, 13, 21, 34, 55<, 82, 3, 5, 8, 13, 21, 34<D N = 10 ; M = 7 N+M = 17 ; L max = 7 d = 3 ; d r = 3 17 ; p = 14 17
21 Head Bites Tail.nb 21 Slide 18 of 22 EUREKA Project ü Database ü Over one million sequence transformations (T1-T11) have been calculated (A A170000) ü MySQL database of transformed sequences contains over 77 million rows (each row stores a window of 3 terms of a sequence) - 5 GB file ü Search Results ü Over 300,000 matches found so far (d r 1 ê 2, L max ³ 4) ü Preliminary analysis shows: - Most matches are trivial or already mentioned in OEIS (> 99%) - Small fraction of false positives (> 0.9%)
22 22 Head Bites Tail.nb Slide 19 of 22 Ten Experimental Conjectures ü EUREKA Database Website : A000129S1T3 = A041011S1T : A000240S1T7 = A006882S1T : A000241S1T8 = A028723S1T : A000295S1T9 = A031878S1T : A001076S1T3 = A041143S1T : A014445S1T3 = A001076S1T : A041041S1T3 = A162671S1T : A108099S1T7 = A132344S1T : A120580S1T2 = A024493S1T9 (Hankel Transform) A161937S1T : A161937S1T7 = A087299S1T8
23 Head Bites Tail.nb 23 Slide 20 of 22 Next Steps ü Scale up processing power and memory ü Perform search on a cluster of computers ª ü Implement parallel/distributed computing (Rowan s 3-node CC cluster) ü Improve sequence matching algorithms ü Reduce search-times ª ü Reduce trivial matches and false positives ü Expand Scope of Search ü Enlarge collection of sequence transformations ª ü Composition of sequence transformations ü Extend search to 2-D sequences (e.g. Pascal s triangle) and rational sequences (e.g. Bernoulli numbers)
24 24 Head Bites Tail.nb Slide 21 of 22 ü Disseminate Work ü Create database website ª ü Make database website accessible to the public (collaborate with OEIS) ü Graph Network Visualization of Identities A001911A S1T4 S2T1 A S1T4 A S1T4 A S1T4 A S3T4 Search Query Search Query A S1T4 Search Query Search Query A S2T4 Search Query Search Query A S1T4 A S3T1 Search Query Search Query A Search S1T4 Query A Search S1T4 Query Search Query A S1T4 Search Query A S1T4 Search Query A S1T7 Search Query A S1T4 Search A QueryS2T A S1T Search A QueryS3T1 Search A QueryS3T1 Search A Query S2T1 A Search Query S3T1 A Search Query S2T1 A SearchS3T1 Query A Search S3T1 Query Search A Query S3T1 A S2T1 A S3T1 Search Query A S2T4 Search Query A S2T1 A S1T4 Search Query A081662A S1T4 S2T1 Search Query Search Query Search Query Search Query Search Query Search Query A Search S2T1 Query ü Publish new interesting (non-trivial) EUREKA s experimental conjectures ü Seek Help ü Need good programmers (recruit students! ª ) ü Need collaborators to analyze and prove EUREKA s experimental conjectures (suitable as student research projects)
25 Head Bites Tail.nb 25 Slide 22 of 22 The End Thank you
Data Mining the Online Encyclopedia of Integer Sequences for New Identities Hieu Nguyen
Slide 1 of 18 Data Miig the Olie Ecyclopedia of Iteger Sequeces for New Idetities Hieu Nguye Rowa Uiversity MAA-NJ Sectio Sprig Meetig March 31, 2012 2 MAA-NJ Sprig Meetig Data Miig OEIS.b ü Ackowledgemets
More informationJIGSAW ACTIVITY, TASK # Make sure your answer in written in the correct order. Highest powers of x should come first, down to the lowest powers.
JIGSAW ACTIVITY, TASK #1 Your job is to multiply and find all the terms in ( 1) Recall that this means ( + 1)( + 1)( + 1)( + 1) Start by multiplying: ( + 1)( + 1) x x x x. x. + 4 x x. Write your answer
More informationIdeas beyond Number. Activity worksheets
Ideas beyond Number Activity sheet 1 Task 1 Some students started to solve this equation in different ways: For each statement tick True or False: = = = = Task 2: Counter-examples The exception disproves
More informationIntroductory Probability
Introductory Probability Combinations Nicholas Nguyen nicholas.nguyen@uky.edu Department of Mathematics UK Agenda Assigning Objects to Identical Positions Denitions Committee Card Hands Coin Toss Counts
More informationNON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday
NON-OVERLAPPING PERMUTATION PATTERNS MIKLÓS BÓNA Abstract. We show a way to compute, to a high level of precision, the probability that a randomly selected permutation of length n is nonoverlapping. As
More informationTHE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM
THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM CREATING PRODUCTIVE LEARNING ENVIRONMENTS WEDNESDAY, FEBRUARY 7, 2018
More informationECS 20 (Spring 2013) Phillip Rogaway Lecture 1
ECS 20 (Spring 2013) Phillip Rogaway Lecture 1 Today: Introductory comments Some example problems Announcements course information sheet online (from my personal homepage: Rogaway ) first HW due Wednesday
More informationOn uniquely k-determined permutations
On uniquely k-determined permutations Sergey Avgustinovich and Sergey Kitaev 16th March 2007 Abstract Motivated by a new point of view to study occurrences of consecutive patterns in permutations, we introduce
More informationAn Aperiodic Tiling from a Dynamical System: An Exposition of An Example of Culik and Kari. S. Eigen J. Navarro V. Prasad
An Aperiodic Tiling from a Dynamical System: An Exposition of An Example of Culik and Kari S. Eigen J. Navarro V. Prasad These tiles can tile the plane But only Aperiodically Example A (Culik-Kari) Dynamical
More informationBRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 2006 Senior Preliminary Round Problems & Solutions
BRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 006 Senior Preliminary Round Problems & Solutions 1. Exactly 57.4574% of the people replied yes when asked if they used BLEU-OUT face cream. The fewest
More informationLaboratory 1: Uncertainty Analysis
University of Alabama Department of Physics and Astronomy PH101 / LeClair May 26, 2014 Laboratory 1: Uncertainty Analysis Hypothesis: A statistical analysis including both mean and standard deviation can
More informationPattern Avoidance in Unimodal and V-unimodal Permutations
Pattern Avoidance in Unimodal and V-unimodal Permutations Dido Salazar-Torres May 16, 2009 Abstract A characterization of unimodal, [321]-avoiding permutations and an enumeration shall be given.there is
More informationNon-overlapping permutation patterns
PU. M. A. Vol. 22 (2011), No.2, pp. 99 105 Non-overlapping permutation patterns Miklós Bóna Department of Mathematics University of Florida 358 Little Hall, PO Box 118105 Gainesville, FL 326118105 (USA)
More informationEnumeration of Two Particular Sets of Minimal Permutations
3 47 6 3 Journal of Integer Sequences, Vol. 8 (05), Article 5.0. Enumeration of Two Particular Sets of Minimal Permutations Stefano Bilotta, Elisabetta Grazzini, and Elisa Pergola Dipartimento di Matematica
More informationYou ve seen them played in coffee shops, on planes, and
Every Sudoku variation you can think of comes with its own set of interesting open questions There is math to be had here. So get working! Taking Sudoku Seriously Laura Taalman James Madison University
More informationHonors Precalculus Chapter 9 Summary Basic Combinatorics
Honors Precalculus Chapter 9 Summary Basic Combinatorics A. Factorial: n! means 0! = Why? B. Counting principle: 1. How many different ways can a license plate be formed a) if 7 letters are used and each
More informationDVA325 Formal Languages, Automata and Models of Computation (FABER)
DVA325 Formal Languages, Automata and Models of Computation (FABER) Lecture 1 - Introduction School of Innovation, Design and Engineering Mälardalen University 11 November 2014 Abu Naser Masud FABER November
More informationI.M.O. Winter Training Camp 2008: Invariants and Monovariants
I.M.. Winter Training Camp 2008: Invariants and Monovariants n math contests, you will often find yourself trying to analyze a process of some sort. For example, consider the following two problems. Sample
More informationSets. Definition A set is an unordered collection of objects called elements or members of the set.
Sets Definition A set is an unordered collection of objects called elements or members of the set. Sets Definition A set is an unordered collection of objects called elements or members of the set. Examples:
More information1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =
Math 115 Discrete Math Final Exam December 13, 2000 Your name It is important that you show your work. 1. Use the Euclidean algorithm to solve the decanting problem for decanters of sizes 199 and 98. In
More informationLatin squares and related combinatorial designs. Leonard Soicher Queen Mary, University of London July 2013
Latin squares and related combinatorial designs Leonard Soicher Queen Mary, University of London July 2013 Many of you are familiar with Sudoku puzzles. Here is Sudoku #043 (Medium) from Livewire Puzzles
More informationCounting in Algorithms
Counting Counting in Algorithms How many comparisons are needed to sort n numbers? How many steps to compute the GCD of two numbers? How many steps to factor an integer? Counting in Games How many different
More informationTwenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4
Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 206 Rules: Three hours; no electronic devices. The positive integers are, 2, 3, 4,.... Pythagorean Triplet The sum of the lengths of the
More informationarxiv: v1 [math.gm] 29 Mar 2015
arxiv:1504.001v1 [math.gm] 9 Mar 015 New results on the stopping time behaviour of the Collatz 3x + 1 function Mike Winkler March 7, 015 Abstract Let σ n = 1 + n log 3. For the Collatz 3x + 1 function
More informationSection 8.1. Sequences and Series
Section 8.1 Sequences and Series Sequences Definition A sequence is a list of numbers. Definition A sequence is a list of numbers. A sequence could be finite, such as: 1, 2, 3, 4 Definition A sequence
More informationA CONJECTURE ON UNIT FRACTIONS INVOLVING PRIMES
Last update: Nov. 6, 2015. A CONJECTURE ON UNIT FRACTIONS INVOLVING PRIMES Zhi-Wei Sun Department of Mathematics, Nanjing University Nanjing 210093, People s Republic of China zwsun@nju.edu.cn http://math.nju.edu.cn/
More information5. (1-25 M) How many ways can 4 women and 4 men be seated around a circular table so that no two women are seated next to each other.
A.Miller M475 Fall 2010 Homewor problems are due in class one wee from the day assigned (which is in parentheses. Please do not hand in the problems early. 1. (1-20 W A boo shelf holds 5 different English
More informationarxiv: v2 [math.gm] 31 Dec 2017
New results on the stopping time behaviour of the Collatz 3x + 1 function arxiv:1504.001v [math.gm] 31 Dec 017 Mike Winkler Fakultät für Mathematik Ruhr-Universität Bochum, Germany mike.winkler@ruhr-uni-bochum.de
More informationUNIT 2: RATIONAL NUMBER CONCEPTS WEEK 5: Student Packet
Name Period Date UNIT 2: RATIONAL NUMBER CONCEPTS WEEK 5: Student Packet 5.1 Fractions: Parts and Wholes Identify the whole and its parts. Find and compare areas of different shapes. Identify congruent
More informationThree of these grids share a property that the other three do not. Can you find such a property? + mod
PPMTC 22 Session 6: Mad Vet Puzzles Session 6: Mad Veterinarian Puzzles There is a collection of problems that have come to be known as "Mad Veterinarian Puzzles", for reasons which will soon become obvious.
More informationSequence of Integers Generated by Summing the Digits of their Squares
Indian Journal of Science and Technology, Vol 8(5), DOI: 0.785/ijst/205/v8i5/6992, July 205 ISSN (Print) : 097-686 ISSN (Online) : 097-565 Sequence of Integers Generated by Summing the Digits of their
More information13 Searching for Pattern
13 Searching for Pattern 13.1 Pictorial Logic In this section we will see how to continue patterns involving simple shapes. Example Continue these patterns by drawing the next 5 shapes in each case: Solution
More informationFactored Form When a = 1
Lesson 4 Hart Interactive Algebra Lesson 4: Factored Form When a = Opening Activity Graph Exchange Your group will need: one quadratic graph. A. For your given graph, circle the graph number on the table
More information17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.
7 Symmetries 7 Permutations A permutation of a set is a reordering of its elements Another way to look at it is as a function Φ that takes as its argument a set of natural numbers of the form {, 2,, n}
More informationTaking Sudoku Seriously
Taking Sudoku Seriously Laura Taalman, James Madison University You ve seen them played in coffee shops, on planes, and maybe even in the back of the room during class. These days it seems that everyone
More informationRESTRICTED PERMUTATIONS AND POLYGONS. Ghassan Firro and Toufik Mansour Department of Mathematics, University of Haifa, Haifa, Israel
RESTRICTED PERMUTATIONS AND POLYGONS Ghassan Firro and Toufik Mansour Department of Mathematics, University of Haifa, 905 Haifa, Israel {gferro,toufik}@mathhaifaacil abstract Several authors have examined
More informationName Class Date. Introducing Probability Distributions
Name Class Date Binomial Distributions Extension: Distributions Essential question: What is a probability distribution and how is it displayed? 8-6 CC.9 2.S.MD.5(+) ENGAGE Introducing Distributions Video
More informationLAMC Junior Circle February 3, Oleg Gleizer. Warm-up
LAMC Junior Circle February 3, 2013 Oleg Gleizer oleg1140@gmail.com Warm-up Problem 1 Compute the following. 2 3 ( 4) + 6 2 Problem 2 Can the value of a fraction increase, if we add one to the numerator
More informationWilson s Theorem and Fermat s Theorem
Wilson s Theorem and Fermat s Theorem 7-27-2006 Wilson s theorem says that p is prime if and only if (p 1)! = 1 (mod p). Fermat s theorem says that if p is prime and p a, then a p 1 = 1 (mod p). Wilson
More informationLatin Squares for Elementary and Middle Grades
Latin Squares for Elementary and Middle Grades Yul Inn Fun Math Club email: Yul.Inn@FunMathClub.com web: www.funmathclub.com Abstract: A Latin square is a simple combinatorial object that arises in many
More informationGuest Lecture, October
Math 640: EXPERIMENTAL MATHEMATICS Fall 2016 (Rutgers University) Guest Lecture, October 3 2016 Neil J. A. Sloane Mathematics Department, Rutgers and The OEIS Foundation Outline 1. Quick overview of OEIS
More informationSET THEORY AND VENN DIAGRAMS
Mathematics Revision Guides Set Theory and Venn Diagrams Page 1 of 26 M.K. HOME TUITION Mathematics Revision Guides Level: GCSE Higher Tier SET THEORY AND VENN DIAGRAMS Version: 2.1 Date: 15-10-2015 Mathematics
More informationPOKER (AN INTRODUCTION TO COUNTING)
POKER (AN INTRODUCTION TO COUNTING) LAMC INTERMEDIATE GROUP - 10/27/13 If you want to be a succesful poker player the first thing you need to do is learn combinatorics! Today we are going to count poker
More informationMistilings with Dominoes
NOTE Mistilings with Dominoes Wayne Goddard, University of Pennsylvania Abstract We consider placing dominoes on a checker board such that each domino covers exactly some number of squares. Given a board
More informationTeacher s Notes. Problem of the Month: Courtney s Collection
Teacher s Notes Problem of the Month: Courtney s Collection Overview: In the Problem of the Month, Courtney s Collection, students use number theory, number operations, organized lists and counting methods
More informationCSE 573 Problem Set 1. Answers on 10/17/08
CSE 573 Problem Set. Answers on 0/7/08 Please work on this problem set individually. (Subsequent problem sets may allow group discussion. If any problem doesn t contain enough information for you to answer
More informationMATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability)
MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability) Last modified: November 10, 2004 This follows very closely Apostol, Chapter 13, the course pack. Attachments
More informationLecture Notes 3: Paging, K-Server and Metric Spaces
Online Algorithms 16/11/11 Lecture Notes 3: Paging, K-Server and Metric Spaces Professor: Yossi Azar Scribe:Maor Dan 1 Introduction This lecture covers the Paging problem. We present a competitive online
More informationOn Variants of Nim and Chomp
The Minnesota Journal of Undergraduate Mathematics On Variants of Nim and Chomp June Ahn 1, Benjamin Chen 2, Richard Chen 3, Ezra Erives 4, Jeremy Fleming 3, Michael Gerovitch 5, Tejas Gopalakrishna 6,
More informationHANDS-ON TRANSFORMATIONS: RIGID MOTIONS AND CONGRUENCE (Poll Code 39934)
HANDS-ON TRANSFORMATIONS: RIGID MOTIONS AND CONGRUENCE (Poll Code 39934) Presented by Shelley Kriegler President, Center for Mathematics and Teaching shelley@mathandteaching.org Fall 2014 8.F.1 8.G.1a
More informationGraphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA
Graphs of Tilings Patrick Callahan, University of California Office of the President, Oakland, CA Phyllis Chinn, Department of Mathematics Humboldt State University, Arcata, CA Silvia Heubach, Department
More informationIdeas beyond Number. Teacher s guide to Activity worksheets
Ideas beyond Number Teacher s guide to Activity worksheets Learning objectives To explore reasoning, logic and proof through practical, experimental, structured and formalised methods of communication
More informationPARTICIPANT Guide. Unit 2
PARTICIPANT Guide Unit 2 UNIT 02 participant Guide ACTIVITIES NOTE: At many points in the activities for Mathematics Illuminated, workshop participants will be asked to explain, either verbally or in
More informationPythagorean Theorem Unit
Pythagorean Theorem Unit TEKS covered: ~ Square roots and modeling square roots, 8.1(C); 7.1(C) ~ Real number system, 8.1(A), 8.1(C); 7.1(A) ~ Pythagorean Theorem and Pythagorean Theorem Applications,
More informationSequences. like 1, 2, 3, 4 while you are doing a dance or movement? Have you ever group things into
Math of the universe Paper 1 Sequences Kelly Tong 2017/07/17 Sequences Introduction Have you ever stamped your foot while listening to music? Have you ever counted like 1, 2, 3, 4 while you are doing a
More informationArithmetic Sequences Read 8.2 Examples 1-4
CC Algebra II HW #8 Name Period Row Date Arithmetic Sequences Read 8.2 Examples -4 Section 8.2 In Exercises 3 0, tell whether the sequence is arithmetic. Explain your reasoning. (See Example.) 4. 2, 6,
More informationFacilitator Guide. Unit 2
Facilitator Guide Unit 2 UNIT 02 Facilitator Guide ACTIVITIES NOTE: At many points in the activities for Mathematics Illuminated, workshop participants will be asked to explain, either verbally or in
More informationMAGIC SQUARES KATIE HAYMAKER
MAGIC SQUARES KATIE HAYMAKER Supplies: Paper and pen(cil) 1. Initial setup Today s topic is magic squares. We ll start with two examples. The unique magic square of order one is 1. An example of a magic
More informationLower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings
ÂÓÙÖÒÐ Ó ÖÔ ÐÓÖØÑ Ò ÔÔÐØÓÒ ØØÔ»»ÛÛÛº ºÖÓÛÒºÙ»ÔÙÐØÓÒ»» vol.?, no.?, pp. 1 44 (????) Lower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings David R. Wood School of Computer Science
More informationPRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES. Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania
#A52 INTEGERS 17 (2017) PRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania lkjone@ship.edu Lawrence Somer Department of
More informationCSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD
Course Overview Graph Algorithms Algorithm Design Techniques: Greedy Algorithms Divide and Conquer Dynamic Programming Network Flows Computational Intractability Main Ideas Main idea: Break the given
More informationEdge-disjoint tree representation of three tree degree sequences
Edge-disjoint tree representation of three tree degree sequences Ian Min Gyu Seong Carleton College seongi@carleton.edu October 2, 208 Ian Min Gyu Seong (Carleton College) Trees October 2, 208 / 65 Trees
More informationIntroduction to Spring 2009 Artificial Intelligence Final Exam
CS 188 Introduction to Spring 2009 Artificial Intelligence Final Exam INSTRUCTIONS You have 3 hours. The exam is closed book, closed notes except a two-page crib sheet, double-sided. Please use non-programmable
More informationNovember 6, Chapter 8: Probability: The Mathematics of Chance
Chapter 8: Probability: The Mathematics of Chance November 6, 2013 Last Time Crystallographic notation Groups Crystallographic notation The first symbol is always a p, which indicates that the pattern
More informationActivArena TEMPLATES TEACHER NOTES FOR ACTIVARENA RESOURCES BLANK WORKING SPACE SPLIT (WITH TITLE SPACE) About this template
TEMPLATES BLANK WORKING SPACE SPLIT (WITH TITLE SPACE) It contains two blank workspaces that can be the basis of many tasks. Learners may perform identical tasks or completely different tasks in their
More informationGLOSSARY. a * (b * c) = (a * b) * c. A property of operations. An operation * is called associative if:
Associativity A property of operations. An operation * is called associative if: a * (b * c) = (a * b) * c for every possible a, b, and c. Axiom For Greek geometry, an axiom was a 'self-evident truth'.
More informationThe On-Line Encyclopedia of Integer Sequences (OEIS)
The On-Line Encyclopedia of Integer Sequences (OEIS) Thotsaporn Aek Thanatipanonda Mahidol University, International College September 26, 2018 of Integer Sequences (OEIS) September 26, 2018 1 / 14 Introduction
More informationOn uniquely k-determined permutations
Discrete Mathematics 308 (2008) 1500 1507 www.elsevier.com/locate/disc On uniquely k-determined permutations Sergey Avgustinovich a, Sergey Kitaev b a Sobolev Institute of Mathematics, Acad. Koptyug prospect
More informationrepeated multiplication of a number, for example, 3 5. square roots and cube roots of numbers
NUMBER 456789012 Numbers form many interesting patterns. You already know about odd and even numbers. Pascal s triangle is a number pattern that looks like a triangle and contains number patterns. Fibonacci
More information18.204: CHIP FIRING GAMES
18.204: CHIP FIRING GAMES ANNE KELLEY Abstract. Chip firing is a one-player game where piles start with an initial number of chips and any pile with at least two chips can send one chip to the piles on
More informationHow Many Mates Can a Latin Square Have?
How Many Mates Can a Latin Square Have? Megan Bryant mrlebla@g.clemson.edu Roger Garcia garcroge@kean.edu James Figler figler@live.marshall.edu Yudhishthir Singh ysingh@crimson.ua.edu Marshall University
More informationStrings. A string is a list of symbols in a particular order.
Ihor Stasyuk Strings A string is a list of symbols in a particular order. Strings A string is a list of symbols in a particular order. Examples: 1 3 0 4 1-12 is a string of integers. X Q R A X P T is a
More informationDiscrete Mathematics. Spring 2017
Discrete Mathematics Spring 2017 Previous Lecture Binomial Coefficients Pascal s Triangle The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must
More informationSample Spaces, Events, Probability
Sample Spaces, Events, Probability CS 3130/ECE 3530: Probability and Statistics for Engineers August 28, 2014 Sets A set is a collection of unique objects. Sets A set is a collection of unique objects.
More informationCircular Nim Games. S. Heubach 1 M. Dufour 2. May 7, 2010 Math Colloquium, Cal Poly San Luis Obispo
Circular Nim Games S. Heubach 1 M. Dufour 2 1 Dept. of Mathematics, California State University Los Angeles 2 Dept. of Mathematics, University of Quebeq, Montreal May 7, 2010 Math Colloquium, Cal Poly
More informationIvan Guo. Broken bridges There are thirteen bridges connecting the banks of River Pluvia and its six piers, as shown in the diagram below:
Ivan Guo Welcome to the Australian Mathematical Society Gazette s Puzzle Corner No. 20. Each issue will include a handful of fun, yet intriguing, puzzles for adventurous readers to try. The puzzles cover
More informationPermutations. = f 1 f = I A
Permutations. 1. Definition (Permutation). A permutation of a set A is a bijective function f : A A. The set of all permutations of A is denoted by Perm(A). 2. If A has cardinality n, then Perm(A) has
More informationCombinatorial Proofs
Combinatorial Proofs Two Counting Principles Some proofs concerning finite sets involve counting the number of elements of the sets, so we will look at the basics of counting. Addition Principle: If A
More informationSorting with Pop Stacks
faculty.valpo.edu/lpudwell joint work with Rebecca Smith (SUNY - Brockport) Special Session on Algebraic and Enumerative Combinatorics with Applications AMS Spring Central Sectional Meeting Indiana University
More informationTILING RECTANGLES AND HALF STRIPS WITH CONGRUENT POLYOMINOES. Michael Reid. Brown University. February 23, 1996
Published in Journal of Combinatorial Theory, Series 80 (1997), no. 1, pp. 106 123. TILING RECTNGLES ND HLF STRIPS WITH CONGRUENT POLYOMINOES Michael Reid Brown University February 23, 1996 1. Introduction
More informationMath Fundamentals for Statistics (Math 52) Unit 2:Number Line and Ordering. By Scott Fallstrom and Brent Pickett The How and Whys Guys.
Math Fundamentals for Statistics (Math 52) Unit 2:Number Line and Ordering By Scott Fallstrom and Brent Pickett The How and Whys Guys Unit 2 Page 1 2.1: Place Values We just looked at graphing ordered
More informationLesson 16: The Computation of the Slope of a Non Vertical Line
++ Lesson 16: The Computation of the Slope of a Non Vertical Line Student Outcomes Students use similar triangles to explain why the slope is the same between any two distinct points on a non vertical
More informationResearch Article n-digit Benford Converges to Benford
International Mathematics and Mathematical Sciences Volume 2015, Article ID 123816, 4 pages http://dx.doi.org/10.1155/2015/123816 Research Article n-digit Benford Converges to Benford Azar Khosravani and
More information1. More on Binomial Distributions
Math 25-Introductory Statistics Lecture 9/27/06. More on Binomial Distributions When we toss a coin four times, and we compute the probability of getting three heads, for example, we need to know how many
More informationMATHEMATICS ON THE CHESSBOARD
MATHEMATICS ON THE CHESSBOARD Problem 1. Consider a 8 8 chessboard and remove two diametrically opposite corner unit squares. Is it possible to cover (without overlapping) the remaining 62 unit squares
More informationNumber Patterns - Grade 10 [CAPS] *
OpenStax-CNX module: m38376 1 Number Patterns - Grade 10 [CAPS] * Free High School Science Texts Project Based on Number Patterns by Rory Adams Free High School Science Texts Project Mark Horner Heather
More informationCounting integral solutions
Thought exercise 2.2 20 Counting integral solutions Question: How many non-negative integer solutions are there of x 1 +x 2 +x 3 +x 4 = 10? Thought exercise 2.2 20 Counting integral solutions Question:
More informationUNIVERSALITY IN SUBSTITUTION-CLOSED PERMUTATION CLASSES. with Frédérique Bassino, Mathilde Bouvel, Valentin Féray, Lucas Gerin and Mickaël Maazoun
UNIVERSALITY IN SUBSTITUTION-CLOSED PERMUTATION CLASSES ADELINE PIERROT with Frédérique Bassino, Mathilde Bouvel, Valentin Féray, Lucas Gerin and Mickaël Maazoun The aim of this work is to study the asymptotic
More informationCounting. Chapter 6. With Question/Answer Animations
. All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Counting Chapter
More informationn r for the number. (n r)!r!
Throughout we use both the notations ( ) n r and C n n! r for the number (n r)!r! 1 Ten points are distributed around a circle How many triangles have all three of their vertices in this 10-element set?
More informationUCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis
UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis Lecture 3 Class URL: http://vlsicad.ucsd.edu/courses/cse21-s14/ Lecture 3 Notes Goal for today: CL Section 3 Subsets,
More informationNotes for Recitation 3
6.042/18.062J Mathematics for Computer Science September 17, 2010 Tom Leighton, Marten van Dijk Notes for Recitation 3 1 State Machines Recall from Lecture 3 (9/16) that an invariant is a property of a
More information#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION
#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION Samuel Connolly Department of Mathematics, Brown University, Providence, Rhode Island Zachary Gabor Department of
More informationClass 8 - Sets (Lecture Notes)
Class 8 - Sets (Lecture Notes) What is a Set? A set is a well-defined collection of distinct objects. Example: A = {1, 2, 3, 4, 5} What is an element of a Set? The objects in a set are called its elements.
More informationMAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology
MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability Preliminary Concepts, Formulas, and Terminology Meanings of Basic Arithmetic Operations in Mathematics Addition: Generally
More informationarxiv: v1 [math.co] 11 Jul 2016
OCCURRENCE GRAPHS OF PATTERNS IN PERMUTATIONS arxiv:160703018v1 [mathco] 11 Jul 2016 BJARNI JENS KRISTINSSON AND HENNING ULFARSSON Abstract We define the occurrence graph G p (π) of a pattern p in a permutation
More informationCOLLEGE ALGEBRA. Arithmetic & Geometric Sequences
COLLEGE ALGEBRA By: Sister Mary Rebekah www.survivormath.weebly.com Cornell-Style Fill in the Blank Notes and Teacher s Key Arithmetic & Geometric Sequences 1 Topic: Discrete Functions main ideas & questions
More informationCardinality revisited
Cardinality revisited A set is finite (has finite cardinality) if its cardinality is some (finite) integer n. Two sets A,B have the same cardinality iff there is a one-to-one correspondence from A to B
More informationMachine Translation - Decoding
January 15, 2007 Table of Contents 1 Introduction 2 3 4 5 6 Integer Programing Decoder 7 Experimental Results Word alignments Fertility Table Translation Table Heads Non-heads NULL-generated (ct.) Figure:
More informationTHE TAYLOR EXPANSIONS OF tan x AND sec x
THE TAYLOR EXPANSIONS OF tan x AND sec x TAM PHAM AND RYAN CROMPTON Abstract. The report clarifies the relationships among the completely ordered leveled binary trees, the coefficients of the Taylor expansion
More information