Collatz Conjecture and a simple program

Author: Kazi Abu Rousan

Mathematics is not yet ready for such problems.

Paul Erdos

Introduction

A problem in maths which is too tempting and seems very easy but is actually a hidden demon is this Collatz Conjecture. This problems seems so easy that it you will be tempted, but remember it is infamous for eating up your time without giving you anything. This problem is so hard that most mathematicians doesn't want to even try it, but to our surprise it is actually very easy to understand. In this article our main goal is to understand the scheme of this conjecture and how can we write a code to apply this algorithm to any number again and again.

Note: If you are curious, the featured image is actually a visual representation of this collatz conjecture \ $3n+1$ conjecture. You can find the code here.

Statement and Some Examples

The statement of this conjecture can be given like this:

Suppose, we have any random positive integer $n$, we now use two operations:

Mathematically, we can write it like this:

$f(n) = \frac{n}{2}$ if $n \equiv 0$ (mod 2)

$ f(n) = (3n+1) $ if $n \equiv 1$ (mod 2)

Now, this conjecture says that no-matter what value of n you choose, you will always get 1 at the end of this operation if you perform it again and again.

Let's take an example, suppose we take $n=12$. As $12$ is an even number, we divide it by $2$. $\frac{12}{2} = 6$, which is again even. So, we again divide it by $2$. This time we get, $\frac{6}{2} = 3$, which is odd, hence, we multiply it by 3 and add $1$, i.e., $3\times 3 + 1 = 10$, which is again even. Hence, repeating this process we get the series $5 \to 16 \to 8 \to 4 \to 2 \to 1$. Seems easy right?,

Let's take again, another number $n=19$. This one gives us $19 \to 58 \to 29 \to 88 \to 44 \to 22 \to 11 \to 34 \to 17 \to 52 \to 26 \to 13 \to 40 \to 20 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1$. Again at the end we get $1$.

This time, we get much bigger numbers. There is a nice trick to visualize the high values, the plot which we use to do this is called Hailstone Plot.

Let's take the number $n=27$. For this number, the list is $27 \to 82 \to 41 \to 124 \to 62 \to 31 \to 94 \to 47 \cdots \to 9232 \cdots$. As you can see, for this number it goes almost as high as 9232 but again it falls down to $1$. The hailstone plot for this is given below.

Hailstone for 27. The highest number and with it's iteration number is marked

So, what do you think is the conjecture holds for all number? , no one actually knows. Although, using powerful computers, we have verified this upto $2^{68}$. So, if you are looking for a counterexample, start from 300 quintillion!!

Generating the series for Collatz Conjecture for any number n using python

Let's start with coding part. We will be using numpy library.

import numpy as np
def collatz(n):
	result = np.array([n])
	while n >1:
		# print(n)
		if n%2 == 0:
			n = n/2
		else:
			n = 3*n + 1
		result = np.append(result,n)
	return result

The function above takes any number $n$ as it's argument. Then, it makes an array (think it as a box of numbers). It creates a box and then put $n$ inside it.

  1. Then for $n>1$, it check if $n$ is even or not.
  2. After this, if it is even then $n$ is divided by 2 and the previous value of n is replaced by $\frac{n}{2}$.
  3. And if $n$ is odd, the it's value is replaced by $3n+1$.
  4. For each case, we add the value of new $n$ inside our box of number. This whole process run until we have the value of $n=1$.
  5. Finally, we have the box of all number / series of all number inside the array result.

Let's see the result for $n = 12$.

n = 12
print(collatz(n))
#The output is: [12.  6.  3. 10.  5. 16.  8.  4.  2.  1.]

Similarly, for $n = 19$, the code gives us,

n = 19
print(collatz(n))
#The output is: [19. 58. 29. 88. 44. 22. 11. 34. 17. 52. 26. 13. 40. 20. 10.  5. 16.  8.  4.  2.  1.]

You can try out the code, it will give you the result for any number $n$.

Test this function.

Hailstone Plot

Now let's see how to plot Hailstone plot. Suppose, we have $n = 12$. In the image below, I have shown the series we get from $12$ using the algorithm.

Series and Step for $n=12$.

Now, as shown in the above image, we can assign natural numbers on each one of them as shown. So, Now we have two arraies (boxes), one with the series of numbers generated from $n$ and other one from the step number of the applied algorithm, i.e., series of natural numbers. Now, we can take elements from each series one by one and can generate pairs, i.e., two dimensional coordinates.

As shown in the above image, we can generate the coordinates using the steps as x coordinate and series a y coordinate. Now, if we plot the points, then that will give me Hailstone plot. For $n = 12$, we will get something like the image given below. Here I have simply added each dots with a red line.

The code to generate it is quite easy. We will be using matplotlib. We will just simply plot it and will mark the highest value along with it's corresponding step.

import numpy as np
import matplotlib.pyplot as plt
def collatz(n):
    result = np.array([n])
	while n >1:
		# print(n)
		if n%2 == 0:
			n = n/2
		else:
			n = 3*n + 1
		result = np.append(result,n)
	return result
n = 63728127
y_vals = collatz(n); x_vals = np.arange(1,len(y_vals)+1)
plt.plot(x_vals,y_vals)
x_val_max = np.where(y_vals == max(y_vals))[0][0]+1
plt.text(x_val_max, max(y_vals), '({}, {})'.format(x_val_max, int(max(y_vals))))
plt.grid(color='purple',linestyle='--')
plt.ylabel("Sequence Generated")
plt.xlabel("Number of Iteration")
plt.show()

The output image is given below.

Crazy right?, you can try it out. It's almost feels like some sort of physics thing right!, for some it seems like stock market.

This is all for today. In it's part-2, we will go into much more detail. I hope you have learn something new.

Maybe in the part-2, we will see how to create pattern similar to this using collatz conjecture.

Gaussian Prime Spiral and Its beautiful Patterns

Author: Kazi Abu Rousan

Mathematics is the science of patterns, and nature exploits just about every pattern that there is.

Ian Stewart

Introduction

If you are a math enthusiastic, then you must have seen many mysterious patterns of Prime numbers. They are really great but today, we will explore beautiful patterns of a special type of 2-dimensional primes, called Gaussian Primes. We will focus on a very special pattern of these primes, called the Gaussian Prime Spiral. First, we have understood what those primes are. The main purpose of this article is to show you guys how to utilize programming to analyze beautiful patterns of mathematics. So, I have not given any proof, rather we will only focus on the visualization part.

Gaussian Integers and Primes

We all know about complex numbers right? They are the number of form $z=a+bi$, were $i$ = $\sqrt{-1}$. They simply represent points in our good old coordinate plane. Like $z=a+bi$ represent the point $(a,b)$. This means every point on a 2d graph paper can be represented by a Complex number.

In python, we write $i$ = $\sqrt{-1}$ as $1j$. So, we can write any complex number $z$ = $2 + 3i$ as $z$ = $2+1j*3$. As an example, see the piece of code below.

z = 2 + 1j*3
print(z)

#output is (2+3j)
print(type(z))
#output is <class 'complex'>
#To verify that it indeed gives us complex number, we can see it by product law.
z1 = 2 + 1j*3
z2 = 5 + 1j*2
print(z1*z2)
#output is (4+19j)

To access the real and imaginary components individually, we use the real and imag command. Hence, z.real will give us 2 and z.imag will give us 3. We can use abs command to find the absolute value of any complex number, i.e., abs(z) = $\sqrt{a^2+b^2} = \sqrt{2^2+1^2}= \sqrt{5}$. Here is the example code.

print(z.real)
#Output is 2.0
print(z.imag)
#output is 3.0
print(abs(z))
#Output is 3.605551275463989

If lattice points, i.e., points with integer coordinates (eg, (2,3), (6,13),... etc) on the coordinate plane (like the graph paper you use in your class) are represented as complex numbers, then they are called Gaussian Integers. Like we can write (2,3) as $2+3i$. So, $2+3i$ is a Gaussian Integer.

Gaussian Primes are almost same in $\mathbb{Z}[i]$ as ordinary primes are in $\mathbb{Z_{+}}$, i.e., Gaussian Primes are complex numbers that cannot be further factorized in the field of complex numbers. As an example, $5+3i$ can be factorised as $(1+i)(3-2i)$. So, It is not a gaussian prime. But $3-2i$ is a Gaussian prime as it cannot be further factorized. Likewise, 5 can be factorised as $(2+i)(2-i)$. So it is not a gaussian prime. But we cannot factorize 3. Hence, $3+0i$ is a gaussian prime.

Note: Like, 1 is not a prime in the field of positive Integers, $i$ and also $1$ are not gaussian prime in the field of complex numbers. Also, you can define what a Gaussian Prime is, using the 2 condition given below (which we have used to check if any $a+ib$ is a gaussian prime or not).

Checking if a number is Gaussian prime or not

Now, the question is, How can you check if any given Gaussian Integer is prime or not? Well, you can use try and error. But it's not that great. So, to find if a complex number is gaussian prime or not, we will take the help of Fermat's two-square theorem.

A complex number $z = a + bi$ is a Gaussian prime, if:. As an example, $5+0i$ is not a gaussian prime as although its imaginary component is zero, its real component is not of the form $4n+3$. But $3i$ is a Gaussian prime, as its real component is zero but the imaginary component, 3 is a prime of the form $4n+3$.

  1. One of $|a|$ or $|b|$ is zero and the other one is a prime number of form $4n+3$ for some integer $n\geq 0$. As an example, $5+0i$ is a gaussian prime as although it's imaginary component is zero, it's real component is not of the form $4n+3$. But $3i$ is a gaussian prime, as it's real component is zero and imaginary component, 3 is a prime of form $4n+3$.
  2. If both a and b are non-zero and $(abs(z))^2=a^2+b^2$ is a prime. This prime will be of the form $4n+1$.

Using this simple idea, we can write a python code to check if any given Gaussian integer is Gaussian prime or not. But before that, I should mention that we are going to use 2 libraries of python:

  1. matplotlib $\to$ This one helps us to plot different plots to visualize data. We will use one of it's subpackage (pyplot).
  2. sympy $\to$ This will help us to find if any number is prime or not. You can actually define that yourself too. But here we are interested in gaussian primes, so we will take the function to check prime as granted.

So, the function to check if any number is gaussian prime or not is,

import numpy as np
import matplotlib.pyplot as plt
from sympy import isprime
def gprime(z):#check if z is gaussian prime or not, return true or false
	re = int(abs(z.real)); im = int(abs(z.imag))
	if re == 0 and im == 0:
		return False
	d = (re**2+im**2) 
	if re != 0 and im != 0:
		return isprime(d)
	if re == 0 or im == 0:
		abs_val = int(abs(z))
		if abs_val % 4 == 3:
			return isprime(abs_val)
		else:
			return False

Let's test this function.

print(gprime(1j*3))
#output is True
print(gprime(5))
#output is False
print(gprime(4+1j*5))
#output is True

Let's now plot all the Gaussian primes within a radius of 100. There are many ways to do this, we can first define a function that returns a list containing all Gaussian primes within the radius n, i.e., Gaussian primes, whose absolute value is less than or equals to n. The code can be written like this (exercise: Try to increase the efficiency).

def gaussian_prime_inrange(n):
    gauss_pri = []
    for a in range(-n,n+1):
        for b in range(-n,n+1):
            gaussian_int = a + 1j*b
            if gprime(gaussian_int):
                gauss_pri.append(gaussian_int)
    return gauss_pri

Now, we can create a list containing all Gaussian primes in the range of 100.

gaussain_pri_array = gaussian_prime_inrange(100)
print(gaussain_pri_array)
#Output is [(-100-99j), (-100-89j), (-100-87j), (-100-83j),....., (100+83j), (100+87j), (100+89j), (100+99j)]

To plot all these points, we need to separate the real and imaginary parts. This can be done using the following code.

gaussian_p_real = [x.real for x in gaussain_pri_array]
gaussian_p_imag = [x.imag for x in gaussain_pri_array]

The code to plot this is here (exercise: Play around with parameters to generate a beautiful plot).

plt.axhline(0,color='Black');plt.axvline(0,color='Black') # Draw re and im axis
plt.scatter(gaussian_p_real,gaussian_p_imag,color='red',s=0.4)
plt.xlabel("Re(z)")
plt.ylabel("Im(z)")
plt.title("Gaussian Primes")
plt.savefig("gauss_prime.png", bbox_inches = 'tight',dpi = 300)
plt.show()
Gaussian Prime
Look closely, you can find a pattern... maybe try plotting some more primes

Gaussian Prime Spiral

Now, we are ready to plot the Gaussian prime spiral. I have come across these spirals while reading the book Learning Scientific Programming with Python, 2nd edition, written by Christian Hill. There is a particular problem, which is:

Gaussian Integer and Primes Problem

Although, history is far richer than just solving a simple problem. If you are interested try this article: Stepping to Infinity Along Gaussian Primes by Po-Ru Loh (The American Mathematical Monthly, vol-114, No. 2, Feb 2007, pp. 142-151). But here, we will just focus on the problem. Maybe in the future, I will explain this article in some video.

The plot of the path will be like this:

Gaussisan Primes and Gaussian Spirals

Beautiful!! Isn't it? Before seeing the code, let's try to understand how to draw this by hand. Let's take the initial point as $c_0=3+2i$ and $\Delta c = 1+0i=1$.

  1. For the first step, we don't care if $c_0$ is gaussian prime or not. We just add the step with it, i.e., we add $\Delta c$ with $c_0$. For our case it will give us $c_1=(3+2i)+1=4+2i$.
  2. Then, we check if $c_1$ is a gaussian prime or not. In our case, $c_1=4+2i$ is not a gaussian prime. So, we repeat step-1(i.e., add $\Delta c$ with it). This gives us $c_2=5+2i$. Again we check if $c_2$ is gaussian prime or not. In this case, $c_2$ is a gaussian prime. So, now we have to rotate the direction $90^{\circ}$ towards the left,i.e., anti-clockwise. In complex plane, it is very easy. Just multiply the $\Delta c$ by $i = \sqrt{-1}$ and that will be our new $\Delta c$. For our example, $c_3$ = $c_2+\Delta c$ = $5+2i+(1+0i)\cdot i$ = $5+3i$.
  3. From here, again we follow step-2, until we get the point from where we started with the same $\Delta c$ or you can do it for your required step.

The list of all the complex number we will get for this particular example is:

IndexComplex No.Step Index Complex No. Step
0$3+2i$+17 $2+4i$ -1
1 $4+2i$ +18 $1+4i$ -i
2 $5+2i$ +i9$1+3i$-i
3 $5+3i$ +i10$1+2i$+1
4 $5+4i$ -111$2+2i$+1
5 $4+4i$ -112$3+2i$+i
6 $3+4i$ -113$3+3i$+i
Complex numbers and $\Delta c$'s along Gaussian prime spiral

Note that although $c_{12}$ is the same as $c_0$, as it is a Gaussian prime, the next gaussian integer will be different from $c_1$. This is the case because $\Delta c$ will be different.

To plot this, just take each $c_i$ as coordinate points, and add 2 consecutive points with a line. The path created by the lines is called a Gaussian prime spiral. Here is a hand-drawn plot.

Gaussian Prime Spiral hand-drawn plot

I hope now it is clear how to plot this type of spiral. You can use the same concept for Eisenstein primes, which are also a type of 2D primes to get beautiful patterns (Excercise: Try these out for Eisenstein primes, it will be a little tricky).

We can define our function to find points of the gaussian prime spiral such that it only contains as many numbers as we want. Using that, let's plot the spiral for $c_0 = 3+2i$, which only contains 30 steps.

Gaussian primes, integers and spirals

Here is the code to generate it. Try to analyze it.

def gaussian_spiral(seed, loop_num = 1, del_c = 1, initial_con = True):#Initial condition is actually the fact
#that represnet if you want to get back to the initial number(seed) at the end.
    d = seed; gaussian_primes_y = []; gaussian_primes_x = []
    points_x = [d.real]; points_y = [d.imag]
    if initial_con:
        while True:
            seed += del_c; real = seed.real; imagi = seed.imag
            points_x.append(real); points_y.append(imagi)
            if seed == d:
                break
            if gprime(seed):
                del_c *= 1j
                gaussian_primes_x.append(real); gaussian_primes_y.append(imagi)
    else:
        for i in range(loop_num):
            seed += del_c; real = seed.real; imagi = seed.imag
            points_x.append(real); points_y.append(imagi)
            if gprime(seed):
                del_c *= 1j ;
                gaussian_primes_x.append(real); gaussian_primes_y.append(imagi)
    gauss_p = [gaussian_primes_x,gaussian_primes_y]
    return points_x, points_y, gauss_p

Using this piece of code, we can literally generate any gaussian prime spiral. Like, for the problem of the book, here is the solution code:

seed1 = 5 + 23*1j
plot_x, plot_y, primes= gaussian_spiral(seed1)
loop_no = len(plot_x)-1
plt.ylim(21,96.5)
plt.xlim(-35,35)
plt.axhline(0,color='Black');plt.axvline(0,color='Black')
plt.plot(plot_x,plot_y,label='Gaussian spiral',color='mediumblue')
plt.scatter(primes[0][0],primes[1][0],c='Black',marker='X')#starting point
plt.scatter(primes[0][1::],primes[1][1::],c='Red',marker='*',label='Gaussian primes')
plt.grid(color='purple',linestyle='--')
plt.legend(loc='best',prop={'size':6})
plt.xlabel("Re(z) ; starting point = %s and loop number = %s "%(seed1,loop_no))
plt.ylabel("Im(z)")

plt.savefig("prob_sol.png", bbox_inches = 'tight',dpi = 300)
plt.show()

A few more of these patterns are:

Gaussian Prime and Spiral Pattern

One of the most beautiful patterns is generated for the seed: $277 + 232i$.

Gaussian Primes Spiral Patterns

😳 Am I seeing a Bat doing back-flip?

All the codes for generating these can be found here:

Here is an interactive version. Play around with this: https://zurl.co/Hv3U

Also, you can use python using an android app - Pydroid 3 (which is free)

I have also written this in Julia. Julia is faster than Python. Here you can find Julia's version: https://zurl.co/wETi

Test of Mathematics Solution Objective 398 - Complex Number and Binomial Theorem

Test of Mathematics at the 10+2 Level

This is a Test of Mathematics Solution (from ISI Entrance). The book, Test of Mathematics at 10+2 Level is Published by East West Press. This problem book is indispensable for the preparation of I.S.I. B.Stat and B.Math Entrance.

Also see: Cheenta I.S.I. & C.M.I. Entrance Course


Problem

If \(a_0, a_1, \cdots, a_n \) are real numbers such that $$ (1+z)^n = a_0 + a_1 z + a_2 z^2 + \cdots + a_n z^n $$ for all complex numbers z, then the value of $$ (a_0 - a_2 + a_4 - a_6 + \cdots )^2 + (a_1 - a_3 + a_5 - a_7 + \cdots )^2 $$ equals

(A) \( 2^n \) ; (B) \( a_0^2 + a_1^2 + \cdots + a_n^2 \) ; (C) \( 2^{n^2} \) ; (D) \( 2n^2 \) ;

Sequential Hints


(How to use this discussion: Do not read the entire solution at one go. First, read more on the Key Idea, then give the problem a try. Next, look into Step 1 and give it another try and so on.)

Key Idea

This is the generic use case of Complex Number \( \iota =\sqrt {-1} \) and binomial theorem.

Step 1

Note that \( i^2 = -1 \). Also, geometrically speaking, i = (0,1). Hence adding (1,0) to i (=(0,1)) gives us the point (1, 1). Polar coordinate of this point is \( ( \sqrt 2, \frac{pi}{4} ) \). Here is a picture:

test of mathematics solution objective 398

Try the problem with this hint before looking into step 2. Remember, no one learnt mathematics by looking at solutions.

At Cheenta we are busy with Complex Number and Geometry module. Additionally I.S.I. Entrance Mock Test 1 is also active now.

Replace \( z \) by \( i \). We have \( (1+z)^n = (\sqrt 2 , \frac {\pi}{4} )^n = (2^{n/2}, \frac{n \cdot \pi }{4} ) \) on the left hand side.

Now, replace \( z \) by \( i \) on the right hand side.

[/tab]

[tab]

Replacing z by \( i \) on the right hand side we have $$(2^{n/2}, \frac{n \cdot \pi }{4} ) = a_0 + a_1 i + a_2 i^2 + a_3 I^3  \cdots + a_n I^n $$. This implies $$ (2^{n/2}, \frac{n \cdot \pi }{4} ) = a_0 - a_2 + a_4 - \cdots + i (a_1 - a_3 + a_5 -  \cdots ) $$

Think now, what the following expression represents: $$ (a_0 - a_2 + a_4 - a_6 + \cdots )^2 + (a_1 - a_3 + a_5 - a_7 + \cdots )^2 $$

It represents the square of the length of point \( (2^{n/2}, \frac{n \cdot \pi }{4} ) \). That is simply \( (2^{n/2})^2 = 2^n \)

Hence the answer is option A.


More Resources

Look into the following notes on Complex Number and Geometry module.

Test of Mathematics Solution Subjective 88 - Complex Numbers with a Property

Test of Mathematics at the 10+2 Level

This is a Test of Mathematics Solution Subjective 88 (from ISI Entrance). The book, Test of Mathematics at 10+2 Level is Published by East West Press. This problem book is indispensable for the preparation of I.S.I. B.Stat and B.Math Entrance.


Also visit: I.S.I. & C.M.I. Entrance Course of Cheenta

Problem:

A pair of complex numbers \(z_1, z_2\) is said to have the property \(P\) if for every complex number \(z\) we find real numbers \(r\) and \(s\) such that \(z=rz_1 + sz_2\).Show that a pair of complex numbers has property \(P\) if and only if the points \(z_1,z_2\) and \(0\) on the complex plane are not collinear.


Solution:

Let the complex numbers \(z_1,z_2,0\) be collinear, and the line joining them make an angle \(\theta\) with the x-axis. This means that:

\(arg(z_1) =arg(z_2) = \theta\)

\(=> z_1 = |z_1| (cos\,\theta + i sin\, \theta)\)

Similarly,

\(=> z_2 = |z_2| (cos\,\theta + i sin\, \theta)\)

Therefore, \(z=rz_1 + sz_2\)

\(=> z =r |z_1| (cos\,\theta + i sin\, \theta) + s|z_2| (cos\,\theta + i sin\, \theta)\)

\(=> z =(r |z_1| + s|z_2|) (cos\,\theta + i sin\, \theta)\)

Which implies that \(z\) lies on the same line that joins \(z_1\) and \(z_2\). But that is not true, as \(z\) can be any complex number.

Thus the assumption that \(z_1, z_2, 0\) are collinear is false.

Hence Proved.

Amplitude and Complex numbers | AIME I, 1996 Question 11

Try this beautiful problem from the American Invitational Mathematics Examination I, AIME I, 1996 based on Amplitude and Complex numbers.

Amplitude and Complex numbers - AIME 1996


Let P be the product of the roots of \(z^{6}+z^{4}+z^{2}+1=0\) that have a positive imaginary part and suppose that P=r(costheta+isintheta) where \(0 \lt r\) and \(0 \leq \theta \lt 360\) find \(\theta\)

  • is 107
  • is 276
  • is 840
  • cannot be determined from the given information

Key Concepts


Equations

Complex Numbers

Integers

Check the Answer


Answer: is 276.

AIME, 1996, Question 11

Complex Numbers from A to Z by Titu Andreescue

Try with Hints


here\(z^{6}+z^{4}+z^{2}+1\)=\(z^{6}-z+z^{4}+z^{2}+z+1\)=\(z(z^{5}-1)+\frac{(z^{5}-1)}{(z-1)}\)=\(\frac{(z^{5}-1)(z^{2}-z+1)}{(z-1)}\) then \(\frac{(z^{5}-1)(z^{2}-z+1)}{(z-1)}\)=0

gives \(z^{5}=1 for z\neq 1\) gives \(z=cis 72,144,216,288\) and \(z^{2}-z+1=0 for z \neq 1\) gives z=\(\frac{1+-(-3)^\frac{1}{2}}{2}\)=\(cis60,300\) where cis\(\theta\)=cos\(\theta\)+isin\(\theta\)

taking \(0 \lt theta \lt 180\) for positive imaginary roots gives cis72,60,144 and then P=cis(72+60+144)=cis276 that is theta=276.

.

Subscribe to Cheenta at Youtube


ISI MStat 2015 PSA Problem 18 | Complex Number

This is a beautiful problem from ISI MSTAT 2015 PSA problem 18 based on complex number. We provide sequential hints so that you can try.

Complex Number - ISI MStat Year 2015 PSA Question 18


The set of complex numbers $z$ satisfying the equation \( (3+7 i) z+(10-2 i) \bar{z}+100=0\) represents, in the complex plane

  • a straight line
  • a pair of intersecting straight lines
  • a point
  • a pair of distinct parallel straight lines

Key Concepts


Complex number representation

Straight line

Check the Answer


Answer: is a pair of intersecting straight lines

ISI MStat 2015 PSA Problem 18

Precollege Mathematics

Try with Hints


Simplify the Complex. Just Solve.

Let \(z = x+iy, \bar{z} = x-iy\) Then the given equation reduces to \((13x-9y+100)+i(5x-7y) = 0\).
Which implies \(13x-9y+100 = 0, 5x-7y = 0\).
They do intersect.(?)

Yes! they intersect and to get the point of intersection just use substitution . Hence it gives a pair of intersecting straight lines.

Similar Problems and Solutions



ISI MStat 2015 PSA Problem 18
Outstanding Statistics Program with Applications

Outstanding Statistics Program with Applications

Subscribe to Cheenta at Youtube


Complex numbers and Sets | AIME I, 1990 | Question 10

Try this beautiful problem from the American Invitational Mathematics Examination I, AIME I, 1990 based on Complex Numbers and Sets.

Complex Numbers and Sets - AIME I, 1990


The sets A={z:\(z^{18}=1\)} and B={w:\(w^{48}=1\)} are both sets of complex roots with unity, the set C={zw: \(z \in A and w \in B\)} is also a set of complex roots of unity. How many distinct elements are in C?.

  • is 107
  • is 144
  • is 840
  • cannot be determined from the given information

Key Concepts


Integers

Complex Numbers

Sets

Check the Answer


Answer: is 144.

AIME I, 1990, Question 10

Complex Numbers from A to Z by Titu Andreescue

Try with Hints


18th and 48th roots of 1 found by de Moivre's Theorem

=\(cis(\frac{2k_1\pi}{18})\) and \(cis(\frac{2k_2\pi}{48})\)

where \(k_1\), \(K_2\) are integers from 0 to 17 and 0 to 47 and \(cis \theta = cos \theta +i sin \theta\)

zw= \(cis(\frac{k_1\pi}{9}+\frac{k_2\pi}{24})=cis(\frac{8k_1\pi+3k_2\pi}{72})\)

and since the trigonometric functions are periodic every period \({2\pi}\)

or, at (72)(2)=144 distinct elements in C.

Subscribe to Cheenta at Youtube


Function of Complex numbers | AIME I, 1999 | Question 9

Try this beautiful problem from the American Invitational Mathematics Examination I, AIME I, 1999 based on Function of Complex Numbers and Integers.

Function of Complex Numbers - AIME I, 1999


Let f(z) =(a+bi)z where a,b are positive numbers. This function has the property that the image of each point in the complex plane is equidistant from that point and the origin given that |a+bi|=8 and that \(b^{2}\)=\(\frac{m}{n}\) where m and n are relatively prime positive integers, find m+n.

  • is 107
  • is 259
  • is 840
  • cannot be determined from the given information

Key Concepts


Functions

Integers

Complex Numbers

Check the Answer


Answer: is 259.

AIME I, 1999, Question 9

Complex Numbers from A to Z by Titu Andreescue

Try with Hints


Let z=1+i f(1+i)=(a+bi)(1+i)=(a-b)+(a+b)i The image point must be equidistant from (1,1) and(0,0) then the image point lie on the line with slope -1 and which passes through \((\frac{1}{2},\frac{1}{2})\) that is x+y=1

putting x=(a-b) and y=(a+b) gives 2a=1 and \(a=\frac{1}{2}\)

and \((\frac{1}{2})^{2} +b^{2}=8^{2}\) then \(b^{2}=\frac{255}{4}\) then 255+4=259.

Subscribe to Cheenta at Youtube


Equations and Complex numbers | AIME I, 2019 Question 10

Try this beautiful problem from the American Invitational Mathematics Examination I, AIME I, 2019 based on Equations and Complex numbers.

Equations and Complex numbers - AIME 2019


For distinct complex numbers \(z_1,z_2,......,z_{673}\) the polynomial \((x-z_1)^{3}(x-z_2)^{3}.....(x-z_{673})^{3}\) can be expressed as \(x^{2019}+20x^{2018}+19x^{2017}+g(x)\), where g(x) is a polynomial with complex coefficients and with degree at most 2016. The value of \(|\displaystyle\sum_{1 \leq j\leq k \leq 673}(z_j)(z_k)|\) can be expressed in the form \(\frac{m}{n}\), where m and n are relatively prime positive integers, find m+n

  • is 107
  • is 352
  • is 840
  • cannot be determined from the given information

Key Concepts


Equations

Complex Numbers

Integers

Check the Answer


Answer: is 352.

AIME, 2019, Question 10

Complex Numbers from A to Z by Titu Andreescue

Try with Hints


here \(|\displaystyle\sum_{1 \leq j\leq k \leq 673}(z_j)(z_k)|\)=s=\((z_1z_2+z_1z_3+....z_1z_{673})+(z_2z_3+z_2z_4+...+z_2z_{673})\)

\(+.....+(z_{672}z_{673})\) here

P=\((x-z_1)(x-z_1)(x-z_1)(x-z_2)(x-z_2)(x-z_2)...(x-z_{673})(x-z_{673})(x-z_{673})\)

with Vieta's formula,\(z_1+z_1+z_1+z_2+z_2+z_2+.....+z_{673}+z_{673}+z_{673}\)=-20 then \(z_1+z_2+.....+z_{673}=\frac{-20}{3}\) the first equation and \({z_1}^{2}+{z_1}^{2}+{z_1}^{2}+{z_1z_2}+{z_1z_2}+{z_1z_2}+.....\)=\(3({z_1}^{2}+{z_2}^{2}+.....+{z_{673}}^{2})\)+\(9({z_1z_2}+{z_1z_3}+....+{z_{672}z_{673}})\)=\(3({z_1}^{2}+{z_2}^{2}+.....+{z_{673}}^{2})\)+9s which is second equation

here \((z_1+z_2+.....+z_{673})^{2}=\frac{400}{9}\) from second equation then \(({z_1}^{2}+{z_2}^{2}+.....+{z_{673}}^{2})+2({z_1z_2}+{z_1z_3}+....+{z_{672}z_{673}})=\frac{400}{9}\) then \(({z_1}^{2}+{z_2}^{2}+.....+{z_{673}}^{2})+2s=\frac{400}{9}\) then \(({z_1}^{2}+{z_2}^{2}+.....+{z_{673}}^{2})=\frac{400}{9}\)-2s then with second equation and with vieta s formula \(3(\frac{400}{9}-2s)+9s\)=19 then s=\(\frac{-343}{9}\) then |s|=\(\frac{343}{9}\) where 343 and 9 are relatively prime then 343+9=352.

.

Subscribe to Cheenta at Youtube


Complex Numbers and prime | AIME I, 2012 | Question 6

Try this beautiful problem from the American Invitational Mathematics Examination I, AIME I, 2012 based on Complex Numbers and prime.

Complex Numbers and primes - AIME 2012


The complex numbers z and w satisfy \(z^{13} = w\) \(w^{11} = z\) and the imaginary part of z is \(\sin{\frac{m\pi}{n}}\), for relatively prime positive integers m and n with m<n. Find n.

  • is 107
  • is 71
  • is 840
  • cannot be determined from the given information

Key Concepts


Complex Numbers

Algebra

Number Theory

Check the Answer


Answer: is 71.

AIME I, 2012, Question 6

Complex Numbers from A to Z by Titu Andreescue

Try with Hints


Taking both given equations \((z^{13})^{11} = z\) gives \(z^{143} = z\) Then \(z^{142} = 1\)

Then by De Moivre's theorem, imaginary part of z will be of the form \(\sin{\frac{2k\pi}{142}} = \sin{\frac{k\pi}{71}}\) where \(k \in {1, 2, upto 70}\)

71 is prime and n = 71.

Subscribe to Cheenta at Youtube