Skip to main content

Number Theory is my bias wrecker

Welcome Back to mah blog!

I thought I should revise Number theory and solve problems of IOQM level! 

Also, NT is definitely my bias wrecker ( Kpop term used to describe the second favourite which has huge chances to become your favourite!)

Problem 1 (2019 AMC 12A): For some positive integer $k$, the repeating base-$k$ representation of the (base-ten) fraction $\frac{7}{51}$ is $0.23_k = 0.232323\dots_k .$ What is $k$?

Solution: Note that $$ 0.232323\dots_k= \frac{ 2}{k}+\frac{3}{k^2}+\frac{2}{k^2}+\frac{3}{k^4}\dots$$

$$= \frac{2}{k}+\frac{2}{k^3}+\dots + \frac{3}{k^2}+\frac{3}{k^4}+\dots $$

$$ = \frac{2/k+3/k^2}{1-\frac{1}{k^2}}=\frac{7}{51}\implies k= 16.$$

Problem 2[ AIME 2008 II]: There exist $r$ unique nonnegative integers $n_1 > n_2 > \cdots > n_r$ and $r$ integers $a_k$ ($1\le k\le r$) with each $a_k$ either $1$ or $- 1$ such that $$a_13^{n_1} + a_23^{n_2} + \cdots + a_r3^{n_r} = 2008.$$ Find $n_1 + n_2 + \cdots + n_r$.

Solution: Note that $$\overline{2008}_{10} = \overline{2202101}_{3}.$$ And replacing $$2\cdot 3^k=3^{k+1}-3^k.$$ We get $$2008= 1+3^2-3^3+3^4-3^5+3^6-3^6+3^7=1+3^2-3^3+3^4-3^5+3^7$$

So, we get $\boxed{21}$ as the answer.


Problem 3: Determine the smallest positive integer $n$ which satisfies the congruence

$$n + n^{-1}\equiv 25 \pmod 143.$$

Solution: Note that, $$ \frac{1}{n}+n\equiv 25 \pmod 143 $$

$$ \implies n^2+1-25n\equiv 0\pmod 143$$

$$ \implies n^2+144-25n \equiv 0\pmod 143$$

$$\implies n^2-25n+144=(n-16)(n-9)\pmod 143$$

So $n\le 9,$ also $n<9$ doesn't work. So $n=\boxed{9}.$


Problem 4: Show that there are no integers $a, b, c$ for which $a^2 + b^2 - 8c = 6.$

Proof: Take $mod 8.$

 

Problem 5: Show that $a^{p(p-1)}\equiv 1 \mod p^2$

Proof: It's true by euler's theorem, so let's not use that.

We proceed the same way, we prove euler's theorem :P

$$a\cdot 2a \cdot  3a\dots, p-1\cdot a \cdot  p+1\cdot a \dots (p^2-1) \cdot a \equiv 1\cdot 2\cdot \dots (p^2-1)\mod p^2$$

$$\implies a^{p(p-1}\equiv 1\mod p^2$$ 


Another way is to use the fact that $$a^{p-1}\equiv 1\mod p\implies a^{p-1}\equiv 1, p+1, 2p+1,\dots p(p-1)+1\mod p^2$$ 

So $$a^{p(p-1)}\equiv 1^p, (p+1)^p,\dots , (p(p-1))^p \mod p^2$$

So $$a^{p(p-1)}\equiv 1\mod p^2$$


Problem 6 [ Math prize 2009]: When the integer $ {\left(\sqrt{3} + 5\right)}^{103} - {\left(\sqrt{3} - 5\right)}^{103}$ is divided by 9, what is the remainder?

Solution: Note that $$ {\left(\sqrt{3} + 5\right)}^{103} - {\left(\sqrt{3} - 5\right)}^{103}={\left(\sqrt{3} + 5\right)}^{103}+{\left(5-\sqrt{3} \right)}^{103}$$

$$=2\left( 5^{103}+\binom{103}{2}5^{101}\cdot 3+\dots +3^{51}\right)\equiv 2\left( 5^{103}+\binom{103}{2}5^{101}\cdot 3 \right)\equiv \boxed{1}\mod 9. $$


Problem 7[ 2016 CMIMC]: Determine the smallest positive prime $p$ which satisfies the congruence

$$p+ p^{-1}\equiv 25 \pmod 143.$$

Solution: We know that 

$$(p-9)(p-16)\equiv 0\mod 11\cdot 13$$ 

Then by CRT $$(p-9)(p-16)\equiv 0\mod 11\implies 9, 5\mod 11$$

$$(p-9)(p-16)\equiv 0\mod 13\implies 9,3 \mod 13$$

So the solutions are $$9, 16, 42, 126 \mod 143.$$ The smallest is $\boxed{269}.$


Problem 8: Find all primes $p$ such that $p$ divides $2^p + 1.$

Solution: Note that $2^p+1\equiv 3\mod p\implies p=3$


Problem 9[ Wilson theorem]: Prove that if $p$ is a prime then $(p - 1)! \equiv -1 \pmod p.$

Proof: It's pretty well known, but I will write for myself. We use the fact that only $1,p-1$ are self inverses of itself. Rest all the numbers have a unique and distinct inverse, forming pair whose product is $1\mod p.$ So

$$2\cdot 3\cdot 4\dots p-2\equiv 1\mod p\implies 1\cdot 2\cdot 3\cdot 4\dots p-1\equiv p-1\mod p $$


Problem 10[ 1989 IMO P5]: Prove that for each positive integer $ n$ there exist $ n$ consecutive positive integers none of which is an integral power of a prime number.

Proof: We consider $k!+2, k!+3,\dots k!+n+1$ and take $k>>>>>n.$ Then

For any $2\le a\le n+1,$ $k!+a=a(k!/a+1)$ but $a|k!/a\implies $ two distinct prime factors divide $k!+a.$


Problem 11[Simpler CMIMC 2016]: Define a tasty residue of $n$ to be an integer

$1 \le a \le  n$ such that there exists an integer $m > 1$ satisfying $a^m \equiv a (mod n). Find

the number of tasty residues of prime $p.$

Solution: It's $\phi{p}+1$ as $$a^{m}-a\equiv 0\mod p\implies p|a , p|a^{m-1}-1$$ 


Problem 12[CMIMC 2016]: Define a tasty residue of $n$ to be an integer

$1 \le a \le  n$ such that there exists an integer $m > 1$ satisfying $a^m \equiv a (mod n). Find

the number of tasty residues of prime $2016.$

Solution: $2016= 2^5\cdot 3^2 \cdot 7$

We know that for any prime $p$ dividing $a^m-a$ we get $\phi{p}+1$ values of $a$ satisfying. 

By CRT, we get $(\phi{2^5}+1)(\phi{3^2}+1)(\phi{7}+1)=\boxed{833}$ values. 


Problem 13[ 2019 AIME P1]: Find the least odd prime factor of $2019^8 + 1.$

Solution: Since $$p|2019^8+1\implies p|2019^{16}-1\implies \phi{p}|16 \implies ord_p(2019)=16|\phi{p-1}$$

Clearly, $p=17$ doesn't work, and $p=97$ work.


Problem 14[USAMO]:Suppose that the set $\{1, 2, \dots  , 1998\}$ has been parti-

tioned into disjoint pairs $\{a_i , b_i \} (1 ≤\le i \le 999)$ so that for all $i$, $|a_i - b_i |$ equals $1$ or $6.$

Prove that the sum

$$|a_1 - b_1 | + |a_2 - b_2 | + \dots + |a_{999} − b_{999} |$$

ends in the digit $9$.

Proof: Note we just have to show that the answer is $-1 \pmod {10}$. We will show that

the answer is $1 \pmod 2  , 4  \pmod 5$ .

Note that $a_i - b_i$ and $a_i + b_i$ have the same parity.

So the sum is $1+2+\dots +1998 \pmod 2 \equiv  1 \pmod 2 .$

And $|a_i - b_i |$ is always $1  \pmod 5$  . Hence the sum is $1\cdot 999\equiv 4\pmod 5 $ .

By CRT we are done.


So yeee! Hope you have a nice day!

Sunaina 💜





Comments

  1. Thanks a lot for posting ioqm level problems!

    ReplyDelete
  2. Nice!
    Also try All Russian MO 2014 G9 P1,All Russsian MO 2015 G11P?(Forgot the problem number but pretty sure that the year is correct),2018 ARO G10 P4

    For more beautiful NT probs

    ReplyDelete
    Replies
    1. hey! Thanks for commenting! I will try those! Actually I have an upcoming post, where I am going to share ARMO problems! So really thankyou!

      Delete

Post a Comment

Popular posts from this blog

Geometry ( Finally!!!)

 This is just such an unfair blog.  Like if one goes through this blog, one can notice how dominated  Algebra is!! Like 6 out of 9 blog post is Algebra dominated -_- Where as I am not a fan of Algebra, compared to other genres of Olympiad Math(as of now). And this was just injustice for Synthetic Geo. So this time , go geo!!!!!!!!!!!  These problems are randomly from A Beautiful Journey through Olympiad Geometry.  Also perhaps I will post geo after March, because I am studying combi.  Problem:  Let $ABC$ be an acute triangle where $\angle BAC = 60^{\circ}$. Prove that if the Euler’s line of $\triangle ABC$ intersects $AB$ and $AC$ at $D$ and $E$, respectively, then $\triangle ADE$ is equilateral. Solution:  Since $\angle A=60^{\circ}$ , we get $AH=2R\cos A=R=AO$. So $\angle EHA=\angle DOA.$ Also it's well known that $H$ and $O $ isogonal conjugates.$\angle OAD =\angle EAH.$ By $ASA$ congruence, we get $AE=AD.$ Hence $\triangle ADE$ is equilateral....

Just spam combo problems cause why not

This post is mainly for Rohan Bhaiya. He gave me/EGMO contestants a lot and lots of problems. Here are solutions to a very few of them.  To Rohan Bhaiya: I just wrote the sketch/proofs here cause why not :P. I did a few more extra problems so yeah.  I sort of sorted the problems into different sub-areas, but it's just better to try all of them! I did try some more combo problems outside this but I tried them in my tablet and worked there itself. So latexing was tough. Algorithms  "Just find the algorithm" they said and they died.  References:  Algorithms Pset by Abhay Bestrapalli Algorithms by Cody Johnson Problem1: Suppose the positive integer $n$ is odd. First Al writes the numbers $1, 2,\dots, 2n$ on the blackboard. Then he picks any two numbers $a, b$ erases them, and writes, instead, $|a - b|$. Prove that an odd number will remain at the end.  Proof: Well, we go $\mod 2$. Note that $$|a-b|\equiv a+b\mod 2\implies \text{ the final number is }1+2+\dots ...

IMO 2023 P2

IMO 2023 P2 Well, IMO 2023 Day 1 problems are out and I thought of trying the geometry problem which was P2.  Problem: Let $ABC$ be an acute-angled triangle with $AB < AC$. Let $\Omega$ be the circumcircle of $ABC$. Let $S$ be the midpoint of the arc $CB$ of $\Omega$ containing $A$. The perpendicular from $A$ to $BC$ meets $BS$ at $D$ and meets $\Omega$ again at $E \neq A$. The line through $D$ parallel to $BC$ meets line $BE$ at $L$. Denote the circumcircle of triangle $BDL$ by $\omega$. Let $\omega$ meet $\Omega$ again at $P \neq B$. Prove that the line tangent to $\omega$ at $P$ meets line $BS$ on the internal angle bisector of $\angle BAC$. Well, here's my proof, but I would rather call this my rough work tbh. There are comments in the end! Proof Define $A'$ as the antipode of $A$. And redefine $P=A'D\cap (ABC)$. Define $L=SP\cap (PDB)$.  Claim1: $L-B-E$ collinear Proof: Note that $$\angle SCA=\angle SCB-\angle ACB=90-A/2-C.$$ So $$\angle SPA=90-A/2-C\implies \ang...

My experiences at EGMO, IMOTC and PROMYS experience

Yes, I know. This post should have been posted like 2 months ago. Okay okay, sorry. But yeah, I was just waiting for everything to be over and I was lazy. ( sorry ) You know, the transitioning period from high school to college is very weird. I will join CMI( Chennai Mathematical  Institue) for bsc maths and cs degree. And I am very scared. Like very very scared. No, not about making new friends and all. I don't care about that part because I know a decent amount of CMI people already.  What I am scared of is whether I will be able to handle the coursework and get good grades T_T Anyways, here's my EGMO PDC, EGMO, IMOTC and PROMYS experience. Yes, a lot of stuff. My EGMO experience is a lot and I wrote a lot of details, IMOTC and PROMYS is just a few paras. Oh to those, who don't know me or are reading for the first time. I am Sunaina Pati. I was IND2 at EGMO 2023 which was held in Slovenia. I was also invited to the IMOTC or International Mathematical Olympiad Training Cam...

Problems I did this week [Jan8-Jan14]

Yeyy!! I am being so consistent with my posts~~ Here are a few problems I did the past week and yeah INMO going to happen soon :) All the best to everyone who is writing!  I wont be trying any new problems and will simply revise stuffs :) Some problems here are hard. Try them yourself and yeah~~Solutions (with sources) are given at the end! Problems discussed in the blog post Problem1: Let $ABC$ be a triangle whose incircle $\omega$ touches sides $BC, CA, AB$ at $D,E,F$ respectively. Let $H$ be the orthocenter of $DEF$ and let altitude $DH$ intersect $\omega$ again at $P$ and $EF$ intersect $BC$ at $L$. Let the circumcircle of $BPC$ intersect $\omega$ again at $X$. Prove that points $L,D,H,X$ are concyclic. Problem 2: Let $ ABCD$ be a convex quadrangle, $ P$ the intersection of lines $ AB$ and $ CD$, $ Q$ the intersection of lines $ AD$ and $ BC$ and $ O$ the intersection of diagonals $ AC$ and $ BD$. Show that if $ \angle POQ= 90^\circ$ then $ PO$ is the bisector of $ \angle AOD$ ...

Solving Random ISLs And Sharygin Solutions! And INMO happened!!

Some of the ISLs I did before INMO :P  [2005 G3]:  Let $ABCD$ be a parallelogram. A variable line $g$ through the vertex $A$ intersects the rays $BC$ and $DC$ at the points $X$ and $Y$, respectively. Let $K$ and $L$ be the $A$-excenters of the triangles $ABX$ and $ADY$. Show that the angle $\measuredangle KCL$ is independent of the line $g$ Solution: Note that $$\Delta LDK \sim \Delta XBK$$ and $$\Delta ADY\sim \Delta XCY.$$ So we have $$\frac{BK}{DY}=\frac{XK}{LY}$$ and $$\frac{DY}{CY}=\frac{AD}{XC}=\frac{AY}{XY}.$$ Hence $$\frac{BK}{CY}=\frac{AD}{XC}\times \frac{XK}{LY}\implies \frac{BK}{BC}=\frac{CY}{XC}\times \frac{XK}{LY}=\frac{AB}{BC}\times \frac{XK}{LY} $$ $$\frac{AB}{LY}\times \frac{XK}{BK}=\frac{AB}{LY}\times \frac{LY}{DY}=\frac{AB}{DL}$$ $$\implies \Delta CBK\sim \Delta LDK$$ And we are done. We get that $$\angle KCL=360-(\angle ACB+\angle DKC+\angle BCK)=\angle DAB/2 +180-\angle DAB=180-\angle DAB/2$$ Motivation: I took a hint on this. I had other angles but I did...

Problems with meeting people!

Yeah, I did some problems and here are a few of them! I hope you guys try them! Putnam, 2018 B3 Find all positive integers $n < 10^{100}$ for which simultaneously $n$ divides $2^n$, $n-1$ divides $2^n - 1$, and $n-2$ divides $2^n - 2$. Proof We have $$n|2^n\implies n=2^a\implies 2^a-1|2^n-1\implies a|n\implies a=2^b$$ $$\implies 2^{2^b}-2|2^{2^a}-2\implies 2^b-1|2^a-1\implies b|a\implies b=2^c.$$ Then simply bounding. USAMO 1987 Determine all solutions in non-zero integers $a$ and $b$ of the equation $$(a^2+b)(a+b^2) = (a-b)^3.$$ Proof We get $$ 2b^2+(a^2-3a)b+(a+3a^2)=0\implies b = \frac{3a-a^2\pm\sqrt{a^4-6a^3-15a^2-8a}}{4}$$ $$\implies a^4-6a^3-15a^2-8a=a(a-8)(a+1)^2\text{ a perfect square}$$ $$\implies a(a-8)=k^2\implies a^2-8a-k^2=0\implies \implies a=\frac{8\pm\sqrt{64+4k^2}}{2}=4\pm\sqrt{16+k^2}. $$ $$ 16+k^2=m^2\implies (m-k)(m+k)=16.$$ Now just bash. USAMO 1988 Suppose that the set $\{1,2,\cdots, 1998\}$ has been partitioned into disjoint pairs $\{a_i,b_i\}$ ($1...

Orders and Primitive roots

 Theory  We know what Fermat's little theorem states. If $p$ is a prime number, then for any integer $a$, the number $a^p − a$ is an integer multiple of $p$. In the notation of modular arithmetic, this is expressed as \[a^{p}\equiv a{\pmod {p}}.\] So, essentially, for every $(a,m)=1$, ${a}^{\phi (m)}\equiv 1 \pmod {m}$. But $\phi (m)$ isn't necessarily the smallest exponent. For example, we know $4^{12}\equiv 1\mod 13$ but so is $4^6$. So, we care about the "smallest" exponent $d$ such that $a^d\equiv 1\mod m$ given $(a,m)=1$.  Orders Given a prime $p$, the order of an integer $a$ modulo $p$, $p\nmid a$, is the smallest positive integer $d$, such that $a^d \equiv 1 \pmod p$. This is denoted $\text{ord}_p(a) = d$. If $p$ is a primes and $p\nmid a$, let $d$ be order of $a$ mod $p$. Then $a^n\equiv 1\pmod p\implies d|n$. Let $n=pd+r, r\ll d$. Which implies $a^r\equiv 1\pmod p.$ But $d$ is the smallest natural number. So $r=0$. So $d|n$. Show that $n$ divid...

Number Theory Revise part 1

I thought to revise David Burton and try out some problems which I didn't do. It's been almost 2 years since I touched that book so let's see! Also, this set of problems/notes is quite weird since it's actually a memory lane. You will get to know on your own! I started with proving a problem, remembered another problem and then another and so on! It was quite fun cause all these questions were the ones I really wanted to solve! And this is part1 or else the post would be too long. Problem1: Prove that for $n\ge 1$  $$\binom{n}{r}<\binom{n}{r+1}$$ iff $0\le r\le \frac{n-1}{2}$ Proof: We show that $\binom{n}{r}<\binom{n}{r+1}$ for $0\le r\le \frac{n-1}{2}$ and use the fact that $$\binom{n}{n-r}=\binom{n}{r}$$ Note that $\binom{n}{r}= \frac{n!}{r!(n-r)!}, \binom{n}{r+1}=\frac{n!}{(r+1)!(n-r-1)!}$  Comparing, it's enough to show that $$\frac{1}{n-r}<\frac{1}{r+1}\text{ or show } n-r>r+1$$ which is true as $0\le r\le \frac{n-1}{2}$ Problem2: Show that the exp...

Let's complex bash Part 1

I have to learn complex bash. And almost everyone knows that I am notes taking girl so thought why not make a post on complex bash ( so that I don't get emotionally demotivated lol).😇 There wasn't any need for learning complex bash, but it was in my dream checklist i.e " To learn a bash." And since I am not loaded with exams, I think it's high time to learn Bash and new topics.  Also if anyone from the "anti-bash" community is reading, sorry in advance and R.I.P.  Notes:- 1. Complex numbers are of the form $z=a+ib,$ where $a$ and $b$ are real numbers and $i^2=-1.$ 2. In polar form, $z=r(\cos \theta+~~i\sin\theta)=~~re^{i\theta},$ where $r=~~|z|=~~\sqrt{a^2+b^2},$ which is called the magnitude. 3. Here we used euler's formula i.e $\cos \theta+~~i\sin\theta=~~e^{i\theta}.$ 4. The $\theta $ is called the argument of $z,$ denored $\arg z.$ ( $\theta$ can be considered in $\mod 360$ and it is  measured anti-clockwise). 5. The complex conjugate of $z$ is ...