Sierpinski s Triangle and the Lucas Correspondence Theorem

Similar documents
The Sierpiński Sieve of Nim-varieties and Binomial Coefficients

Aviezri Fraenkel Department of Computer Science and Applied Mathematics, Weizmann Institute of Science, Rehovot, Israel 76100

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

Digit Reversal Without Apology

On the Structure of Primes Simon Mark Horvat

Lucas Lehmer primality test - Wikipedia, the free encyclopedia

An extension of the Pascal triangle and the Sierpiński gasket to finite words. Joint work with Julien Leroy and Michel Rigo (ULiège)

cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications

MATH CSE20 Homework 5 Due Monday November 4

CPSC 467b: Cryptography and Computer Security

DIVISIBILITY OF BINOMIAL COEFFICIENTS AT p = 2

The knapsack Problem

Item 8. Constructing the Square Area of Two Proving No Irrationals. 6 Total Pages

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

THE DYNAMICS OF SUCCESSIVE DIFFERENCES OVER Z AND R

Junior Villafana. Math 301. Dr. Meredith. Odd Perfect Numbers

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

Algorithms CMSC Homework set #1 due January 14, 2015

Pascal s Triangle. Jean-Romain Roy. February, 2013

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

CSE 311: Foundations of Computing. Lecture 10: Set Operations & Representation, Modular Arithmetic

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

Homework problem: Find all digits to the repeating decimal 1/19 = using a calculator.

Cosc 412: Cryptography and complexity Lecture 7 (22/8/2018) Knapsacks and attacks

Sierpinski's Triangle and the Prouhet-Thue-Morse Word DAVID CALLAN. Department of Statistics University Ave. November 18, 2006.

A Taste of Pi: Clocks, Set, and the Secret Math of Spies

Chapter 6 Randomization Algorithm Theory WS 2012/13 Fabian Kuhn

FERMAT S TEST KEITH CONRAD

Integral approximations to π with nonnegative integrands

Notes on Systems of Linear Congruences

Q: How can quantum computers break ecryption?

Mathematical Foundations of Computer Science

CSC 125 :: Final Exam December 14, 2011

π in terms of φ via the Machin s Route

Topological properties of Z p and Q p and Euclidean models

Regular Languages and Finite Automata

5. Sequences & Recursion

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

Math From Scratch Lesson 20: The Chinese Remainder Theorem

Modular Arithmetic Instructor: Marizza Bailey Name:

, (132 1)/2, ( , (112 1)/2, ( , (172 1)/2, ( )/2 also 82 ± 72. etc.

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006.

GEOMETRY OF BINOMIAL COEFFICIENTS. STEPHEN WOLFRAM The Institute jor Advanced Study, Princeton NJ 08540

CSE 311: Foundations of Computing. Lecture 10: Set Operations & Representation, Modular Arithmetic

P a g e 1. Prime Gaps. The Structure and Properties of the Differences between Successive Prime Numbers. Jerrad Neff

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

Factoring. there exists some 1 i < j l such that x i x j (mod p). (1) p gcd(x i x j, n).

1 Probability Review. CS 124 Section #8 Hashing, Skip Lists 3/20/17. Expectation (weighted average): the expectation of a random quantity X is:

F. T. HOWARD AND CURTIS COOPER

Decrypting Fibonacci and Lucas Sequences. Contents

THE N-VALUE GAME OVER Z AND R

The student solutions shown below highlight the most commonly used approaches and also some that feature nice use of algebraic polynomial formulas.

Wave Equation--1-Dimensional

Simon s algorithm (1994)

1 Buffon s Needle Problem 2

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

Math/Music: Structure and Form Fall 2011 Worksheet on Continued Fractions

Math 1600B Lecture 4, Section 2, 13 Jan 2014

Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?

#A6 INTEGERS 17 (2017) AN IMPLICIT ZECKENDORF REPRESENTATION

Factoring Algorithms Pollard s p 1 Method. This method discovers a prime factor p of an integer n whenever p 1 has only small prime factors.

CPSC 467b: Cryptography and Computer Security

Westside Algebra 2 PreAP

Week 2: Defining Computation

Summer Packet Geometry PAP

Lecture Notes, Week 6

Lecture 7: The Satisfiability Problem

COM S 330 Lecture Notes Week of Feb 9 13

Chapter 7. Inclusion-Exclusion a.k.a. The Sieve Formula

MITOCW ocw-18_02-f07-lec02_220k

SQUARE PATTERNS AND INFINITUDE OF PRIMES

Example 1: Identifying the Parts of a Conditional Statement

Georgia Tech High School Math Competition

How hard is it to find a good solution?

Congruence of Integers

Mathematics of Public Key Cryptography

4 Linear Recurrence Relations & the Fibonacci Sequence

The Euclidean Algorithm in Quadratic Number Fields

EXTRA CREDIT FOR MATH 39

Carmen s Core Concepts (Math 135)

And for polynomials with coefficients in F 2 = Z/2 Euclidean algorithm for gcd s Concept of equality mod M(x) Extended Euclid for inverses mod M(x)

Homework #2 solutions Due: June 15, 2012

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

MA/CSSE 473 Day 05. Factors and Primes Recursive division algorithm

Math 110 HW 3 solutions

Finding 2d ham sandwich cuts in linear time

MATH UN Midterm 2 November 10, 2016 (75 minutes)

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

More about partitions

452 FINAL- VERSION E Do not open this exam until you are told. Read these instructions:

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

A New Sieve for the Twin Primes

SOLUTION: SOLUTION: SOLUTION:

Rooks and Pascal s Triangle. shading in the first k squares of the diagonal running downwards to the right. We

1 Reductions and Expressiveness

Lecture 3: String Matching

Notes for Lecture 21

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Finite Fields. SOLUTIONS Network Coding - Prof. Frank H.P. Fitzek

Transcription:

Sierpinski s Triangle and the Lucas Correspondence Theorem Julian Trujillo, and George Kreppein Western Washington University November 30, 2012

History of Sierpinski s Triangle Sierpinski s triangle also known as Sierpinski s gasket was first described in 1915 by Waclaw Sierpinski. However it had been seen as early as 13 th century at the cathedral of Anagni. Sierpinski triangle has also appeared in our current culture. The Tri-force from legend of Zelda is the second iteration of Sierpinski s Triangle.

Sierpinski s Triangle and the Lucas Correspondence Theorem

Sierpinski s Triangle and the Lucas Correspondence Theorem

Sierpinski s Triangle and the Lucas Correspondence Theorem

Sierpinski s Triangle and the Lucas Correspondence Theorem

Fun facts Sierpinski s triangle is a self similar set. The area of Sierpinski s triangle is zero in Lebesgue measure. There is a three dimensional analogue of Sierpinski s triangle called a Tetrix. Someone in our class made a shale using a Sierpinski s triangle pattern. There are several ways to construct Sierpinski s triangle.

Construction There are several ways to construct Sierpinski s triangle Deletion method Pascals triangle mod 2 Chaos game Bit wise operations(made possible by Lucas Correspondence Theorem

Sierpinski s Triangle and the Lucas Correspondence Theorem

Lucas Correspondence Theorem Theorem Lucas Correspondence Theorem If p is prime and M and N are integers such that M = M 0 + M 1 p + M 2 p 2 + + M k p k and N = N 0 + N 1 p + N 2 p 2 + + N k p k with 0 M r < p and 0 N r p, then ( M N ( M0 N 0 ( M1 N 1 ( M2 N 2 ( Mk N k (mod p.

Proof of Lucas Correspondence Theorem Proof. Consider the generating function with ( M N as the coefficient of the N th term. ( Then we have: M N 0 N x N x N = M N=0 ( M N = (1 + x M = (1 + x M 0+M 1 p+m 2 p 2 + +M k p k = k r=0 [(1 + xpr ] Mr k r=0 (1 + x pr Mr (mod p = k r=0 ( M r ( Mr s r =0 s r x s r p r = ( ( M 0 0 x 0 p 0 + ( M 0 1 x 1 p 0 + ( M 0 2 x 2 p 0 + + ( M 0 M 0 x M 0 p 0 ( ( M 1 0 x 0 p 1 + ( M 1 1 x 1 p 1 + ( M 1 2 x 2 p 1 + + ( M 1 M 1 x M 1 p 1 ( ( M r 0. x 0 p Mr + ( M r 1 x 1 p Mr + ( M r ( 2 Mr s r x N = M N=0 ( k r=0 x 2 p Mr + + ( M r M r x M r p Mr

Proof. Where the inner sum is taken over all sets (s 0, s 1,..., s k such that k r=0 s r p r = N. But 0 s r M r < p, so there is at most one such set and given by s r = N r (0 r k if every N r M r ; otherwise, the sum is zero. We see that the theorem follows by equating coefficients.

Bitwise operations Bit: a true false value or in our case one or zero Not: takes one bit and change to opposite value T goes to F, F goes to T And: compares two bits and returns true (1 iff both bits are true (1, otherwise returns false (0

The Connection to bitwise operations So we can calculate ( M N really quickly by comparing the M and N in base p. If any N r is larger than the corresponding M r then ( M N will be zero. If we let our p = 2 we see how bit wise operations come into play. We will use the composition of the not and and operations. Which will be and(not(m,n. We will color the square if our operation yields zero else we leave our square blank. More generally, we color squares that have Zero outputs one color and color squares that have non-zero outputs a different color

Why bitwise Why not. Faster to run Easier to program (I m guessing it would be

Questions Questions, now is the time to ask.

Sources Coeffcients Modulo a Prime, Amer. Math. Monthly 54 (1947, 589-592. "MAA Found Math for the Week of August 22, 2011." MAA Found Math for the Week of August 22, 2011. N.p., n.d. Web. 28 Nov. 2012. "Wikipedia." Wikipedia. N.p., n.d. Web. 28 Nov. 2012. Weisstein, Eric W. "Sierpiński Sieve." From MathWorld A Wolfram Web Resource. http://mathworld.wolfram.com/sierpinskisieve.html