Norway Math Olympiad Question | You should be able to solve this!
ฝัง
- เผยแพร่เมื่อ 2 มิ.ย. 2023
- Some of the most important benefits of participating in math Olympiads include: Improving Problem-Solving Skills: Math Olympiads involve solving complex and challenging math problems. This helps students develop critical thinking and problem-solving skills, which are important for success in many fields.
Much simpler to just calculate 2^18 first, then minus 1. I don't see why 511*513 is any easier to calculate than 512*512.
It's far much easier to use the fact that 2^17 is 131072 (address of start of screen memory in a Sinclair QL), double it and subtract 1...
Exactly what i was thinking 😊
How are you going to calculate 2^18 though?
@@The_Real_Sensei
A well known value is 2^16 = 65536.
Or more inaccurately, it is well known to those of us who played with 8 bit micros, where 65536 = 64 old kb which is the maximum amount of memory an 8 bit processor with a 16 bit address bus (eg 6502, 6800, Z80, 8080) could access (directly).
@@The_Real_Sensei
Last night we were catching up on an Only Connect episode from 5 or 6 weeks ago. One sequence question was:
What comes 4th in the sequence: 65536256, 25616, 164
The answer was 42 as each "number" is made up of a number and its square root, the square root of one starting the next.
The first "number" 65536256 is 65536 (2^16) = 256^2 ((2^8)^2).
Just wanted to share a different approach:
2^18 - 1 = 2^10 x 2^2 x 2^6 - 1 = 1024 x 4 x 64 - 1 = 4096 x 64 = 262 144 - 1 = 262 143
@bangel7513no!!
or just 2^9*2^9-1=512x512-1 :P
@@makalaga56Yes, that’s more straightforward and even easier to calculate than 513x511.
Fuck dis shit
@bangel7513 only typo
As a computer enthusiast I remember powers of 2 up to 2^16 at least which is 65536. Then I multiply it by 4 and subtract 1.
So I am not the only one. 🙂
Excellent! My math brain told me 2^10 = 1024, then multiply by 256 and subtract one. Easy.
Same initial reasoning... But then 2^9 is like the max byte size times two which is 512, square that and subtract 1. Rather easy.
@@chrisw4562 that's what I did as well
Yes, if you remember 2^16 = 65536 then multiply by 4 and subtract 1 is quicker than the method in the video.
I literally multiplied 2 by itself 18 times and found the answer faster than her 💀💀
They probably wanted to see how you got to the solution. Just by multiplying 2 by 18 times is not enough for an actual solution.
@@boldibrown8533it is exactly the solution. Unless they stated that you needed to use something specific. Computing it is a way to solve
@@boldibrown8533 hahahaha. What? Sucessive multiplication is a solution just fine. Stop talking silly things.
@@samueldeandrade8535 the thing is, in an exam, its completely impractical. You don't time to waste. yes i might use it as a last resort but doing this method is much faster.
@@huntbat man, some people are very fast with multiplications. Also, calculating 2¹⁸-1 shouldn't even be in a test.
Children of the 8 bit era certainly know all the powers of 2 up to 16; So if you already know that 2^16 is 65536 you may as well go for the direct route. Either double it twice, or multiple by 4 (which ever you find easiest) and subtract 1.
@@vdamkyна 2 просто умножить...
@@vdamky
Technically we actually move the digits through the place value columns left (multiply) or right (divide). However, on paper it is easier to move the _decimal point_ than to shift the digits as we implicitly know the place value columns and it is the decimal point that is visible[1] which tells us where the place value columns apply to the number.
[1] If the decimal point is not visible (as the number is an integer) then it is taken to be after the last digit which is in the units place value column.
even starting from only 8bit 256 it takes shorter time, that was spent in the video
I'm one of them C64's 6502 assembler's magic limit was 65535 or 0xFFFF (next number 2^16).
65536*4-1
That's how I did it Paul!
The correct answer, in binary, is: 111111111111111111.
Thats big brain move
This is wrong answer
Mukundsir
No specific easy answer.
Now convert that to decimal.
Antora islam riya
2 to the 18th is 2 to the 16th times 4 (or 2 squared). Anyone with a computer brain knows 2 to the 16th is 65536 (good old computer memory and bits). So times 4 is 262144, subtract 1 = 262143. Everyone should be able to do this in the modern world in their head.
Wrong! You wrote a stupid comment. Everyone should *not* able to do this in the modern world in their head! The large majority should not be able to do it. Get educated about people and don't make foolish posts such as this.
I'm an software engineer and I still don't remember all the powers of two from the top of my head nor should I have to...
@@theyassinez1 Heresy! Blasphemer! Could not resist lol. I am old school, even know how to use a slide rule lol. It's amazing sometimes describing to some kids these days how the 8 bits are used in all the ASCII font tables. I love flipping a set of text into Ascii on them when they can't find an error and point out how that spot is not a 40 hence it's not a space, it's something else that merely displays as space like which is causing the data issue. They never think of that. They are so visual these days so dependent on all the code we wrote in the past to do everything for them. Sigh.
Agreed, however the idea is to be able to follow a process more than just express a result, I think.
@@theyassinez1As a software engineer you should know 2 to the 16 because it’s the size of a short.
Is there a reason why we would know what 2^9 is and not know what 2^18 is? That is really the essence of this problem.
Yes 2 to the 9 you can do in your head
@@davidbornstein9197 You are right. But than the essence of this problem is brute calculation. There is nothing elegant about it. Besides, the power to which a person can calculate an exponent is subjective. Mathematic solutions are most powerful when the method minimize or completely remove the need for brute force calculations.
U r right. It is very simple. 512 x 512 - 1 = 2,62,143
Simply do: 512 x 512 - 1 = 2,62,143
What is the point in beating around the bush?
You're in the internet land. You should know all the powers of 2, up until 10. Because 1024 is an important round number in the world of computer science. :-)
In 2^n, for n = 1, unit place digit is 2
For n = 2, unit palce is 4
For n = 3, unit place is 8
For n = 4, unit place is 6
This cycle of 2, 4, 8, 6 will repeat for every power of form 4m+1, 4m+2, 4m+3, 4m+4.
So if n = 18 it is of form 4m+2 so units place is 4, and subtracting 1 from it will give 3.
With the base numberof 2, it is easy to double the first at least10 - 12 times. And with pen and paper, you have no problem reaching 18. This is easily grinded out without fancy math shortcuts :)
Yeah, in fact this brute force solution may very well be the fastest to calculate as multiplying by 2 is easy.
Since there are many similar problems, most people probably know how to calculate them easily without making mistakes. You need not stick to the factorization formula. There are also concrete examples in this comment section. As a solution method, (1) decompose them into round numbers. That is, 2¹⁰ =1024=1000+24, 2⁹ =512=500+12, 2⁸ =256=250+6. (2) subtraction should be avoided, and addition should not carry over (no overlap of the same digits). It is unavoidable that there is a single overlap in this problem.
This is how we make an easy mathematics question into a complicated one
This cannot possibly be a math Olympiad question. This is way too easy.
It's Math in Norway - not in China or USA or Russia. Their approach is like - "choose the only topics in science you want to learn because we think about you mental health in childhood". Study in China or Russia: "Ok, it's 23:00 pm - you can go to sleep for 3 hours. We will continue tomorrow at 5pm. That's why these counties win Olympiads 😂
For those who are used to binary and computers, simply do 1024 (2^10) x 256 (2^10) = 262144, and subtract 1, or start at 65536 (2^16) and double it twice.
Some nice tricks, but what about, in this case, just calculating the thing? 2^18 = 2^10*2^8=1024*256=256000 + 24*256. The latter is 25*2^8-256=100*2^6-256=6144. So we get 262144; subtract one and you get 262143, with the "25 and we can make that 100, it's a power of 2" happening in one's head (if you don't get that, you can also easily calculate 1024*256 simply on paper).
You would, of course, know the first 10 powers of 2 by heart (they teach that in school, just like the first 20 squares)... but then the solution represented also relies on the fact that you now 2^9=512 by heart.
But then, squeezing in a binomian formular was rather beautiful. (I do mean that.)
Probably the simplest and shortest way:
2^18-1=(2^9)^2-1=(512)^2-1
Applying Vedic Math:
512*512=524*5*100+144=262144 (which can mentally be calculated in about 15 sec)
Therefore: 2^18-1=262144-1=262143
Not to me.
Growing up in the 70s and 80s, I learnt 2^16=65536 (max amount of memory addressable by an 8-bit processor with a 16-bit address bus), and later 2^17=131072 (start location in memory of the first screen of the Sinclair QL).
Thus 2^18-1
= 2^16×4 -1
= 65536×4 -1
= 262144 -1
= 262143
or
= 2^17×2 -1
= 131072×2 -1
= 262144 -1
= 262143
(This latter being the easier of the two.)
I love Math, I love your channel and I love you. Many blessings for you, from the heart of God. ❤
❤️🥰
Did not know God had a physical beating heart.
God is widely advertised as being beyond time and space.
@@MyOneFiftiethOfADollar In your conception of God, he doesn't has a heart. And your belief shall be respected.
In my conception (Gospel), Yeshua is the image of the invisible God and Yeshua has a heart, hence God has a heart. This is my belief and shall be respected.
Also, this is a Math channel, better not talk about such things. (Blessing people is a common thing, to talk about god in a Math channel not.).
Hey.
Just take the tenth power of 2 i.e. 1024, multiply it by itself, and divide the result by 4.... subtract 1 from the resulting value to get 262143
She has been trying to find the result of the 513*511 operation for exactly 2 minutes since 1:17 seconds of the video. If she writes these two numbers one under the other and multiplies them, she can get the result in 20 seconds.
lol in India, we use an identity to do 511*513, it's basically, (x+a)(x+b)=x^2+(a+b)x+ab
this eases out the calculation
so you can do (500+11)(500+13)
500^2+ (11+13)500+ (11)(13)
very easy calculations, you can do them in mind
250,000 + 24*500 + 143
= 250,000+12,000+143
=262,143
(we also have a trick to multiply numbers with 11 and rest of the calculations were pretty simple).
how is the trick of multiplying with 11?
if you have to multiply 11 with 13 just write the first and last digit as it is, that is 1_3, now the middle digit is going to be the sum of the first and last digit, that is, 1 and 3, we know 1+3=4, so 143 is the ans to 11*13. It's a very easy trick, you can solve such problems instantly in seconds@@pacogutierrez2484
This is where I learn my maths...
Well ... first question should be, what kind of result is expected. Because 2^18-1 is pretty nice. 11111..11 binary is also good.
It seems, that normal writing multiplying 513*511 is also trivial.
And if I use pretty known fact, that 2^16=65536 ?
Two addition and almost done.
It took me awhile, but I finally realized that this was quite an easy problem, and I thought that I might be able to do it in my head by simply doubling 18 times. Well, I didn't get that far on my first three attempts. but I now know that I can do it...eventually. How far did I get? Thirteen or fourteen times, but that was good enough for me. I now know that I can solve the problem in my head if I try long enough.
I just know - from years of doing computer science work - that 2^10 is 1024 and 2^8 is 256. 1024 * 256 is really easy, because 1, 2, and 4 are just doublings of 256 and adding them in different 10s places. then subtract 1.
Easier decomposing 2^18-1 as a difference of squares, then as a difference of cubes times a sum of cubes . At the end: 63 times 73 times 57= 262,143
It can also be written as 2^18=2^0 is equal to 2^18-which is equal to 262144
we might know 2^18 = 2^(6*3) as being the number of RGB colors you can encode when each Red, Green, Blue color component has 6bits resolution (64 levels) and that number is 262144 ... at least people should know 2^10 = 1024 and 2^16 = 65536 ;)
Pragmatic reasoning.
65537 is 2^16+1 is well know prime number.
There is a way to find out what the last number is when dealing with equations that use large numbers. I vaguely remember it from hs
How many people did not understand the beauty of the presented solution! 😢 Thank you for what you are doing! That was pure mind pleasure! ❤
I did not understand. 2^18=262144 is not less known fact, that 2^9=512
I do not understand beauty of writing (512+1) and then explain that it is 513 verbally. Thanks God she did not come with a substitute formula for that.
Much simpler to calculate 2*2*2*... iteratively in your head. Especially if you know that 1 Mb = 2^20 = 1048576 bytes
as a programmer, I have remembered many 2^x values without calculating them, for example, 2^24 is 16777216 and 2^16 is 65536. Oh yes, 2^18 is 262144, so if it is minused by 1😊
For us that knows our powers of 2 it can be simplified as: ( 2^18) - 1 = ((2^16) * (2^2) ) - 1 = (65,536 * 4) - 1 = 262,144 - 1 = 262,143
Of course one could also solve it using logs or even by using a slide rule!
Experts in computer hardware in 1990s to early 2000s should know 2^18=262,144 that's the amount of 256MB memory in KB that would show up during start up of a computer of Pentium II/III or Athlon era.
it's 256 kiB or 262.144 kB.
Whenever you have x², you will get the same result if you multiply (x-t) by (x+t) and add t². Therefore, a way that I consider to be the fastest way to solve problems like this mentally is to look for a convenient (x-t) (or (x+t)). In the case, for example, to solve 512², the convenient (x-t) is 500. Therefore, the (x+t) is 524, and the t is 12. Therefore, 512²=500*524+12². Knowing that 524*1000 is 524000, just divide this by 2 to get 262000. Then, knowing that 12² is 144, we have that 512² is 262144. Finally, just subtract 1 and get to the final answer to the problem.
I tired everything like
G.P series
Limits (calculus)
Logarithms
Binomial
At the end all the results were in the power of 2 some even exceeding 2^18 😅 so its better to learn some power table as 2^10 always helps
I wish you were my maths teacher when I was little! I would have definitely developed interest on Maths. You make the problems look so easy.
This one is hilarious. When I saw it I thought, surely you just solve it using arithmetic? But hey if there's a trick to working with exponents of 2 I've love to know it. No - you go through a convoluted process which gets you nowhere, then just solve using arithmetic anyway.
2^20 is 1048576 , then divide by 4 and subtract one...
Wouldn't it be easier to multiply directly 512 * 512 = 256,000 + 5,120 + 1,024 = 262,144 and just to subtract 1?
When I started in computing in 1965 we just new all the 2**N values up to n=32. and we knew that 2**N -1 was a stream of on bits.
Outstanding presentation.
Each step carefully shown.
Precise terminology.
It's more complicated and longer. If i know that 2 to 9th is 512, just do the 512*512, minus 1.
Prefiro multiplicar 512 por 512 e subtrair da unidade
Em duas linhas o problema é resolvido
Ué... não dá mais de 2 linhas amigo? 4 se não me engano
@@editorx2023 Sim, dá mais de 2 linhas, mas é muito mais rápido que a solução do vídeo. Dá pra fazer em menos de 1 minuto
Eu fiz 17 contas, mas multiplicar por 2 é muito fácil e rápido, saiu bem mais rápido do que no vídeo, e de certa forma meus neurônios ainda estão intactos
@@evandroa4845 inacreditível
I just simplified in my head to 512^2 - 1. Pretty easy to multiply 512 x 512 on paper and subtract 1.
Who works in IT knows that 2^20 is 1048576. So divide by two twice and you have result :-). It would be 256*1024.
Though there are many ways to arrive at a solution, this one really beat around the bush lol
See if you play 2048 you’ll already have all powers of 2 memorized up until 2^11, so just take 2^9 as 512, square it, and subtract 1
Its very simple you can solve it in seconds by a simple and no need of using formulas etc
First method
Power 18
Like 6*3
2 power 3 = 8
( Now multiply 8 six times to get an answer)
8*8*8*8*8*8= 262,144-1= 262,143
Second method
2 power 18
6*3= 18
2 power 6 = 64
( Now multiply 64 by three times to get an answer)
64*64*64 = 262,144-1=262,143
I clicked on one of these math problem videos and now I get more and more math problem videos from TH-cam that I have to solve omg
Is it that much more work to just multiply it out? You should a good chunk of the binary digits to give yourself a running start
I actually thought you had some really nice smart approach to it, but this is just brute force tbh.
It's a lot easier to solve if you just know your powers of 2 up to 18, as any decent computer programmer does.
My point exactly
Programmers who developed on the PDP-10 which had a 36 bit processor would know that 2^18 is 262144, 1000000 octal and 40000 hex. Especially useful when doing some register arithmetic on the left and right halves of the register in your head. I used to have to do that a lot at CompuServe in the 90's.
@@beragis3
I guess you were au fait with 6-bit (sixbit) encoding which allowed 6 characters in a 36 bit word?
@@cigmorfil4101Yep 6 bit, 7 bit, 8 bit and 9 bit characters
Even if you don’t know them by heart… working out a power table for two is easy and I doubt they mark off for showing work.
We could just do 513x511 and it would be done so much faster ;-;
I'd better do (2⁹)² - 1 = 512² - 1 = 262144 - 1 = 262144
The rest is not necessary.
262,143. I just doubled 2 seventeen times then subtracted 1. Did it in my head.
I do not see how this is more simple than 512x512-1. We all know 2^16=65536, so double it twice in a row and substract 1. More over 513x511 is quite obvious, 1x513 is obvious and everybody knows 13x5=65
Any old school computer scientist can answer it without by without even drawing on paper. 2^18 is close to 2^16, which is the limit of array size in an 16 bit OS. So its just 4x65536 - 1.
I doubt "old school computer scientists" participate in math olympiad :)
From Venezuela:!!!! Very, very wonderful your class!!!!!!!!
i just love how apparently 2 to the ninth power is common knowledge.
I don't know about common knowledge, but you can probably count it on your fingers in less than 5 seconds.
2^10 is pretty common knowledge (it is how many bytes are in a kilobyte), so dividing that by 2 is pretty easy
Wouldn’t it be easier to multiply 512*512 using grade school math and subtract 1?
elegant but Id rather just calculate 2^18 and then -1
at most, do 512x512 -1
A very roundabout way to approach this math problem.
My answer.
I would do ((2^16)*4)-1 2^16 = 65536. mutilply by four and subtract 1.
In my assember years, we used to have 2 to the power of 16 by heart.
So we "know" that 2^9=512, but we cannot find out 2^18=512^2 so we need to write a dissertation to calculate 2^18-1
for computer people, 2^16=65536, mult with 4, sub 1 makes 262143
Appreciate your efforts.
you can use congruence of numbers to solve this also a to the n and b to n identity
I have math channel,watch please
2 up too 18 is 524288, 2 minus 1 is half of 524288 is 262144
I did via the bit representation 0xFFFF is 16 1's and you need 2 more so 0xFFFF + 0x30000 = 0x3FFFF which is the answer in hex.
Is this a math test for students will less than average iq? how can this compare to the chineese olympiad with the question of 9^x - 6^x=4^x
It can be quite easily calculated in mind
2^ 16 is 65536, then you can just multiply by 2 two more times and substract 1.
Every 2^10 is a k, so 2^20 is 1M (or 1024x1024). 2^18 is 1/4 M or 1024x256. Subtract 1, done.
(You learn this working with binary or anything to do with computers - HDD space, addresses, etc, etc)
Not quite, HDD manufacturers described the capacity in terms of 1k = 10^3, 1M = 10^6, etc, not the same units as everyone else in the digital computer industry.
Already we knew 2 power of 9 is 512..then 512* 512 is 262144..finally subtract 1 then we will get 262143
Am I the only person that just did the math in my head and calculated the same result? I understand the method behind that, but you can easily just calculate the result in less than 1 minute.
Did you just 512*512?
2^18=4^9=64^3=64*64*64=262,144
That minus 1=262,143
Multiplication is cool, it doesn't bite you..
Try it for small numbers.
😉
Very helpful
This solution method is like using a chainsaw to cut bread...
De tête, la réponse est : 111 111 111 111 111 111 (en base 2). Beaucoup plus simple 😅
Based on the rules of exponents 1 = 2^0. So, my next step was 2^18 - 2^0 equaling 2^18, which is incorrect. Why does this method not wok?
because: a^m : a^n = a^(m-n)
@@semakavf I agree with your explanation concerning the quotient law of exponents, but could not the zero power rule apply here? If not, then how can it be said, any base to the power of zero equals one. In math, my understanding is we can use inductive reasoning. Therefore, 1 = 2 - 1. Likewise 2^0=1, so I theoretically should be able to substitute 1 with base 2 to the power of 0. Thus just, a question I have?
What is the wheather condition in Norway?
maths which is the only thing can be done by various methods ❤
Time to get a girlfriend
@@delanym already have !! 🫠
Why not use (2^10)*(2^8) and then subtract 1? or (2^9)^2 then subtract 1? These calculation methods are very simple and fast.
Exactly ! And you can Thilo this even without paper in your head
Gostei muito!!!!
This is a nice approach
*LKLogic* -- It is *not* solving for anything. It is simplifying a numerical expression down to one number.
Calculators not allowed? Before I dropped my slide-rule it gave me 2^18-1, out to approximately 2.7 decimal places, but afterward only out to about 2.3 places. I'll just stick to the older, more reliable method of pencil and paper.
U know what 2 to the power 6 =64 and now find 64 to the power 3 and subtract 1.
Easy....
Why all the complicated brackets and splitting, adding, subtracting, changing powers? I don't understand any of it. Why doesn't she just go 2*2 18 times and the take one away? I got the answer that way by about 90 seconds and just needed my fingers to keep track of the multiples and my head to multiply by 2. Why make it so hard?
If you can compute 2^9 you can compute 2^18 and subtract 1
Very instructive task 👍
Thanks, but It isnt olimpic way to do It. The better way I Saw the resolution is:
2^18 = 2*9 * 2*9 = 512*512 = (500+12)(500+12) = 500² + 2*12*500 + 12² = 250.000 + 12.000 + 144. Subtracting -1, we have 262.143 without a lot of multiplications
Foil method? Why? I did 513 x 511 in less than 15 second doing a simple multiplication. Is it necessary for the Olympiad or what?
Yes sir! and writing the multiplication on a bus ticket leaves a lot of unused space... Factorization of 2^18 - 1 could have been more interesting ... 3^3x7x19x73
Knowing 2^17 = 131072 (address of start of Sinclair QL screen memory) I did 2^18 = 2 x 131072 even quicker.
sir ya kon si class or school kon sa ha??
I see this using binary numbers.
2^4 -1 is 111 I’m binary.
Likewise 2^18 -1 is 1……1(18 1s) in binary.
Convert from binary to decimal!
If you know 2 pow(16) = 65536 (address for background color on C64) doubling twice and subtracting one seems easier.
2 pow(18) - 1 = ((2 pow(16))*2)*2 - 1 = (65536 * 2) * 2 - 1= 131072 * 2 - 1= 262144 - 1 = 262143
Giving result in binary of hexadecimal would've been easiest.
11 1111 1111 1111 1111 base2
0x3ffff base16
yep 2^n-1 is equal to n-1 ones in binary.
Even without knowing powers of 2.
It is very easy to produce them:
2^1: 2
2^2: 4
2^4: 16
2^8: 256
2^16: 65535
Then we use a combination of the above.
2^(16+2)=65535*4=262144
Subtract 1.
This procedure scales quite well. Because its complexity is logarithmic. And we can easily combine any desired exponent.
Proceeding with exponent 9 is also good. But it doesn't really bring advantages.
2^18 is 4^9. 4^9 is 64^3. Just solve for 64^3 and subtract 1
2^8 = 256, 2^10 = 1024, 2^16 = 65536. They are all "round" numbers which every computer science student remembers
Perfect👍👍👍
You can simply do it like 512^2 -1