Chakravala - a modern Indian method. B.Sury

Size: px
Start display at page:

Download "Chakravala - a modern Indian method. B.Sury"

Transcription

1 Chakravala - a modern Indian method BSury Indian Statistical Institute Bangalore, India sury@isibangacin IISER Pune, India Lecture on October 18,

2 Weil Unveiled What would have been Fermat s astonishment if some missionary, just back from India, had told him that his problem had been successfully tackled there by native mathematicians almost six centuries earlier? - André Weil Weil was talking about a 1657 challenge of Fermat to the English mathematicians and all others Writing to his friend Frenicle, he posed the problem of finding a solution of x 2 Ny 2 = 1 pour ne vous donner pas trop de peine like N = 61, 109 Cut back to 1150 AD when Bhaskara II gave the explicit solutions ( ) 2 = ( ) 2 = 1! Weil s comment was because - unbeknownst to Fermat - the ancient Indians had not merely given a solution but they had gone all the way! Brahmagupta, Jayadeva, Bhaskara Jayadeva (11th century) and Bhaskara had given the finishing touches to a wonderful algorithm called the Chakravala which finds all solutions to x 2 Ny 2 = ±1 for any positive integer N! Indeed, Brahmagupta ( ) had already solved this equation in 628 AD for several values like N = 83 and N = 92 Brahmagupta had remarked, a person who is able to solve these two cases within a year is truly a mathematician! Consider a natural number N which is not a perfect square We are basically interested in integer solutions of the equations x 2 Ny 2 = 1, x 2 Ny 2 = 1 More generally, suppose (p, q) is a solution of x 2 Ny 2 = m and (r, s) is a solution of x 2 Ny 2 = n Then is a solution of x 2 Ny 2 = mn (p, q) (r, s) := (pr + Nqs, ps + qr) This composition law or samasabhavana was discovered by Brahmagupta This was one of the first instances of a group-theoretic argument 2

3 Observe therefore that if (p, q), (r, s) are positive solutions of x 2 Ny 2 = 1, the Bhavana produces a larger solution In this manner, starting with one nontrivial (that is, (1, 0)) solution, one obtains infinitely many solutions of this equation We shall describe a method known as the chakravala method due to Jayadeva, Bhaskara and Narayana from the 11th and 12th centuries which solve this equation The amazing thing is that the chakravala method produces all solutions! This is what Weil was referring to As far as I know, the Indians did not state explicitly that the Chakravala method produces all solutions of the equations x 2 Ny 2 = 1 although they might have even been convinced in their minds that it does We shall find it convenient to use continued fractions to developed by Lagrange in the 1780 s to prove that the Chakravala does give all the solutions Moreover, it is an algorithm which can easily be implemented on a computer That is the reason we have called the Chakravala a modern method Some of the references to consult for more information are : (i) History of Algebra by VSVaradarajan in TRIM series, (ii) Number theory from Hammurapi to Legendre by AWeil, (iii) Theory of Numbers by Hardy & Wright Brahmagupta s shortcuts For finding a particular solution of x 2 Ny 2 = 1, Brahmagupta devised some shortcuts of the following kind: Write (u, v; n) to mean u 2 Nv 2 = n Then, (u, v; ±1) (2u 2 ± 1, 2uv; 1) (u, v; ±2) (u 2 ± 1, uv; 1) (2u, v; 4) (2u 2 1, uv; 1) (2u + 1, v; 4) ((2u + 1)(2u 2 + 2u 1), 2u(u + 1)v; 1) (2u, v; 4) (2u 2 + 1, v; 1) (u, v; 4) (p, q; 1) 3

4 with u odd, p = (u2 +2)((u 2 +1)(u 2 +3) 2) 2, q = uv(u2 +1)(u 2 +3) 2 Examples N = 13 Observing that (3) 2 = 4 Then, (11, 3; 4) and the 4th shortcut gives (649, 180; 1) N = 61 Observe that (5) 2 = 4 The last shortcut gives a solution x = 1523 (1522)(1524) 2 2 = and y = (39)(5)(1522)(1524) 2 = This happens to be the smallest solution! Chakravala algorithm Let us describe the Chakravala method roughly first The basic idea is to start with the initial values p 0 = [ N] and q 0 = 1 and look at them as solutions of the equation x 2 = m 0 y 2 = 1 where m 0 = p 2 0 N Taking an appropriate x 1 close to N, one has a solution (x 1, 1) of the second equation x 2 Ny 2 = x 2 1 N Then, one uses Samasabhavana to get a solution of the equation x 2 Ny 2 = m 0 (x 2 1 N) Now, the key point is to make the choice of x 1 in such a manner that the resulting solution (p 1, q 1 ) of x 2 Ny 2 = m 0 (x 2 1 N) as well as the modulus x2 1 N are all multiples of m 0 so that (p 1 /m 0, q 1 /m 0) would be a solution of x 2 Ny 2 = m 1 where m 1 = (x 2 1 N)/m 0 In this manner, recursively a suitable x i is so chosen that a solution of a new equation x 2 Ny 2 = m i is produced and the hope is that at some finite stage, the modulus m k = 1 and we stop! Let us describe this more precisely now Start with p 0 < N < p Take q 0 = 1 and m 0 = p 2 0 N (note m 0 < 0) Then, we have (p 0, q 0 ; m 0 ) Choose x 1 p 0 mod and x 1 < N < x 1 + Note that in forming the solution (p 0, q 0 ) (x 1, 1) = (p 0 x 1 + N, p 0 + x 1 ) of (p 0 x 1 + N, p 0 + x 1 ; m 0 (x 2 1 N)), the numbers p 0 x 1 + N, p 0 + x 1, x 2 1 N are all multiples of m 0 and x 2 1 N is as small as possible 4

5 Indeed, p 0 + x 1 0 mod m 0 and p 0 x 1 + N p N = m 0 0 mod m 0 Of course, we also have x 2 1 N p2 0 N = m 0 0 mod m 0 We have then (p 1, q 1 ; m 1 ) where p 1 = p 0x 1 +N, q 1 = p 0+x 1, m 1 = x2 1 N m 0 Also m 1 > 0 as x 2 1 N < 0 and m 0 < 0 Knowing p i, q i, m i, x i we shall describe (in that order) x i+1, m i+1, p i+1, q i+1 such that (p i+1, q i+1 ; m i+1 ) holds and stop when (and if!) we reach m k = 1 Recursive definition Suppose (p i, q i ; m i ) where we assume p i = p i 1x i + Nq i 1 m i 1, q i = p i 1 + x i q i 1, m i = x2 i N m i 1 m i 1 Define x i+1 x i mod m i with x i+1 < N < x i+1 + m i With this choice of x i+1, (p i+1, q i+1) := (p i, q i ) (x i+1, 1) = (p i x i+1 + Nq i, p i + q i x i+1 ) The key point to note is that the choice of the congruence defining x i+1 ensures that m i divides both p i+1 and q i+1 as well as x2 i+1 N: Indeed q i+1 = p i + q i x i+1 p i q i x i mod m i = p i 1x i + Nq i 1 p i 1 x i q i 1 x 2 i m i 1 = q i 1(N x 2 i ) m i 1 = ±q i 1 m i That is, m i divides q i+1 Also, we get p i+1 ±p i 1m i 0 mod m i The congruence x 2 i+1 N x2 i N mod m i ensures the divisibility of x 2 i+1 N by m i as m i m i 1 = x 2 i N Therefore, we can take p i+1 = p i+1 m i, q i+1 = q i+1 m i, m i+1 = x2 i+1 N m i The name Chakravala We shall show that each m i ( 2 N, 2 N) The m i s will repeat in cycles - hence called chakravala However, it is not obvious as yet that some m k = 1 but we will prove this later using continued fractions Moreover, it is not even clear that the p i, q i are integers Later, we show using continued fractions that these assertions are true 5

6 We now show simultaneously x i+1 < N, m i < 2 N = N p 2 0 < 2 N and x 1 < N < x 1 + So, x 1 > N > N 2 N > N Inductively, if m i < 2 N, then x i+1 < N < x i+1 + m i gives x i+1 < N as before, and m i+1 = x2 i+1 N m i = N + x i+1 N x i+1 m i < 2 N Formal algorithm summarized p 0 < N < p q 0 = 1 m 0 = p 2 0 N x 1 p 0 mod x 1 < N < x 1 + p 1 = p 0x 1 +N q 1 = p 0+x 1 m 1 = x2 1 N m 0 x i x i 1 mod m i 1 x i < N < x i + m i 1 p i = p i 1x i +Nq i 1 m i 1 q i = p i 1+x i q i 1 m i 1 m i = x2 i N m i 1 Example N = 13 Then p 0 = 3 < 13 < 4, q 0 = 1, m 0 = p = 4 Therefore (p 0, q 0 ; m 0 ) = (3, 1; 4) x 1 p 0 = 3(4) and x 1 < 13 < x gives x 1 = 1 p 1 = p 0x = 4, q 1 = p 0+x 1 = 1, m 1 = x m 0 = 3 Therefore, (p 1, q 1 ; m 1 ) = (4, 1; 3) and x 1 = 1 Now x 2 4 mod 3 and x 2 < 13 < x give x 2 = 2 x 2 = 2, p 1 = 4, q 1 = 1, m 1 = 3 So p 2 = p 1x 2 +13q 1 m 1 = 7, q 2 = p 1+q 1 x 2 m 1 = 2, m 2 = x m 1 = 3 Therefore, (p 2, q 2 ; m 2 ) = (7, 2; 3) and x 2 = 2 Now x 3 2 mod 3 and x 3 < 13 < x gives x 3 = 1 So p 3 = (7 + 26)/3 = 11, q 3 = (7 + 2)/3 = 3, m 3 = (1 2 13)/( 3) = 4 Therefore, (p 3, q 3 ; m 3 ) = (11, 3, 4) and x 3 = 1 x 4 1 mod 4 and x 4 < 13 < x gives x 4 = 3 So p 4 = ( )/4 = 18, q 4 = (11 + 9)/4 = 5, m 4 = (3 2 13)/(4) = 1 Therefore, (p 4, q 4 ; m 4 ) = (18, 5; 1) and x 4 = 3 x 5 3 mod 1 and x 5 < 13 < x gives x 5 = 3 6

7 So p 5 = ( )/1 = 119, q 5 = ( )/1 = 33, m 5 = (3 2 13)/( 1) = 4 Therefore, (p 5, q 5 ; m 5 ) = (119, 33; 4) and x 5 = 3 x 6 3 mod 4 and x 6 < 13 < x gives x 6 = 1 So p 6 = ( )/4 = 137, q 6 = (119+33)/4 = 38, m 6 = (1 2 13)/4 = 3 Therefore, (p 6, q 6 ; m 6 ) = (137, 38; 3) and x 6 = 1 x 7 1 mod 3 and x 7 < 13 < x gives x 7 = 2 So p 7 = ( )/3 = 256, q 7 = (137+76)/3 = 71, m 7 = (2 2 13)/( 3) = 3 Therefore, (p 7, q 7 ; m 7 ) = (256, 71; 3) and x 7 = 2 x 8 2 mod 3 and x 8 < 13 < x gives x 8 = 1 So p 8 = ( )/3 = 393, q 8 = ( )/3 = 109, m 8 = (1 2 13)/3 = 4 Therefore, (p 8, q 8 ; m 8 ) = (393, 109; 4) and x 8 = 1 x 9 1 mod 4 and x 9 < 13 < x gives x 9 = 3 So p 9 = ( )/4 = 649, q 9 = ( )/4 = 180, m 9 = (3 2 13)/( 4) = 1 Therefore, (p 9, q 9 ; m 9 ) = (649, 180; 1) and x 9 = 3 Voila! (ii) N = 67 (48842, 5967; 1) (iii) N = 61 ( , ; 1) (iv) N = 103 (227528, 22419; 1) (v) N = 97 ( , ; 1) Properties of the p i s,q i s (I) p i+1 q i q i+1 p i = ( 1) i (II) 0 < p 0 < p 1 <, 0 < q 1 < q 2 < (III) a i+1 = x i+1+x i m i are positive integers satisfying p i+1 = a i+1 p i + p i 1 q i+1 = a i+1 q i + q i 1 7

8 Proof of p i+1 q i q i+1 p i = ( 1) i As m i m i+1 = x 2 i+1 N < 0, m 0 < 0, ( xi+1 N 1 x i+1 ) ( ) pi q i m i m i = ( 1)i+1 = ( p i+1 q i+1 ) = ( ) pi+1 m i q i+1 m i Multiplying on the left by (q i, p i ), we get ( ) ( ) xi+1 N pi ( q i p i ) 1 x i+1 q i ( ) pi+1 m = ( q i p i ) i = (q q i+1 m i i p i+1 p i q i+1 ) m i The LHS q 2 i N p2 i = m i; so, p i+1 q i q i+1 p i = ( 1) i Note that (II) follows from (III) inductively; the beginning inequalities p 1 > p 0 > 0, q 1 > 0 are accomplished as follows Recall p 1 = p 0x 1 +N = p 0x 1 +p m 0 p = 1 + p 0 +x 1 0 = 1 + p 0 q 1 If we show that q 1 > 0, then it would follow that p 1 > p 0 As x 1 > N and 1 > N p 0, we have q 1 = p 0 + x 1 > p 0 + N = 1 N p0 1 > 0 Proof of (III) We leave the easy inductive proof of the fact that a i+1 = x i+1+x i m i are integers satisfying p i+1 = a i+1 p i + p i 1 q i+1 = a i+1 q i + q i 1 We prove that a i s are positive as follows As x i < N < x i + m i 1, we have m i 1 > N x i = N x2 i = m im i 1 = m im i 1 N + xi N + xi N + xi Hence N + x i > m i and so, a i+1 = x i + x i+1 m i > m i N + x i+1 m i > 0 Continued fractions - a crash course 8

9 A simple continued fraction is l = a a 1 + a 2 + := lim n (a a 1 + a One writes symbolically as l = [a 0 ; a 1, a 2, ] The successive quotients a n ) p 0 q 0 := a 0 1, p 1 q 1 = a 0a a 1 = a a 1, are called the convergents to the continued fraction Note p 0 q 0 < p 2 q 2 < < l < p 1 q 1 < p 3 q 3 < Inductively p n+1 = a n+1 p n + p n 1 q n+1 = a n+1 q n + q n 1 To see these, note that p n+2, q n+2 arise exactly like p n+1, q n+1 but with a n+1 replaced by a n a n+2 etc So which proves the claim p n+2 = (a n a n+2 )p n + p n 1 q n+2 (a n a n+2 )q n + q n 1 = a n+2(a n+1 p n + p n 1 ) + p n a n+2 (a n+1 q n + q n 1 ) + q n = a n+2p n+1 + p n a n+2 q n+1 + q n The ( above recursion ) ( is expressed ) ( better ) as : pn p n 1 an+1 1 pn+1 p = n 1 0 q n q n 1 q n+1 But, ( p 0 = a) 0,( q 0 = 1, p) 1 = ( a 0 a 1 + 1, ) q 1 = a 1 a0 1 a1 1 p1 p So = q 1 q 0 Thus, the recursion is expressed neatly as: ( a ) ( ) a q n ( ) an 1 = 1 0 Observe that immediately the determinants give p n q n 1 p n 1 q n = ( 1) n 1 ( ) pn p n 1 q n q n 1 9

10 So p n, q n are relatively prime and, from this, it can be shown that the limit defining the CF exists There is a simple way to recover l from any one of the so-called complete quotients l n = a n a n+1 + a n+2 + Since p n qn = a np n 1 +p n 2 a nq n 1 +q n 2 and l is obtained when a n above is replaced by l n, we have l = l np n 1 + p n 2 l n q n 1 + q n 2 CFs for rational numbers It is elementary to observe that finding continued fractions for rational numbers p/q is not only equivalent to the Euclidean algorithm of finding the GCD of p and q but also equivalent to (very efficiently) solving the linear Diophantine equation px qy = (p, q) Let us give an example Suppose we wish to solve 72x+5 7 y = 1 in integers x, y Look at the following division table: Then = [1085; 14, 2, 2] The penultimate convergent [1085; 14, 2] = /( ) = = provides us with a solution of 78125x 72y = 1; viz (x, y) = (29, 31467) So, it is not surprising that finding the continued fractions of certain numbers may lead to solutions of some Diophantine equations How does one find the CF for an irrational number like 7? = 2 + ( 7 2) = 2 + = ( 7 + 2)/ = 1 + ( 1) = = = ( 7 + 1)/2 = = = ( 7 2) 10

11 Thus, we have a repetition and So, 7 = [2; 1, 1, 1, 4] = Continued fraction of N Let N be a square-free positive integer How does the CF of N look? Now, N = a 1 + ( N a 1 ) with a 1 = [ N] Thus, N a 1 = N a2 1 N+a1 = r 1 N+a1, say, where r 1 = N = a 2 1 In other words, N = a 1 + r 1 1 N+a1 = a 1 + ( N+a 1 )/r 1 Write [ N+a1 r 1 ] = b 1 ; then N + a1 = b 1 r 1 + ( N a 2 ) where a 2 = b 1 r 1 a 1 So, N = a b 1 +( N a 2 )/r 1 = a The CF is N = b b b 2 + b 1 + b 0 = a 1 = [ N] r 1 = N a 2 1 b 1 = [ N+a1 r 1 ] 1 ( N+a 2 )/r 2 where r 1 r 2 = N a 2 2 a n = b n 1 r n 1 a n 1 r n 1 r n = N a 2 n b n = [ N+an r n ] The crucial point is that, at each stage if b n = [ N+an r n ] is replaced by l n = N+an r n, then we get the exact value N l n+1 p n + p n 1 N = = ( N+an+1 r n+1 )p n + p n 1 l n+1 q n + q n 1 ( N+an+1 r n+1 )q n + q n 1 Comparing the terms with and without N, a n+1 p n + r n+1 p n 1 = Nq n a n+1 q n + r n+1 q n 1 = p n Using p n 1 q n p n q n 1 ) = ( 1) n, we have a n+1 ( 1) n 1 = p n 1 p n Nq n 1 q n 11

12 r n+1 ( 1) n 1 = p 2 n Nqn 2 One may deduce from this a n+1, r n+1 > 0 Further, if we know some r k (say r n+1 ) equals 1, then ( 1) n 1 = p 2 n Nqn 2 Comparing Chakravala with CF Amazingy, the Chakravala method produces the same p k s and q k s as in the CF for N Recall that in Chakravala method, we have p i+1 = a i+1p i + p i 1 q i+1 = a i+1q i + q i 1 where a i+1 = x i+1+x i m i with a 0 = p 0 = [ N], x i < N < x i + m i 1 and m i m i 1 = x 2 i N We have written p i, q i, a i etc to distinguish from the p i, q i, a i in the CF In view of the recursions, one can show that the b i s in the CF of N are the same as the a i s here as follows Recalling the expression for complete quotient at any stage in the SCF of N, and recalling that Nqn 1 p n 1 we have l n+1 = This gives the expression p n Nq n N = l n+1 p n + p n 1 b n+1 = [l n+1 ] = [ Firstly, a 0 = p 0 = [ N] = b 0 Next, l n+1 q n + q n 1 Nqn 1 p n 1 p n Nq n ] a 1 = q 1 = p 0 + x 1 since x 1 < N < x 1 + Hence a 1 = [ b 0+ N ] = b N b 2 1 ; that is, 0 = b 0 + x 1 = [ b 0 + N ] a 1 = q 1 = b 1 12

13 Also, p 1 = 1 + p 0 q 1 = 1 + b 0b 1 = p 1 Thus, we have shown a 0 = b 0, p 0 = p 0, q 0 = q 0, p 1 = p 1, q 1 = q 1 We assume that b i = a i for all i n; then p i = p i, q i = q i for all i n We show b n+1 = a n+1 Recall that Nqn 1 p n 1 b n+1 = [ p n ] Nq n Hence, it suffices to show that Nq a n+1 = [ n 1 p n 1 p n ] ( ) Nq n Now, the Chakravala has which gives p i = p i 1 x i + Nq i 1, q i = p i 1 + x iq i 1 m i 1 m i 1 p n = p n 1 x n + Nq n 1 m n 1, q n = p n 1 + q n 1 x n m n 1 Using these, the right hand side of ( ) is Nq [ n 1 p n 1 p n m n 1 N + xn ] = [ ] = [ ] Nq n N xn m n where we have used m n m n 1 = x 2 n N Denote the integer [ N+xn m n ] by t Then, we have t < N + xn m n < t + 1 Hence t m n x n < N < t m n x n + m n As x n+1 is the unique integer satisfying x n+1 < N < x n+1 + m n as we defined in the Chakravala, we have x n+1 = t m n x n This means t = xn+x n+1 m n = a n+1 So b n+1 = a n+1 We have thus proved our assertion Recurrence of CF for N Let us start by proving the well-known fact that b n s recur Now 0 < r n 1 r n = N a 2 n implies that a 1 = [ N] a n n 13

14 So, each a n can only have the values 1, 2,, a 1 = [ N] From b n 1 r n 1 = a n + a n 1 2a 1, we have r n 1 2a 1 for all n This means that the complete quotients (these are N+an r n ) can take at the most 2a 2 1 values; so they recur So a n = a k, r n = r k, b n = b k for some n < k We shall show that a n 1 = a k 1, r n 1 = r k 1, b n 1 = b l 1 Now, r k 1 r k = N a 2 k = N a2 n = r n 1 r n gives r k 1 = r n 1 a k 1 a n 1 = (a k 1 + a k ) (a n 1 + a n ) = (b k 1 b n 1 )r n 1 We observe as follows that a 1 < a d + r d for all d r d 1 b d 1 r d 1 = a d 1 + a d < N + a d = N a2 d N ad = r d 1r d N ad So, it follows that r d > N a d > a 1 a d Thus, (b k 1 b n 1 )r n 1 = a k 1 a n 1 = (a 1 a n 1 ) (a 1 a k 1 ) < a 1 a n 1 < r n 1 ; we arrive at b k 1 = b n 1, a k 1 = a n 1 Proceeding in this manner, there is n such that a n+1 = a 1, r n+1 = r 1 So r n r 1 = r n r n+1 = N a 2 n+1 = N a 2 1 = r 1 which means r n = 1 So r n ( 1) n = ( 1) n = p 2 n 1 Nq2 n 1 Chakravala gives all The Chakravala method does give solutions of x 2 Ny 2 = 1 Indeed, we know how to get a solution of x 2 Ny 2 = 1 from one for x 2 Ny 2 = 1 The remarkable fact that it gives all the solutions is contained in the theorem below: Theorem Every solution of either of the equations x 2 Ny 2 = ±1 is of the form (p n, q n ) for some n Let us first observe that any solution of x 2 Ny 2 = ±1 satisfies x y N < 1 2y 2 We see this when x 2 Ny 2 = 1, for x y N = x y N 1 y = y(x+y < 1 N) 2y 2 since x + y N > 2y When x 2 Ny 2 = 1 and x y, the same argument works When x 2 Ny 2 = 1 with x < y, we have 1 = x 2 Ny 2 < y 2 Ny 2 = (1 N)y 2 which means (N 1)y 2 < 1, an impossibility 14

15 The rest of the proof then follows from the more general statement: If α is a real number which is irrational, and satisfies α r s < 1 where 2s 2 s > 0, then r/s is a convergent to the continued fraction of α We skip the rest of the proof of the theorem which is an easy consequence of the fact that we can find ζ such that α = ζp n + p n 1 ζq n + q n 1 and the key observation (which we prove) where the so-called modular group plays a role: Modular group comes in If α = ζp+r ζq+s where ζ > 1 and ps qr = ±1 and q > s > 0, then p/q, r/s are consecutive convergents to the CF of α For the proof, write p q = [a 0 ; a 1,, a n ] with p i /q i the convergents (so p n /q n = p/q) Choose n so that ps qr = ( 1) n 1 = p n q n 1 q n p n 1 Note that we have used the easy observation that a rational number has two simple continued fractions - one of even length and the other of odd length As p, q are relatively prime with q > 0 and p/q = p n /q n, it follows that p = p n, q = q n Thus, ( 1) n 1 = ps qr = p n s q n r = p n q n 1 q n p n 1 This gives p n (s q n 1 ) = q n (r p n 1 ) which means in view of coprimality of p n, q n that q n (s q n 1 ) As q n = q > s (hypothesis) and q n q n 1, we must have s = q n 1 (and hence r = p n 1 ) We are done Remarks It can be sown that if the continued fraction expansion of N looks like [b 0 ; b 1, b 2,, b r, 2b 0 ] and, the penultimate convergent [b 0 ; b 1, b 2,, b r ] gives a solution of x 2 Ny 2 = 1 or of x 2 Ny 2 = 1 according as to whether the period r + 1 above is odd or even Examples 7 = [2; 1, 1, 1, 4, ] gives the penultimate convergent before the period to be [2; 1, 1, 1] = 8/3 Then, (8, 3) is a solution of x 2 7y 2 = 1 (as the period is of even length) Note that x 2 7y 2 = 1 has no solution (look mod 4) 15

16 13 = [3; 1, 1, 1, 1, 6, ] gives the penultimate convergent before the period to be [3; 1, 1, 1, 1] = 18/5 Then (18, 5) is a solution of x 2 13y 2 = 1 (as the period is of odd length) From this a solution for x 2 13y 2 = 1 can be obtained as ( (5 2 ), 2(18)(5)) = (649, 180) 16

NORM OR EXCEPTION? KANNAPPAN SAMPATH & B.SURY

NORM OR EXCEPTION? KANNAPPAN SAMPATH & B.SURY NORM OR EXCEPTION? KANNAPPAN SAMPATH & B.SURY Introduction In a first course on algebraic number theory, a typical homework problem may possibly ask the student to determine the class group of a quadratic

More information

The world of Diophantine equations

The world of Diophantine equations Indian Statistical Institute Bangalore, India sury@isibang.ac.in National seminar on Algebra and Number Theory Pavanatma College, Idukki, Kerala December 5, 2014 Diophantus of Alexandria, Egypt lived during

More information

CONTINUED FRACTIONS. 1. Finite continued fractions A finite continued fraction is defined by [a 0,..., a n ] = a 0 +

CONTINUED FRACTIONS. 1. Finite continued fractions A finite continued fraction is defined by [a 0,..., a n ] = a 0 + CONTINUED FRACTIONS Abstract Continued fractions are used in various areas of number theory and its applications They are seen in the extended Euclidean algorithm; in approximations (of numbers and functions);

More information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

Math 109 HW 9 Solutions

Math 109 HW 9 Solutions Math 109 HW 9 Solutions Problems IV 18. Solve the linear diophantine equation 6m + 10n + 15p = 1 Solution: Let y = 10n + 15p. Since (10, 15) is 5, we must have that y = 5x for some integer x, and (as we

More information

Pell s Equation Claire Larkin

Pell s Equation Claire Larkin Pell s Equation is a Diophantine equation in the form: Pell s Equation Claire Larkin The Equation x 2 dy 2 = where x and y are both integer solutions and n is a positive nonsquare integer. A diophantine

More information

1. multiplication is commutative and associative;

1. multiplication is commutative and associative; Chapter 4 The Arithmetic of Z In this chapter, we start by introducing the concept of congruences; these are used in our proof (going back to Gauss 1 ) that every integer has a unique prime factorization.

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively 6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise

More information

SOME AMAZING PROPERTIES OF THE FUNCTION f(x) = x 2 * David M. Goldschmidt University of California, Berkeley U.S.A.

SOME AMAZING PROPERTIES OF THE FUNCTION f(x) = x 2 * David M. Goldschmidt University of California, Berkeley U.S.A. SOME AMAZING PROPERTIES OF THE FUNCTION f(x) = x 2 * David M. Goldschmidt University of California, Berkeley U.S.A. 1. Introduction Today we are going to have a look at one of the simplest functions in

More information

PELL S EQUATION NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA

PELL S EQUATION NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA, ODISHA PELL S EQUATION A Project Report Submitted by PANKAJ KUMAR SHARMA In partial fulfillment of the requirements For award of the degree Of MASTER OF SCIENCE IN MATHEMATICS UNDER GUIDANCE OF Prof GKPANDA DEPARTMENT

More information

PRIME NUMBERS YANKI LEKILI

PRIME NUMBERS YANKI LEKILI PRIME NUMBERS YANKI LEKILI We denote by N the set of natural numbers: 1,2,..., These are constructed using Peano axioms. We will not get into the philosophical questions related to this and simply assume

More information

ON SOME DIOPHANTINE EQUATIONS (I)

ON SOME DIOPHANTINE EQUATIONS (I) An. Şt. Univ. Ovidius Constanţa Vol. 10(1), 2002, 121 134 ON SOME DIOPHANTINE EQUATIONS (I) Diana Savin Abstract In this paper we study the equation m 4 n 4 = py 2,where p is a prime natural number, p

More information

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University The Hasse-Minkowski Theorem in Two and Three Variables THESIS Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University By

More information

A Guide to Arithmetic

A Guide to Arithmetic A Guide to Arithmetic Robin Chapman August 5, 1994 These notes give a very brief resumé of my number theory course. Proofs and examples are omitted. Any suggestions for improvements will be gratefully

More information

Exploring Number Theory via Diophantine Equations

Exploring Number Theory via Diophantine Equations Exploring Number Theory via Diophantine Equations Department of Mathematics Colorado College Fall, 2009 Outline Some History Linear Pythagorean Triples Introduction to Continued Fractions Elementary Problems

More information

CHAPTER V Fermat s last theorem

CHAPTER V Fermat s last theorem 5.1 Introduction. CHAPTER V Fermat s last theorem We discuss elementary methods approaches to Fermat s last theorem, in which the game is we do not use complex numbers. In this chapter we use methods available

More information

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z: NUMBER SYSTEMS Number theory is the study of the integers. We denote the set of integers by Z: Z = {..., 3, 2, 1, 0, 1, 2, 3,... }. The integers have two operations defined on them, addition and multiplication,

More information

Number Theory Solutions Packet

Number Theory Solutions Packet Number Theory Solutions Pacet 1 There exist two distinct positive integers, both of which are divisors of 10 10, with sum equal to 157 What are they? Solution Suppose 157 = x + y for x and y divisors of

More information

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2, SOLUTIONS TO PROBLEM SET 1 Section 1.3 Exercise 4. We see that 1 1 2 = 1 2, 1 1 2 + 1 2 3 = 2 3, 1 1 2 + 1 2 3 + 1 3 4 = 3 4, and is reasonable to conjecture n k=1 We will prove this formula by induction.

More information

Hilbert s theorem 90, Dirichlet s unit theorem and Diophantine equations

Hilbert s theorem 90, Dirichlet s unit theorem and Diophantine equations Hilbert s theorem 90, Dirichlet s unit theorem and Diophantine equations B. Sury Stat-Math Unit Indian Statistical Institute 8th Mile Mysore Road Bangalore - 560 059 India. sury@isibang.ac.in Introduction

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8 CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8 Polynomials Polynomials constitute a rich class of functions which are both easy to describe and widely applicable in

More information

EXAMPLES OF MORDELL S EQUATION

EXAMPLES OF MORDELL S EQUATION EXAMPLES OF MORDELL S EQUATION KEITH CONRAD 1. Introduction The equation y 2 = x 3 +k, for k Z, is called Mordell s equation 1 on account of Mordell s long interest in it throughout his life. A natural

More information

Part II. Number Theory. Year

Part II. Number Theory. Year Part II Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2017 Paper 3, Section I 1G 70 Explain what is meant by an Euler pseudoprime and a strong pseudoprime. Show that 65 is an Euler

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7 EECS 70 Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7 Polynomials Polynomials constitute a rich class of functions which are both easy to describe and widely applicable in topics

More information

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

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information

Introduction to Number Theory

Introduction to Number Theory INTRODUCTION Definition: Natural Numbers, Integers Natural numbers: N={0,1,, }. Integers: Z={0,±1,±, }. Definition: Divisor If a Z can be writeen as a=bc where b, c Z, then we say a is divisible by b or,

More information

Selected Chapters from Number Theory and Algebra

Selected Chapters from Number Theory and Algebra Selected Chapters from Number Theory and Algebra A project under construction Franz Rothe Department of Mathematics University of North Carolina at Charlotte Charlotte, NC 83 frothe@uncc.edu December 8,

More information

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 6. Prime Numbers. Definition and Fundamental Results CHAPTER 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results 6.1. Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and the only positive divisors of p are 1 and p. If n

More information

Divisibility. Chapter Divisors and Residues

Divisibility. Chapter Divisors and Residues Chapter 1 Divisibility Number theory is concerned with the properties of the integers. By the word integers we mean the counting numbers 1, 2, 3,..., together with their negatives and zero. Accordingly

More information

An Alternate Method to Compute the Decimal Expansion of Rational Numbers

An Alternate Method to Compute the Decimal Expansion of Rational Numbers 8 MATHEMATICS MAGAZINE An Alternate Method to Compute the Decimal Expansion of Rational Numbers AMITABHA TRIPATHI Indian Institute of Technology Delhi Hauz Khas, New Delhi 1016, India atripath@maths.iitd.ac.in

More information

MATH 145 Algebra, Solutions to Assignment 4

MATH 145 Algebra, Solutions to Assignment 4 MATH 145 Algebra, Solutions to Assignment 4 1: a) Find the inverse of 178 in Z 365. Solution: We find s and t so that 178s + 365t = 1, and then 178 1 = s. The Euclidean Algorithm gives 365 = 178 + 9 178

More information

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2 8. p-adic numbers 8.1. Motivation: Solving x 2 a (mod p n ). Take an odd prime p, and ( an) integer a coprime to p. Then, as we know, x 2 a (mod p) has a solution x Z iff = 1. In this case we can suppose

More information

1 Overview and revision

1 Overview and revision MTH6128 Number Theory Notes 1 Spring 2018 1 Overview and revision In this section we will meet some of the concerns of Number Theory, and have a brief revision of some of the relevant material from Introduction

More information

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some

More information

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points. Math 152, Problem Set 2 solutions (2018-01-24) All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points. 1. Let us look at the following equation: x 5 1

More information

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

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. Chapter 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. If n > 1

More information

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

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...} WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not

More information

Fermat s Last Theorem for Regular Primes

Fermat s Last Theorem for Regular Primes Fermat s Last Theorem for Regular Primes S. M.-C. 22 September 2015 Abstract Fermat famously claimed in the margin of a book that a certain family of Diophantine equations have no solutions in integers.

More information

Diophantine equations

Diophantine equations Diophantine equations So far, we have considered solutions to equations over the real and complex numbers. This chapter instead focuses on solutions over the integers, natural and rational numbers. There

More information

3 Finite continued fractions

3 Finite continued fractions MTH628 Number Theory Notes 3 Spring 209 3 Finite continued fractions 3. Introduction Let us return to the calculation of gcd(225, 57) from the preceding chapter. 225 = 57 + 68 57 = 68 2 + 2 68 = 2 3 +

More information

arxiv:math/ v1 [math.nt] 9 Aug 2004

arxiv:math/ v1 [math.nt] 9 Aug 2004 arxiv:math/0408107v1 [math.nt] 9 Aug 2004 ELEMENTARY RESULTS ON THE BINARY QUADRATIC FORM a 2 + ab + b 2 UMESH P. NAIR Abstract. This paper examines with elementary proofs some interesting properties of

More information

CHAPTER 1. REVIEW: NUMBERS

CHAPTER 1. REVIEW: NUMBERS CHAPTER. REVIEW: NUMBERS Yes, mathematics deals with numbers. But doing math is not number crunching! Rather, it is a very complicated psychological process of learning and inventing. Just like listing

More information

What can you prove by induction?

What can you prove by induction? MEI CONFERENCE 013 What can you prove by induction? Martyn Parker M.J.Parker@keele.ac.uk Contents Contents iii 1 Splitting Coins.................................................. 1 Convex Polygons................................................

More information

Proofs Not Based On POMI

Proofs Not Based On POMI s Not Based On POMI James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University February 1, 018 Outline Non POMI Based s Some Contradiction s Triangle

More information

1 Continued Fractions

1 Continued Fractions Continued Fractions To start off the course, we consider a generalization of the Euclidean Algorithm which has ancient historical roots and yet still has relevance and applications today.. Continued Fraction

More information

Number Theory. Henry Liu, 6 July 2007

Number Theory. Henry Liu, 6 July 2007 Number Theory Henry Liu, 6 July 007 1. Introduction In one sentence, number theory is the area of mathematics which studies the properties of integers. Some of the most studied subareas are the theories

More information

#A5 INTEGERS 18A (2018) EXPLICIT EXAMPLES OF p-adic NUMBERS WITH PRESCRIBED IRRATIONALITY EXPONENT

#A5 INTEGERS 18A (2018) EXPLICIT EXAMPLES OF p-adic NUMBERS WITH PRESCRIBED IRRATIONALITY EXPONENT #A5 INTEGERS 8A (208) EXPLICIT EXAMPLES OF p-adic NUMBERS WITH PRESCRIBED IRRATIONALITY EXPONENT Yann Bugeaud IRMA, UMR 750, Université de Strasbourg et CNRS, Strasbourg, France bugeaud@math.unistra.fr

More information

Factorization in Integral Domains II

Factorization in Integral Domains II Factorization in Integral Domains II 1 Statement of the main theorem Throughout these notes, unless otherwise specified, R is a UFD with field of quotients F. The main examples will be R = Z, F = Q, and

More information

4 Linear Recurrence Relations & the Fibonacci Sequence

4 Linear Recurrence Relations & the Fibonacci Sequence 4 Linear Recurrence Relations & the Fibonacci Sequence Recall the classic example of the Fibonacci sequence (F n ) n=1 the relations: F n+ = F n+1 + F n F 1 = F = 1 = (1, 1,, 3, 5, 8, 13, 1,...), defined

More information

Beautiful Mathematics

Beautiful Mathematics Beautiful Mathematics 1. Principle of Mathematical Induction The set of natural numbers is the set of positive integers {1, 2, 3,... } and is denoted by N. The Principle of Mathematical Induction is a

More information

Solutions to Practice Final

Solutions to Practice Final s to Practice Final 1. (a) What is φ(0 100 ) where φ is Euler s φ-function? (b) Find an integer x such that 140x 1 (mod 01). Hint: gcd(140, 01) = 7. (a) φ(0 100 ) = φ(4 100 5 100 ) = φ( 00 5 100 ) = (

More information

Chapter 5. Number Theory. 5.1 Base b representations

Chapter 5. Number Theory. 5.1 Base b representations Chapter 5 Number Theory The material in this chapter offers a small glimpse of why a lot of facts that you ve probably nown and used for a long time are true. It also offers some exposure to generalization,

More information

The theory of continued fractions and the approximations of irrational numbers

The theory of continued fractions and the approximations of irrational numbers 교육학석사학위청구논문 연분수이론과무리수의근사 The theory of continued fractions and the approximations of irrational numbers 202 년 2 월 인하대학교교육대학원 수학교육전공 정미라 교육학석사학위청구논문 연분수이론과무리수의근사 The theory of continued fractions and the

More information

Lecture Notes. Advanced Discrete Structures COT S

Lecture Notes. Advanced Discrete Structures COT S Lecture Notes Advanced Discrete Structures COT 4115.001 S15 2015-01-13 Recap Divisibility Prime Number Theorem Euclid s Lemma Fundamental Theorem of Arithmetic Euclidean Algorithm Basic Notions - Section

More information

3.2 Solving linear congruences. v3

3.2 Solving linear congruences. v3 3.2 Solving linear congruences. v3 Solving equations of the form ax b (mod m), where x is an unknown integer. Example (i) Find an integer x for which 56x 1 mod 93. Solution We have already solved this

More information

Elliptic Curves & Number Theory. R. Sujatha School of Mathematics TIFR

Elliptic Curves & Number Theory. R. Sujatha School of Mathematics TIFR Elliptic Curves & Number Theory R. Sujatha School of Mathematics TIFR Aim: To explain the connection between a simple ancient problem in number theory and a deep sophisticated conjecture about Elliptic

More information

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

MATH10040: Chapter 0 Mathematics, Logic and Reasoning MATH10040: Chapter 0 Mathematics, Logic and Reasoning 1. What is Mathematics? There is no definitive answer to this question. 1 Indeed, the answer given by a 21st-century mathematician would differ greatly

More information

Fall 2017 Test II review problems

Fall 2017 Test II review problems Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and

More information

7. Prime Numbers Part VI of PJE

7. Prime Numbers Part VI of PJE 7. Prime Numbers Part VI of PJE 7.1 Definition (p.277) A positive integer n is prime when n > 1 and the only divisors are ±1 and +n. That is D (n) = { n 1 1 n}. Otherwise n > 1 is said to be composite.

More information

Grade 8 Chapter 7: Rational and Irrational Numbers

Grade 8 Chapter 7: Rational and Irrational Numbers Grade 8 Chapter 7: Rational and Irrational Numbers In this chapter we first review the real line model for numbers, as discussed in Chapter 2 of seventh grade, by recalling how the integers and then the

More information

1 Recommended Reading 1. 2 Public Key/Private Key Cryptography Overview RSA Algorithm... 2

1 Recommended Reading 1. 2 Public Key/Private Key Cryptography Overview RSA Algorithm... 2 Contents 1 Recommended Reading 1 2 Public Key/Private Key Cryptography 1 2.1 Overview............................................. 1 2.2 RSA Algorithm.......................................... 2 3 A Number

More information

2301 Assignment 1 Due Friday 19th March, 2 pm

2301 Assignment 1 Due Friday 19th March, 2 pm Show all your work. Justify your solutions. Answers without justification will not receive full marks. Only hand in the problems on page 2. Practice Problems Question 1. Prove that if a b and a 3c then

More information

On the polynomial x(x + 1)(x + 2)(x + 3)

On the polynomial x(x + 1)(x + 2)(x + 3) On the polynomial x(x + 1)(x + 2)(x + 3) Warren Sinnott, Steven J Miller, Cosmin Roman February 27th, 2004 Abstract We show that x(x + 1)(x + 2)(x + 3) is never a perfect square or cube for x a positive

More information

Some Congruence Properties of Pell's Equation

Some Congruence Properties of Pell's Equation Brigham Young University BYU ScholarsArchive All Theses and Dissertations 2009-07-08 Some Congruence Properties of Pell's Equation Nathan C. Priddis Brigham Young University - Provo Follow this and additional

More information

CPSC 467b: Cryptography and Computer Security

CPSC 467b: Cryptography and Computer Security CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 8 February 1, 2012 CPSC 467b, Lecture 8 1/42 Number Theory Needed for RSA Z n : The integers mod n Modular arithmetic GCD Relatively

More information

The primitive root theorem

The primitive root theorem The primitive root theorem Mar Steinberger First recall that if R is a ring, then a R is a unit if there exists b R with ab = ba = 1. The collection of all units in R is denoted R and forms a group under

More information

3 The language of proof

3 The language of proof 3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

More information

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1 MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find

More information

EXAMPLES OF MORDELL S EQUATION

EXAMPLES OF MORDELL S EQUATION EXAMPLES OF MORDELL S EQUATION KEITH CONRAD 1. Introduction The equation y 2 = x 3 +k, for k Z, is called Mordell s equation 1 on account of Mordell s long interest in it throughout his life. A natural

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

Hence, the sequence of triangular numbers is given by., the. n th square number, is the sum of the first. S n

Hence, the sequence of triangular numbers is given by., the. n th square number, is the sum of the first. S n Appendix A: The Principle of Mathematical Induction We now present an important deductive method widely used in mathematics: the principle of mathematical induction. First, we provide some historical context

More information

Part IA Numbers and Sets

Part IA Numbers and Sets Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: Byte multiplication 1 Field arithmetic A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: F is an abelian group under addition, meaning - F is closed under

More information

A NICE DIOPHANTINE EQUATION. 1. Introduction

A NICE DIOPHANTINE EQUATION. 1. Introduction A NICE DIOPHANTINE EQUATION MARIA CHIARA BRAMBILLA Introduction One of the most interesting and fascinating subjects in Number Theory is the study of diophantine equations A diophantine equation is a polynomial

More information

Solutions to 2015 Entrance Examination for BSc Programmes at CMI. Part A Solutions

Solutions to 2015 Entrance Examination for BSc Programmes at CMI. Part A Solutions Solutions to 2015 Entrance Examination for BSc Programmes at CMI Part A Solutions 1. Ten people sitting around a circular table decide to donate some money for charity. You are told that the amount donated

More information

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby Math 8: Advanced Number Theory Samit Dasgupta and Gary Kirby April, 05 Contents Basics of Number Theory. The Fundamental Theorem of Arithmetic......................... The Euclidean Algorithm and Unique

More information

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93. Exercises Exercises 1. Determine whether each of these integers is prime. a) 21 b) 29 c) 71 d) 97 e) 111 f) 143 2. Determine whether each of these integers is prime. a) 19 b) 27 c) 93 d) 101 e) 107 f)

More information

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus... PREFACE These notes have been prepared by Dr Mike Canfell (with minor changes and extensions by Dr Gerd Schmalz) for use by the external students in the unit PMTH 338 Number Theory. This booklet covers

More information

arxiv: v1 [math.co] 27 Aug 2015

arxiv: v1 [math.co] 27 Aug 2015 P-positions in Modular Extensions to Nim arxiv:1508.07054v1 [math.co] 7 Aug 015 Tanya Khovanova August 31, 015 Abstract Karan Sarkar In this paper, we consider a modular extension to the game of Nim, which

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction CSC 344 Algorithms and Complexity Lecture #1 Review of Mathematical Induction Proof by Mathematical Induction Many results in mathematics are claimed true for every positive integer. Any of these results

More information

CONTINUED FRACTIONS Lecture notes, R. M. Dudley, Math Lecture Series, January 15, 2014

CONTINUED FRACTIONS Lecture notes, R. M. Dudley, Math Lecture Series, January 15, 2014 CONTINUED FRACTIONS Lecture notes, R. M. Dudley, Math Lecture Series, January 5, 204. Basic definitions and facts A continued fraction is given by two sequences of numbers {b n } n 0 and {a n } n. One

More information

3 - Induction and Recursion

3 - Induction and Recursion November 14, 2017 3 - Induction and Recursion William T. Trotter trotter@math.gatech.edu Using Recurrence Equations (1) Basic Problem How many regions are determined by n lines that intersect in general

More information

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission. Fermat's Little Theorem: Proofs That Fermat Might Have Used Author(s): Bob Burn Source: The Mathematical Gazette, Vol. 86, No. 507 (Nov., 2002), pp. 415-422 Published by: The Mathematical Association Stable

More information

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 000 Chapter 1 Arithmetic in 1.1 The Division Algorithm Revisited 1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = 3. 2. (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 3. (a) q = 6, r =

More information

Infinite Continued Fractions

Infinite Continued Fractions Infinite Continued Fractions 8-5-200 The value of an infinite continued fraction [a 0 ; a, a 2, ] is lim c k, where c k is the k-th convergent k If [a 0 ; a, a 2, ] is an infinite continued fraction with

More information

1 Adeles over Q. 1.1 Absolute values

1 Adeles over Q. 1.1 Absolute values 1 Adeles over Q 1.1 Absolute values Definition 1.1.1 (Absolute value) An absolute value on a field F is a nonnegative real valued function on F which satisfies the conditions: (i) x = 0 if and only if

More information

On Representations of integers by the quadratic form x2 Dy2

On Representations of integers by the quadratic form x2 Dy2 Rochester Institute of Technology RIT Scholar Works Theses Thesis/Dissertation Collections 5-4-2012 On Representations of integers by the quadratic form x2 Dy2 Christopher Thomas Follow this and additional

More information

Proof worksheet solutions

Proof worksheet solutions Proof worksheet solutions These are brief, sketched solutions. Comments in blue can be ignored, but they provide further explanation and outline common misconceptions Question 1 (a) x 2 + 4x +12 = (x +

More information

Notes on Continued Fractions for Math 4400

Notes on Continued Fractions for Math 4400 . Continued fractions. Notes on Continued Fractions for Math 4400 The continued fraction expansion converts a positive real number α into a sequence of natural numbers. Conversely, a sequence of natural

More information

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution Math 38: Graph Theory Spring 2004 Dartmouth College 1 Introduction On Writing Proofs What constitutes a well-written proof? A simple but rather vague answer is that a well-written proof is both clear and

More information

QUADRATIC RINGS PETE L. CLARK

QUADRATIC RINGS PETE L. CLARK QUADRATIC RINGS PETE L. CLARK 1. Quadratic fields and quadratic rings Let D be a squarefree integer not equal to 0 or 1. Then D is irrational, and Q[ D], the subring of C obtained by adjoining D to Q,

More information

CHAPTER 8: EXPLORING R

CHAPTER 8: EXPLORING R CHAPTER 8: EXPLORING R LECTURE NOTES FOR MATH 378 (CSUSM, SPRING 2009). WAYNE AITKEN In the previous chapter we discussed the need for a complete ordered field. The field Q is not complete, so we constructed

More information

Practice Midterm Exam Solutions

Practice Midterm Exam Solutions CSE 311: Foundations of Computing I Practice Midterm Exam Solutions Name: Sample Solutions ID: TA: Section: INSTRUCTIONS: You have 50 minutes to complete the exam. The exam is closed book. You may not

More information

Integer-sided equable shapes

Integer-sided equable shapes Integer-sided equable shapes Shapes with integer side lengths and with equal area and perimeter. Rectangles ab = (a + b) 1 = 1 a + 1 b Trapezia 6 8 14 1 4 3 0 Triangles 6 10 8 P = = 4 13 1 P = = 30 8 10

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

SYMMETRY AND SPECIALIZABILITY IN THE CONTINUED FRACTION EXPANSIONS OF SOME INFINITE PRODUCTS

SYMMETRY AND SPECIALIZABILITY IN THE CONTINUED FRACTION EXPANSIONS OF SOME INFINITE PRODUCTS SYMMETRY AND SPECIALIZABILITY IN THE CONTINUED FRACTION EXPANSIONS OF SOME INFINITE PRODUCTS J MC LAUGHLIN Abstract Let fx Z[x] Set f 0x = x and for n 1 define f nx = ff n 1x We describe several infinite

More information

Modular Arithmetic and Elementary Algebra

Modular Arithmetic and Elementary Algebra 18.310 lecture notes September 2, 2013 Modular Arithmetic and Elementary Algebra Lecturer: Michel Goemans These notes cover basic notions in algebra which will be needed for discussing several topics of

More information

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska LECTURE 12 CHAPTER 4 NUMBER THEORY PART1: Divisibility PART 2: Primes PART 1: DIVISIBILITY Basic Definitions Definition Given m,n Z, we say

More information