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

ISI B.Stat B.Math 2021 Objective Paper | Problems & Solutions

In this post, you will find ISI B.Stat B.Math 2021 Objective Paper with Problems and Solutions. This is a work in progress, so the solutions and discussions will be uploaded soon. You may share your solutions in the comments below.

[Work in Progress]

Problem 1

The number of ways one can express $2^{2} 3^{3} 5^{5} 7^{7}$ as a product of two numbers $a$ and $b$, where $\text{gcd}(a, b)=1$, and $1<a<b$, is


Problem 2

The sum of all the solutions of $ 2 + \log_2 (x-2) = \log_{(x-2)} 8$ in the interval $(2, \infty)$ is

Problem 3

Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a continuous function such that
$$
f(x+1)=\frac{1}{2} f(x) \text { for all } x \in \mathbb{R}
$$
and let $a_{n}=\int_{0}^{n} f(x) d x$ for all integers $n \geq 1$. Then:

(A) $\lim {n \rightarrow \infty} a_{n}$ exists and equals $\int_{0}^{1} f(x) d x$.
(B) $\lim {n \rightarrow \infty} a_{n}$ does not exist.
(C) $\lim {n \rightarrow \infty} a_{n}$ exists if and only if $|\int_{0}^{1} f(x) d x|<1$.
(D) $\lim {n \rightarrow \infty} a_{n}$ exists and equals $2 \int_{0}^{1} f(x) d x$.

Problem 4

Consider the curves $x^{2}+y^{2}-4 x-6 y-12=0,9 x^{2}+4 y^{2}-900=0$ and $y^{2}-6 y-6 x+51=0 .$ The maximum number of disjoint regions into which these curves divide the $X Y$ -plane (excluding the curves themselves), is
(A) 4 .
(B) 5 .
(C) 6 .
(D) 7 .

Problem 5

A box has $13$ distinct pairs of socks. Let $p_{r}$ denote the probability of having at least one matching pair among $a$ bunch of $r$ socks drawn at random from the box. If $r_{0}$ is the maximum possible value of $r$ such that $p_{r}<1$, then the value of $p_{r_{0}}$ is

(A) $1-\frac{12}{ 26C_{12} }$.
(B) $1-\frac{13}{ 26C_{13} }$.
(C) $1-\frac{2^{13}}{ 26C_{13} } .$
(D) $1-\frac{2^{12}}{26C_{12}}$.

Problem 6

Let $a, b, c, d>0$, be any real numbers. Then the maximum prossible value of $c x+d y$, over all points on the ellipse $\frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}}=1$, must the
(A) $\sqrt{a^{2} c^{2}+b^{2} d^{2}}$.
(B) $\sqrt{a^{2} b^{2}+c^{2} d^{2}}$.
(C) $\sqrt{\frac{a^{2} c^{2}+b^{2} d^{2}}{a^{2}+b^{2}}}$.
(D) $\sqrt{\frac{a^{2} b^{2}+c^{2} d^{2}}{c^{2}+d^{2}}}$.


Problem 7

Let $f(x)=\sin x+\alpha x, x \in \mathbb{R}$, where $\alpha$ is a fixed real number. The function $f$ is one-to-one if and only if
(A) $\alpha>1$ or $\alpha<-1$.
(B) $\alpha \geq 1$ or $\alpha \leq-1$.
(C) $a \geq 1$ or $\alpha<-1$.
(D) $\alpha>1$ or $\alpha \leq-1$.


Problem 8

The Value of

$$1+\frac{1}{1+2}+\frac{1}{1+2+3}+\cdots+\frac{1}{1+2+3+\cdots 2021}$$ is

(A) $\frac{2021}{1010}$.
(B) $\frac{2021}{1011}$.
(C) $\frac{2021}{1012}$.
(D) $\frac{2021}{1013}$.

Problem 9

The volume of the region $S=\{(x, y, z):|x|+2|y|+3|z| \leq 6\}$ is
(A) 36 .
(B) 48 .
(C) 72
(D) 6 .


Problem 10:

Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a twice differentiable function such that $\frac{d^{2} f(x)}{d x^{2}}$ is positive for all $x \in \mathbb{R}$, and suppose $f(0)=1, f(1)=4$. Which of the following is not a possible value of $f(2)$ ?
(A) 7 .
(B) 8 .
(C) 9 .
(D) $10$


Problem 11:

Let, $f(x)=e^{-|x|}, x \in \mathbb{R}$,

and $g(\theta)=\int_{-1}^{1} f\left(\frac{x}{\theta}\right) d x, \theta \neq 0$

Then , $\lim _{\theta \rightarrow 0} \frac{g(\theta)}{\theta}$

(A) equals 0 .
(B) equals $+\infty$.
(C) equals 2 .
(D) does not exist.

Problem 12:

The number of different ways to colour the vertices of a square $P Q R S$ using one or more colours from the set \{Red, Blue, Green, Yellow \}$, such that no two adjacent vertices have the same colour is
(A) 36 .
(B) 48 .
(C) 72 .
(D) 84 .

Problem 13:

Define $a=p^{3}+p^{2}+p+11$ and $b=p^{2}+1$, where $p$ is any prime number. Let $d=g c d(a, b)$. Then the set of possible values of $d$ is
(A) ${1,2,5}$.
(B) ${2,5,10}$.
(C) ${1,5,10}$.
(D) ${1,2,10}$.

Problem 14:

Consider all $2 \times 2$ matrices whose entries are distinct and taken from the set $\{1,2,3,4\}$. The sum of determinants of all such matrices is
(A) 24 .
(B) 10 .
(C) 12 .
(D) 0 .


Problem 15:

Let $a, b, c$ and $d$ be four non-negative real numbers where $a+b+c+d= 1$. The number of different ways one can choose these numbers such that $a^{2}+b^{2}+c^{2}+d^{2}=\max \{a, b, c, d\}$ is
(A) 1 .
(B) 5 .
(C) 11 .
(D) 15 .

Problem 16:

The polynomial $x^{4}+4 x+c=0$ has at least one real root if and only if
(A) $c<2$.
(B) $c \leq 2$.
(C) $c<3$.
(D) $c \leq 3$.

problem 17:

The number of all integer solutions of the equation $x^{2}+y^{2}+x-y=$ 2021 is
(A) 5 .
(B) 7 .
(C) 1 .
(D) $0 .$

Problem 18:

The number of different values of $a$ for which the equation $x^{3}-x+a=$ 0 has two identical real roots is
(A) 0 .
(B) 1 .
(C) $2 .$
(D) 3 .


Problem 19:

Suppose $f(x)$ is a twice differentiable function on $[a, b]$ such that $f(a)=0=f(b)$

and $x^{2} \frac{d^{2} f(x)}{d x^{2}}+4 x \frac{d f(x)}{d x}+2 f(x)>0$ for all $x \in(a, b)$

Then,

(A) $f$ is negative for all $x \in(a, b)$.
(B) $f$ is positive for all $x \in(a, b)$.
(C) $f(x)=0$ for exactly one $x \in(a, b)$.
(D) $f(x)=0$ for at least two $x \in(a, b)$.

Problem 20:

Consider the following two subsets of $\mathbb{C}$ :

$A=\{\frac{1}{z}:|z|=2\}$ and $B=\{\frac{1}{z}:|z-1|=2\} .$

Then ,

(A) $A$ is a circle, but $B$ is not a circle.
(B) $B$ is a circle, but $A$ is not a circle.
(C) $A$ and $B$ are both circles.
(D) Neither $A$ nor $B$ is a circle.

Problem 21:

For a positive integer $n$, the equation

$$x^{2}=n+y^{2}, \quad x, y$$ integers

does not have a solution if and only if

(A) $n=2$.
(B) $n$ is a prime number.
(C) $n$ is an odd number.
(D) $n$ is an even number not divisible by 4 .

problem 22:

Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be any twice differentiable function such that its second
derivative is continuous and $\frac{d f(x)}{d x} \neq 0$ for all $x \neq 0$.

If $\lim _{x \rightarrow 0} \frac{f(x)}{x^{2}}=\pi$, then ,

(A) for all $x \neq 0, \quad f(x)>f(0)$.
(B) for all $x \neq 0, \quad f(x)0$

(C) for all $x, \quad \frac{d^{2} f(x)}{d x^{2}}>0$
(D) for all $x, \quad \frac{d^{2} f(x)}{d x^{2}}<0$.

Problem 23:

Let us denote the fractional part of a real number $x$ by ${x}$ (note:
${x}=x-[x]$ where $[x]$ is the integer part of $x$ ). Then,

$$\lim _{n \rightarrow \infty}\{(3+2 \sqrt{2})^{n}\}$$

(A) equals 0.
(D) equals 1 .
(C) equals $\frac{1}{2}$.
(D) does not exist.

Problem 24:

Let,

$$p(x)=x^{3}-3 x^{2}+2 x, x \in \mathbb{R}$$

$f_{0}(x)= \begin{cases}\int_{0}^{x} p(t) d t, & x \geq 0 \ -\int_{x}^{0} p(t) d t, & x<0\end{cases}$,

$f_{1}(x)=e^{f_{0}(x)}, \quad f_{2}(x)=e^{f_{1}(x)}, \quad \ldots \quad, f_{n}(x)=e^{f_{n-1}(x)}$

How many roots does the equation $\frac{d f_{n}(x)}{d x}=0$ have in the interval $(-\infty, \infty) ?$

(A) 1 .
(B) 3 .
(C) $n+3$.
(D) $3 n$.

Problem 25:

For $0 \leq x<2 \pi$, the number of solutions of the equation

$\sin ^{2} x+2 \cos ^{2} x+3 \sin x \cos x=0$ is

(A) 1 .
(B) 2 .
(C) 3 .
(D) 4 .

Problem 26:
Let $f: \mathbb{R} \rightarrow[0, \infty)$ be a continuous function such that

$f(x+y)=f(x) f(y)$

for all $x, y \in \mathbb{R}$. Suppose that $f$ is differentiable at $x=1$ and

$\left.\frac{d f(x)}{d x}\right|_{x=1}=2 .$

Then, the value of $f(1) \log _{e} f(1)$ is

(A) $e$.

(B) 2 .

$(\mathrm{C}) \log _{e} 2$

(D) 1.

Problem 27:

The expression $\sum_{k=0}^{10} 2^{k} \tan \left(2^{k}\right)$ equals

(A) $\cot 1+2^{11} \cot \left(2^{11}\right)$
(B) $\cot 1-2^{10} \cot \left(2^{10}\right)$.
(C) $\cot 1+2^{10} \cot \left(2^{10}\right)$.
(D) $\cot 1-2^{11} \cot \left(2^{11}\right)$.

Problem 28:

If the maximum and minimum values of $\sin ^{6} x+\cos ^{6} x$, as $x$ takes all

real values, are $a$ and $b$, respectively, then $a-b$ equals

(A) $\frac{1}{2}$.

(B) $\frac{2}{3}$.

(C) $\frac{3}{4}$.

(D) 1 .

Problem 29:

If two real numbers $x$ and $y$ satisfy $(x+5)^{2}+(y-10)^{2}=196$, then the minimum possible value of

$x^{2}+2 x+y^{2}-4 y$ is

(A) $271-112 \sqrt{5}$.
(B) $14-4 \sqrt{5}$.
(C) $276-112 \sqrt{5}$.
(D) $9-4 \sqrt{5}$.

Problem 30:

Define $f: \mathbb{R} \rightarrow \mathbb{R}$ by

$f(x)= \begin{cases}(1-\cos x) \sin \left(\frac{1}{x}\right), & x \neq 0, \ 0, & x=0 .\end{cases}$,

Then,

(A) $f$ is discontinuous.
(B) $f$ is continuous but not differentiable.
(C) $f$ is differentiable and its derivative is discontinuous.
(D) $f$ is differentiable and its derivative is continuous.

More Important Resources

ISI B.Stat B.Math 2021 Subjective Paper | Problems & Solutions

In this post, you will find ISI B.Stat B.Math 2021 Subjective Paper with Problems and Solutions. This is a work in progress, so the solutions and discussions will be uploaded soon. You may share your solutions in the comments below.

[Work in Progress]

Problem 1:

There are three cities each of which has exactly the same number of citizens, say $n$. Every citizen in each city has exactly a total of $n+1$ friends in the other two cities. Show that there exist, three people, one from each city, such that they are friends. We assume that friendship is mutual (that is, a symmetric relation).

Problem 2:

Let $f: \mathbb{Z} \rightarrow \mathbb{Z}$ be a function satisfying $f(0) \neq 0=f(1)$, Assume also that $f$ satisfies equations $(\mathrm{A})$ and $(\mathrm{B})$ below.


$f(x y)=f(x)+f(y)-f(x) f(y)$ ..... (A)

$f(x-y) f(x) f(y)=f(0) f(x) f(y)$ .... (B)


(i) Determine explicitly the set ${f(a): a \in \mathbb{Z}}$.
(ii) Assuming that there is a non-zero integer $a$ such that $f(a) \neq 0$, prove that the set ${b: f(b) \neq 0}$ is infinite.

Problem 3:

Prove that every positive rational number can be expressed uniquely as a finite sum of the form
$$
a_{1}+\frac{a_{2}}{2 !}+\frac{a_{3}}{3 !}+\cdots+\frac{a_{n}}{n !}
$$
where $a_{n}$ are integers such that $0 \leq a_{n} \leq n-1$ for all $n>1$.

Problem 4:

Let $g:(0, \infty) \rightarrow(0, \infty)$ be a differentiable function whose derivative is continuous, and such that $g(g(x))=x$ for all $x>0$. If $g$ is not the identity function, prove that $g$ must be strictly decreasing.

Problem 5:

Let $a_{0}, a_{1}, \cdots, a_{19} \in \mathbb{R}$ and $P(x) = x^{20} + \sum_{i=0}^{19} a_{i}x^{i}, x \in \mathbb{R}$

If $P(x)=P(-x)$ for all $x \in \mathbb{R}$ and $P(k)=k^{2}$ for $k=0,1,2,...,9$

then find

limx→0P(x)sin2x

Problem 6:

If a given equilateral triangle $\Delta$ of side length a lies in the union of five equilateral triangles of side length $b$, show that there exist four equilateral triangles of side length $b$ whose union contains $\Delta$.

Problem 7:

Let $a, b, c$ be three real numbers which are roots of a cubic polynomial, and satisfy $a+b+c=6$ and $a b+b c+a c=9 .$ Suppose $a<b<c$, Show that $0<a<1<b<3<c<4$

Solution:

Problem 8:

A pond has been dug at the Indian Statistical Institute as an inverted truncated pyramid with a square base (see figure below). The depth of the pond is $6 \mathrm{~m}$. The square at the bottom has side length $2 \mathrm{~m}$ and the top square has a side length $8 \mathrm{~m}$. Water is filled in at a rate of $\frac{19}{3}$ cubic meters per hour. At what rate is the water level rising exactly 1 hour after the water started to fill the pond?

ISI B.Stat B.Math  2021 Subjective Problem 8

More Important Resources

CMI Entrance 2019 Problem from Transformation Geometry

Let's discuss a problem from CMI Entrance Exam 2019 based on the Inscribed Angle Theorem or Central Angle Theorem and Transformation Geometry.

The Problem:

Let $A B C D$ be a parallelogram. Let 'O' be a point in its interior such that $\angle A D B+\angle D O C=180^{\circ}$. Show that $\angle O D C=\angle O B C$.

The Solution:

Some useful resources:

Rational Root Theorem Proof Explanation | Learn with Cheenta

In this post, we will be learning about the Rational Root Theorem Proof. It is a great tool from Algebra and is useful for the Math Olympiad Exams and ISI and CMI Entrance Exams.

So, here is the starting point....

$a_{n} x^{n}+a_{n-1} x^{n-1}+\ldots+a_{2} x^{2}+a_{1} x+a_{0}$

This polynomial has certain properties.

1. The coefficients are all integers. That means, $a_{n}$, $a_{n-1}$, $\ldots a_{0}$ are all integers.

2. $a_{n}$, $a_{0} \neq 0$.

Now, we are interested to find out if this equation:

$a_{n} x^{n}+a_{n-1} x^{n-1}+\ldots+a_{2} x^{2}+a_{1} x+a_{0}$ = 0 has a rational root.

So, here is a question:

Is there a rational number p over q that satisfies this equation?

Before we even go into solving this one or rather showing you what the rational root theorem is all about, think about the power of this theorem.

Because there are literally infinitely many numbers which are called rational numbers which are of the form p over q where p is an integer and q is an integer and we often assume that the HCF of p and q is 1. So, you are commenting on infinity in some sense. You are saying something about infinitely many numbers. That's always powerful!

Now, let's learn it step by step:

If p/q is a solution or root, then let's plugin p/q in the equation $a_{n} x^{n}+a_{n-1} x^{n-1}+\ldots+a_{1} x+a_{0}$ = 0

Now, we get:

$a_{n}\left(\frac{p}{q}\right)^{n}+a_{n-1}\left(\frac{p}{q}\right)^{n-1}+\ldots+a_{1}\left(\frac{p}{q}\right)+a_{0}$ = 0

Multiplying both sides by $q^{n}$,

$a_{n} p^{n}+a_{n-1} p^{n-1} q+\ldots+a_{1} p q^{n-1}+a_{0} q^{n}$ = 0

Moving $a_{0} q^{n}$ to R.H.S,

$a_{n} p^{n}+a_{n-1} p^{n-1} q+\ldots+a_{1} p q^{n-1}$ = $-a_{0} q^{n}$

Taking p common from the L.H.S, we have:

$p\left(a_{n} p^{n-1}+a_{n-1} p^{n-2} q+\ldots+a_{1} q^{n-1}\right)$ = $-a_{0} q^{n}$

Notice, that the L.H.S is divisible by p, so, we understand that the R.H.S is also divisible by p.

That means p divides $-a_{0} q^{n}$

Now, remember that the H.C.F p over q is 1. So, p cannot divide $q^{n}$.

That means p divides $a_{0}$.

So, similarly, we can prove that q divides $a_{n}$. (Try this out yourself)

Caution: If p divides $a_{0}$ and q divides $a_{n}$, that does not automatically mean p/q is a root.

So, you have to plug in and check and if you have checked all possible combinations of them and none of them actually produced a zero, then it's very simple. It does not have a rational root.

We hope the Rational Root Theorem Proof is now clear to you. You can also watch the video tutorial from the link given below.

Watch the Video Tutorial


Some Important Resources for you

ISI Entrance TOMOTO Subjective 89 - Complex Numbers

An interesting problem based on complex numbers and their inversion. This is a Subjective Problem 89 from the Test of Mathematics Book, highly recommended for the ISI and CMI Entrance Exams.

Let's check out the problem and solutions in two episodes:

Useful Resources

How to prepare for CMI Data Science Examination?

ISI MStat Past Year Question & Sample Papers - Download Pdfs

We have compiled all the Pdfs of the previous year's question papers and sample papers. This is a great resource for your ISI MStat Entrance Exam Preparation.

ISI MStat 2020 Question Paper Pdf

ISI MStat 2019 Question Paper Pdf

ISI MStat 2018 Question Paper Pdf

ISI MStat 2017 Question Paper Pdf

ISI MStat 2016 Question Paper Pdf

Sample Papers for ISI MStat

These Sample Papers are not actual papers of ISI M.Stat. However, they are a great resource for your ISI MStat Entrance Exam preparation.

2015 Sample Papers

2014 Sample Papers

2013 Sample Papers

2012 Sample Papers

2011 Sample Papers

2010 Sample Papers

2009 Sample Papers

2008 Sample Papers

2007 Sample Papers

2006 Sample Papers

2005 Sample Papers

2004 Sample Papers

You may find solutions to some of the problems here.

ISI MStat PSA Answer Keys and Solutions

This post contains ISI MStat PSA Answer Keys and Solutions of the previous year's Entrance Exams. Check them with your solutions.

ISI MStat PSA 2021

NumberAnswer Key
1A
2B
3C
4B
5C
6A
7C
8B
9D
10B
11A
12B
13A
14C
15D
16C
17B
18A
19D
20A
21B
22C
23D
24C
25D
26B
27A
28C
29A
30B

Check the Hints of the ISI MStat PSA 2021.

ISI MStat PSA 2020

NumberAnswer Key
1C
2D
3A
4B
5A
6A
7C
8A
9A
10C
11A
12B
13C
14B
15B
16C
17D
18B
19B
20C
21C
22B
23A
24B
25D
26B
27D
28D
29B
30C

ISI MStat PSA 2019

NumberAnswer Key
1B
2B
3A
4C
5B
6C
7B
8B
9A
10D
11B
12B
13D
14D
15C
16A
17A
18D
19A
20C
21C
22A
23B
24D
25C
26C
27B
28B
29B
30A

ISI MStat PSA 2018

NumberAnswer Key
1D
2B
3D
4C
5B
6A
7A
8C
9D
10B
11B
12D
13B
14C
15C
16B
17B
18C
19A
20B
21C
22D
23A
24C
25B
26D
27D
28C
29D
30B

ISI MStat PSA 2017

NumberAnswer Key
1A
2C
3C
4C
5A
6A
7D
8D
9D
10A
11C
12A
13C
14C
15C
16B
17D
18B
19C
20B
21D
22D
23D
24C
25B
26D
27C
28B
29D
30C

ISI MStat PSA 2016

NumberAnswer Key
1C
2A
3B
4C
5D
6A
7A
8D
9A
10B
11B
12C
13A
14C
15C
16B
17D
18C
19A
20A
21C
22D
23D
24A
25B
26B
27B
28D
29C
30B

Some Useful Resources

Prepare for Math Kangaroo Competition with Cheenta

Math Kangaroo Competition is an International Mathematical Competition for kids of graded 1 to 12. It is also known as : "International Mathematical Kangaroo" or "Kangourou sans frontières" in French. This competition focus on the logical ability of the kids rather than their grip on learning Math formulas.

Some Interesting Facts on Math Kangaroo:

How to Participate?

Three types of Registration are available for the students. These include:

Exam Format:

Prepare for Math Kangaroo with Cheenta. Know how?

Cheenta offers Advanced Mathematics Classes for various national and international competitions like the Indian National Mathematical Olympiad (INMO), American Mathematical Competitions (AMC), Singapore Mathematics Olympiad (SMO), Australian Mathematics Olympiad, etc and Entrance Exams by Indian Statistical Institute (B.Stat & B.Math), Chennai Mathematical Institute, TIFR, etc. The one-year program at Cheenta includes: