How Siva S got into Purdue University for Ph.D. in Mathematics

How Sudev Satheesh got into IISER TVM after clearing JAM

How Sayantani Ghosh cracked RKMVERI M.Sc Math Entrance

How Aniruddha Bhattacharjee cracked M.Sc-Ph.D. Math Entrances

Best algorithm to calculate Pi - Part1

Author: Kazi Abu Rousan

$\pi$ is not just a collection of random digits. $\pi$ is a journey; an experience; unless you try to see the natural poetry that exists in $\pi$, you will find it very difficult to learn.

Today we will see a python code to find the value of $\pi $ up to $1,00,000$ within $3$ to $4$ second. We will be using Chudnovsky Algorithm, which is one of the fastest method to calculate the value of $\pi $. Using this in 14th August, 2021 $62.8$ trillion digits of $\pi $ was calculated. Can you imagine this?

This is based on Ramanujan's $\pi $ formula and was discovered in $1988$. Let's see the formula and how we are going to use that.

Chudnovsky Algorithm

The value of $\pi $ is given by,

$$\frac{1}{\pi } = 12\sum_{k=0}^{\infty } \frac{(-1)^k (6k)! (545140134k + 13591409)}{(3k)! (k!)^3(640320)^{3k+\frac{3}{2}}}$$

For proof visit here: Proof

Let's just take the first term of this series and see what it gives us.

Just the first term is this much accurate. Just thinking about it surprises me.

So, how are we going to write the code?, well for this blog, we are directly going to use above expression. In some later blog, we will see how to make this much more efficient. We are doing so, to show you guys how powerful this method is.

Let's Code

Let's start our coding. Note one thing. Normally, when we perform this sort of algorithm, mostly the error comes from the fractional part. To reduce this error, we have to increase the precision of our calculation. For this we will be using a special python library.

There are many libraries which can help us in this. Some of them are;

  1. Decimal
  2. mpmath
  3. gmpy2

Our good old math library cannot do that as it mostly returns IEEE-$754$ $64$-bit result, which is roughly $17 $ digits only.

Here we will be using Decimal library.

Let's now begin our code:

import math as mp
from decimal import *
def pi_chudn(n):
    getcontext().prec = n+50
    k=0
    pi_chud = 0
    while k<n:
        pi_chud+=(((Decimal(-1))**k ) * (Decimal(mp.factorial(6*k)))*(13591409 + 545140134*k))/Decimal((mp.factorial(3*k)*((mp.factorial(k))**3)*(640320**((3*k)+(Decimal(1.5))))))
        k+=1
    pi_chud = (Decimal(pi_chud) * 12)
    pi_chud = (Decimal(pi_chud**(-1)))
    return int(pi_chud*10**n)

exact_pi_val = str(31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989)
for n in range(1,1000):
    print(int(exact_pi_val[:n+1]))
    print(pi_chudn(n))
    is_true = (pi_chudn(n) == int(exact_pi_val[:n+1]))
    print("for n = ",n, " It is ",is_true)
    if is_true == False:
    	break

This have run this program up to $413$ terms of $\pi $ and belief we, each and every digit was correct (most chudnovsky's programs you will find in internet gives wrong value after $14-15$ digit).

The string exact_pi_val contains $1001$ correct digit of $\pi $. So, The program will itself check if the calculated $\pi $ value is right or wrong up to $1000$ digit.

Although it's slow. To calculate $400$ digits of $\pi $, it needs $4.177294731140137$ sec.

We can plot the number of digits and calculation time.

This is all for today. I have you have learnt something new.

IIT JAM Mathematics 2022: All you need to know to prepare for it

About IIT JAM Mathematics

IIT JAM Mathematics (MA) is considered one of the most sought-after master’s level competitive exams after BSc./B.Tech. Students can get direct admission into IITs and into IISC (upon clearing the interview). The IISER’s also take IIT JAM rank into account so all in all, it is a pretty important entrance if you are interested in higher mathematics.

IIT JAM Mathematics (MA) 2022: Important Details


Eligibility for IIT JAM MA 2022

To apply for admission to the Mathematics program, a candidate is required to qualify in the Mathematics Test Paper and also satisfy the Minimum Educational Qualifications (MEQs) and Eligibility Requirements (ERs) of the Academic Programme.

The Eligibility Requirements for IIT JAM 2022 is given below:

Check out the official website of IIT JAM for the Application procedure, detailed Eligibility Requirements (ER) and Minimum Educational Qualification (MEQ), application fee, etc: https://jam.iitr.ac.in/

Duration of the course

The duration of the M.Sc course for Mathematics course is 2 years.

Important Dates:

Admitting Institutes for IIT JAM Mathematics

Candidates can secure admission to the following colleges:

Cheenta is initiating an Open for All Math Camp for College Students and High School Passouts who really love Mathematics and want to pursue it for higher studies. 

To get free resources for your IIT JAM Mathematics 2022 Preparation, Register here.

Exam Pattern for IIT JAM Mathematics 2022

The JAM 2022 Examination for all the seven Test Papers will be carried out as ONLINE Computer Based Test (CBT) where the candidates will be shown the questions in a random sequence on a computer screen. This is how the Exam pattern for IIT JAM Mathematics 2020 will look like:

SectionType of QuestionsNumber of QuestionsMarks Distribution
AMultiple Choice Questions (MCQ)3010 questions of one mark each and 20 questions of two marks each
BMultiple Select Questions (MSQ)10Two marks each
CNumerical Answer Type (NAT)2010 questions of one mark each and 10 questions of two marks each
Total60100

The time duration of the Exam is 3 hours in total.

Marking scheme:

In all sections, questions not attempted will result in zero marks. In Section-A (MCQ), the wrong answer will result in negative marks. For each wrong answer to one-mark questions, the one-third mark will be deducted and similarly, for each wrong answer to two-mark questions, a two-third mark will be deducted. In Section-B (MSQ), there are no negative and no partial marking provisions. There is no negative marking in Section-C (NAT) as well.

Syllabus

The syllabus for IIT JAM MA includes:

Click here to get the full syllabus:- https://jam.iitr.ac.in/assets/syllabi/MA_Syllabi.pdf

The Open for All Math Camp gives an opportunity to students to learn live from the experts for free.

Don't miss this opportunity! Register here for free.

How to prepare for IIT JAM Mathematics Entrance 2021


Books for IIT JAM Mathematics (MA) Entrance

Books for Linear Algebra

Books for Abstract Algebra

Books for Real Analysis

Books for Vector Calculus and Differential Equation

Preparation Tips for IIT JAM MA 2022

Go through the syllabus:-

Learning about the syllabus is an essential part of preparation. This helps to have a better understanding of the preparation strategy and what topics to focus on. It saves you time as well.

Work on your concept and solve different questions:- 

Try to clear your concepts on each topic and practice questions based on that topic from different books. This way, you will be able to understand your understanding of the topic.

Solve Previous Papers:- 

This will help you know the exact difficulty level of the exam and prepare accordingly. Try to solve them in a time-bound manner. Check out some of the past year's problems available here.

Take Mock Tests:- 

Take Mock Tests to check your ability of problem-solving. If it is an online test, then it can help you know your preparation status in the competition. You will be able to know where you stand and what should be improved.

Track your progress:-

You should also track your progress. If something unimportant is stealing your time, recognize it and try to avoid it. Keep yourself surrounded by people who encourage you. Discuss your dreams and goals with them.

Take proper rest and believe in yourself:- 

It is the biggest myth that studying for long hours brings productivity to your work. There should be a routine with a proper work-rest balance and then you should ritually follow it. Also having low self-esteem can ruin your performance in exams.

150+ Students are already part of the Open for All Math Camp

Why are you leaving behind? Register here for free.

Prepare for IIT JAM Mathematics (MA) with Cheenta

Cheenta offers a full-year program for college students, willing to crack the IIT JAM Mathematics 2022 Entrance Exam. The program includes classes on Pre-College Mathematics, Real Analysis, Linear Algebra, Abstract Algebra & Vector Calculus. The classes for the full-year program includes:

  1. Two Group classes per week (conceptual and problem solving)
  2. Access to Cheenta Genius App
  3. Regular Quizzes and Assignments
  4. Access to the Doubt Clearing Group

Get a Trial Class now!

ISI M.MATH 2021 Subjective Question Paper with Solutions

This post contains the ISI M.Math 2021 Subjective Questions. It is a valuable resource for Practice if you are preparing for ISI M.Math. You can find some solutions here and try out others while discussing them in the comments below.

ISI M.Math 2021 Problem 1:

Let $M$ be a real $n \times n$ matrix with all diagonal entries equal to $r$ and all non-diagonal entries equal to $s$. Compute the determinant of $M$.

Solution

ISI M.Math 2021 Problem 2:

Let $F[X]$ be the polynomial ring over a field $F$. Prove that the rings $F[X] /\left\langle X^{2}\right)$ and $F[X] /\left\langle X^{2}-1\right\rangle$ are isomorphic if and only if the characteristic of $F$ is $2$

Solution

ISI M.Math 2021 Problem 3:

Let $C$ be a subset of $R$ endowed with the subspace topology. If every continuous real-valued function on $C$ is bounded, then prove that $C$ is compact.

ISI M.Math 2021 Problem 4:

Let $A=\left(a_{i j}\right)$ be a nonzero real $n \times n$ matrix such that $a_{i j}=0$ for $i \geq j$.
If $\sum_{i=0}^{k} c_{i} A^{i}=0$ for some $c_{i} \in \mathbb{R}$, then prove that $c_{0}=c_{1}=0$. Here
$A^{\prime}$ is the i-th power of $A$.

ISI M.Math 2021 Problem 5:

Let $g: \mathbb{R} \rightarrow \mathbb{R}$ be the function given by

$g(x)= \begin{cases}x \sin \left(\frac{1}{z}\right),& x \neq 0 \\ 0, & x=0\end{cases}$

Prove that $g(x)$ has a local maximum and a local minimum in the interval $\left(-\frac{1}{m}, \frac{1}{m}\right)$ for any positive integer $m$.

ISI M.Math 2021 Problem 6:

Fix an integer $n \geq 1$, Suppose that $n$ is divisible by distinct natural numbers $k_{1}, k_{2}, k_{3}$ such that

${gcd}\left(k_{1}, k_{2}\right)={gcd}\left(k_{2}, k_{3}\right)={gcd}\left(k_{3}, k_{1}\right)=1$

Pick a random natural number $j$ uniformly from the set $\{1,2,3, \ldots, n\}$. Let $A_{d}$ be the event that $j$ is divisible by $d$. Prove that the events $A_{k_{1}}, A_{k_{2}}, A_{k _{3}}$ are mutually independent.

ISI M.Math 2021 Problem 7:

Let $f:(0,1] \rightarrow[0, \infty)$ be a function. Assume that there exists $M \geq 0$ such that $\sum_{i=1}^{k} f\left(x_{i}\right) \leq M$ for all $k \geq 1$ and for all $x_{1}, \ldots, x_{k} \in[0,1]$. Show that the set $\{x \mid f(x) \neq 0\}$ is countable.

ISI M.Math 2021 Problem 8:

Let $G$ be a group having exactly three subgroups. Prove that $G$ is
cyclic of order $p^{2}$ for some prime $p$.

Solution

Other Useful Resources

What to do after 12th Maths | Best Colleges in India & Abroad

Problem on Inequality | ISI - MSQMS - B, 2018 | Problem 2a

Try this problem from ISI-MSQMS 2018 which involves the concept of Inequality.

INEQUALITY | ISI 2018| MSQMS | PART B | PROBLEM 2a


(a) Prove that if $x>0, y>0$ and $x+y=1,$ then $\left(1+\frac{1}{x}\right)\left(1+\frac{1}{y}\right) \geq 9$

Key Concepts


Algebra

Inequality

Numbers

Check The Answer


Answer: $xy \leq \frac{1}{4}$

ISI - MSQMS - B, 2018, Problem 2A

"INEQUALITIES: AN APPROACH THROUGH PROBLEMS BY BJ VENKATACHALA"

Try with Hints


We have to show that ,

$(1+\frac{1}{x})(1+\frac{1}{y}) \geq 9$

i.e $1+ \frac{1}{x} + \frac{1}{y} +\frac{1}{xy} \geq 9$

Since $x+y =1$

Therefore the above equation becomes $\frac{2}{xy} \geq 8$

ie $xy \leq \frac{1}{4}$

Now with this reduced form of the equation why don't you give it a try yourself,I am sure you can do it.

Applying AM $\geq$ GM on $x,y$

So you are just one step away from solving your problem,go on.............

Therefore, $\frac{x+y}{2} \geq (xy)^\frac{1}{2}$

$\Rightarrow \frac{1}{2} \geq (xy)^\frac{1}{2}$

Squaring both sides we get, $xy \leq \frac{1}{4}$

Hence the result follows.

Subscribe to Cheenta at Youtube


Data, Determinant and Simplex

This is a beautiful problem connecting linear algebra, geometry and data. Go ahead and delve into the glorious connection.

Problem

Given a matrix \( \begin{bmatrix}a & b \\c & d \end{bmatrix} \) with the constraint \( 1 \geq a, b, c, d \geq 0; a + b + c + d = 1\), find the matrix with the largest determinant.

Is there any statistical significance behind this result?

Prerequisites

Solution ( Geometrical )

Step 1

Take two vectors \( v = (a,c) and w = (b,d)\) such that their addition lies on \(v +w lies on x + y = 1\) line. Now, we need to find a pair of vectors {\(v, w\)}such that the area formed by these two vectors is maximum.

Triagles and vectors

Step 2

Rotate the parallelogram such that CF lies on the X - axis.

Now, observe that this new parallelogram has an area same as the initial one. Can you give a new parallelogram with a larger area?

Step 3

Just extend the vertices to the end of the simplex OAB. Observe that the new parallelogram has a larger area than the initial parallelogram. Is there any thing larger?

Triangles and Parallelograms

Step 4

Now, extend it to a rectangle. Voila! It has a larger area. Now therefore, given any non rectangular parallelogram we can find a rectangle with a larger area than the parallelogram. So, let's search in the region of rectangles. What do you guess is the answer?

Triangle and rectangle

Step 5

A Square!

Triangle and square

Let the rectangle has length \(x, y\) and area \(xy\). Now, observe that \(xy\) is maximized with respect to \(x+y = 1\) when \(x = y = \frac{1}{2}\). [Use AM - GM Inequality].

So, \(v = (0,\frac{1}{2}) \) and \( w = (\frac{1}{2},0) \) maximizes the determinant.

Challenge 1

Prove it using algebraic methods borrowed from this geometrical thinking. Your solution will be put upon here.

Challenge 2

Can you generalize this result for \( n \times n \) matrices? If, yes prove it. Just algebrify the steps.

Statistical Significance

Lung Cancer and Smoker Data

Data

Observe that that if, we divide every thing by 1000, we get a matrix.

So, the question is about association of Smoking and Lung Cancer. Given these 1000 individuals let's see how the distribution of the numbers result in what odd ratio?

For the categorical table data \( \begin{bmatrix}a & b \\c & d \end{bmatrix} \) the odd's ratio is defined as \(\frac{ad}{bc} = \frac{det(\begin{bmatrix}a & b \\c & d \end{bmatrix})}{bc} + 1\)

The log odd's ratio is defined as \( log(ad) - log(bc)\).

Data

Observe the above data, observe that Log Odd's Ratio is almost behaving like the determinant. When \( X = 1\) and \(X = 0\) depend on Y uniformly, no information of dependence is released. Hence, Log Odd's Ratio is 0 and so is the Determinant.

Try to understand, why the Log Odd's ratio is behaving same as Odd's Ratio?

\( log(x)\) is increasing and so is \(x\) hence, \(log(ad) - log(bc)\) must have the same nature as \(ad -bc\).

Share your ideas here. I will write in more details about this phenemenon.

Stay Tuned! Stay Blessed!