Math for fun, how many rectangles?

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 2,1 тыс.

  • @dante999rey
    @dante999rey 4 года назад +1715

    Online classes have actually kill my love to math and physics in a single semester, this channel has recover that in a single video

    • @amalwijenayaka410
      @amalwijenayaka410 4 года назад

      ruclips.net/video/kow8ijXyVMQ/видео.html

    • @manamritsingh969
      @manamritsingh969 4 года назад +54

      I get what you mean brother. Self study is the best 👍

    • @fredericchopin6445
      @fredericchopin6445 3 года назад +19

      plus the restrictions of method is killing me

    • @zinda_hun
      @zinda_hun 3 года назад +1

      Same here

    • @MikehMike01
      @MikehMike01 3 года назад +6

      all for a minor cold virus

  • @joseluizdurigon8893
    @joseluizdurigon8893 3 года назад +539

    Math is actually very cool. We are forced to study for tests, LSAT, or vestibular here, and that creates lots of stress. That's why it's boring at school. But when we try to solve problems just for fun... it's actually pretty cool.

    • @MattDoesNothing
      @MattDoesNothing 3 года назад +6

      I agree with you sir. It’s especially fun when you get to find the patterns of how some math works and find out by yourself about something like demonstrated in this video.

    • @MattDoesNothing
      @MattDoesNothing 3 года назад +2

      @2D ANIMATOR I wanna point that out too. The system try to force those stuff in there own way for everyone where only, like 2 out of 10 people would like it but doesn’t care about the others.

    • @HuntingKingYT
      @HuntingKingYT 3 года назад

      Math school is too ez it's boring (Im Grade 7)

    • @MattDoesNothing
      @MattDoesNothing 3 года назад +1

      @@HuntingKingYT hmmm, you’re not there yet. It’s getting better and better.

    • @coolokayyeah
      @coolokayyeah Год назад

      @@HuntingKingYT yeah you havent been doing nothing yet

  • @zyxpip8363
    @zyxpip8363 6 лет назад +967

    Did it another way,
    1. Take a random point as a corner (81 possible)
    2. Take another random point as the opposite corner (81-1-8-8 = 64 possible)
    3. Count the permutation of taking 2 oppositing corner from a rectangle (2×2 = 4)
    Then you get 81 × 64 ÷ 4 = 1296

  • @Jojobkl-c5y
    @Jojobkl-c5y 3 года назад +81

    Easy formula :- (r)((r+1)/2) * (c)((c+1)/2)
    Where (r) represents number of rows and (c) represents number of columns

  • @karlmarxsteingoldberg-kike4046
    @karlmarxsteingoldberg-kike4046 3 года назад +52

    General formula: you start with x * y available points, any of which can be chosen first. You can then choose (x - 1) points (any point except for the first one) in the horizontal direction, and then (y - 1) points in the vertical direction. To make a rectangle, you’re left with only one option, and since you have only one rectangle, regardless of which of the four points you choose first, you have
    [x * y * (x - 1) * (y - 1) * 1] / 4
    Plugging in x = y = 9, you get
    9 * 9 * 8 * 8 / 4 = 1296

  • @vieuetcon
    @vieuetcon 5 лет назад +823

    Translator killed me."we get 9 choose 2" wrote "we got nachos too..."

    • @blackpenredpen
      @blackpenredpen  5 лет назад +141

      LOLLLLLLL

    • @yunfeichen9255
      @yunfeichen9255 4 года назад +5

      Dont worry it is too cold for ice cream, we dont got them too...

    • @joels.5318
      @joels.5318 4 года назад +4

      I don't really get what it means by "9 choose 2" would you be kind to elaborate?

    • @calebmacpherson4017
      @calebmacpherson4017 4 года назад +9

      @@joels.5318 In Australia, we get taught it nCr, so it's nCr(9,2). Though, we pronounce it as 9C2. It's a combination; you use it to calculate the total amount of ways you can make a selection, provided it doesn't matter what order you select them in.

    • @lorenzosaudito
      @lorenzosaudito 4 года назад +2

      @@calebmacpherson4017 cool in what year do they teach that ?

  • @heliocentric1756
    @heliocentric1756 6 лет назад +754

    For mxn grid, the number of rectangles is:
    mn(m+1)(n+1)/4

    • @gianmasto1
      @gianmasto1 6 лет назад +31

      Heliocentric the sun in your profile picture is the same as the one in the flag of Argentina.

    • @Archik4
      @Archik4 6 лет назад +12

      first point mn second point (m-1)(n-1). 4 variant build rectangle if you have 2 points. result mn(m-1)(n-1)/4 m,n - vertex

    • @georgeelsham
      @georgeelsham 5 лет назад +13

      I got a very different answer, but it still works 😛:
      n = side length
      Sigma(x=1, n)( 0.5x(n^2+n) )

    • @tfj8767
      @tfj8767 5 лет назад +1

      X and y are side lengths
      Add up the first x multiples of integers 1 through y

    • @AAAAAA-gj2di
      @AAAAAA-gj2di 5 лет назад +4

      @@georgeelsham But the answer is same. And don't forget that Combinations can also be obtained from binomial expansions (that's the reason why it has links with summation method)

  • @NinF37
    @NinF37 5 лет назад +1352

    I’m seeing AT LEAST 12 rectangles there

    • @almachizit3207
      @almachizit3207 5 лет назад +129

      I mean... you're not wrong

    • @luker.6967
      @luker.6967 4 года назад +63

      Very insightful.

    • @damontan4749
      @damontan4749 4 года назад +26

      Good eye captain obvious

    • @LBW_Mimir
      @LBW_Mimir 4 года назад +10

      @Ignited TNT nah, it's over 9 000 !

    • @ipshie
      @ipshie 4 года назад +9

      I reckon there are at least 17 hamburgers there

  • @magicalplace3788
    @magicalplace3788 3 года назад +345

    0 rectangles, the lines aren't perfectly straight, and the angles aren't exactly 90 degrees.

    • @rctamil4909
      @rctamil4909 3 года назад +5

      S it is square of chess board 😂
      But it was mad question 👏

    • @arneshpal7702
      @arneshpal7702 3 года назад

      😂

    • @Gnome5555
      @Gnome5555 3 года назад +10

      @Debarghya Ray Official squares are also rectangles

    • @Goofyahhmascot
      @Goofyahhmascot 3 года назад +1

      U should change your Channel name to Magical comment 😂

    • @BroArmyCommander
      @BroArmyCommander 3 года назад +2

      @Manik Ray A square is a rectangle with all its sides equal!

  • @snekye5419
    @snekye5419 3 года назад +2

    I would just divide cases
    For 1x1 there are 8*8 = 64 rectangles
    For 1x2, consider vertical ones : if you think of their upper component, there are 8*7 = 56 possibilities (whole grind w/o the last row). Same for horizontal ones, so there are 8*7*2 = 112 1x2 rectangles
    in total, for 1xn rectangles there are 8*8 + 8*7*2 + 8*6*2 + ... + 8*1*2 rectangles possible which sums to 512 rectangles. 512 + 64 = 576
    For 2x2, consider the upper left corner, it can be in a 7*7 grid of possibilities. Same for 3x3 rectangles which top left corner is in a 6x6 grid, etc.
    In total for nxn, 7*7 + 6*6 + ... + 1*1 (we already counted the 8*8 1x1 rectangles) = 140. 576+140=716.
    Then, 2x3 is 7*6*2 (horizontal and vertical), 3x4 is 6*5*2, etc. 7*6*2 + 6*5*2 + ... 2*1*2 (we already counted 1x2) = 224. 716+224 = 940. Here is my answer :D hyped to see if i'm right
    edit : fuck

  • @OonHan
    @OonHan 6 лет назад +2087

    Thumbnail: How many retangles

    • @blackpenredpen
      @blackpenredpen  6 лет назад +135

      Oon Han yes

    • @blackpenredpen
      @blackpenredpen  6 лет назад +325

      Oon Han my kind of clickbait (and comment bait)

    • @rot6015
      @rot6015 6 лет назад +15

      blackpenredpen hahahah sure

    • @guepardiez
      @guepardiez 6 лет назад +78

      The answer is 0. There are no redtangles in the picture, only blacktangles.

    • @johanliebert6734
      @johanliebert6734 5 лет назад +4

      but squares are rectangles.

  • @fernandosantosviana7971
    @fernandosantosviana7971 4 года назад +20

    man i am from brazil, and we speak portuguese here, your english fits perfect in my understanding, i understand all your vídeos, you are doing a amazing work to humanity, god bless you a lot

  • @jlxip
    @jlxip 6 лет назад +534

    This is becoming my favorite channel in RUclips...

    • @ViratKohli-jj3wj
      @ViratKohli-jj3wj 5 лет назад +1

      @ekam maan what are you laughing at

    • @BolsaMB
      @BolsaMB 5 лет назад +3

      I like to watch redpen. So relaxing. Wish there were more teachers like he ...

    • @fernandosantosviana7971
      @fernandosantosviana7971 4 года назад

      it has become mine too

    • @NikitaNair
      @NikitaNair 4 года назад +1

      Sameeeee ❤️❤️😻

    • @hiteshvishwakarma1984
      @hiteshvishwakarma1984 4 года назад +1

      There are many more like him, like Eddie Woo, Numberphile, patrickJMT, minutephysics, Paradoz Alpha Community

  • @PHYSICSSIRJEE
    @PHYSICSSIRJEE 4 года назад +20

    For us Physics teachers , this channel is a gold mine 🤩

  • @dshahrokhian
    @dshahrokhian 4 года назад +11

    If you think about it in terms of increasing sizes and positions, it is really easy to model in python code:
    n_rect = 0
    for h in range(1, 9):
    for w in range(1, 9):
    for y in range(0, 8-h+1):
    for x in range(0, 8-w+1):
    n_rect += 1
    ## Result: n_rect = 1296

    • @Dimitri_gdr
      @Dimitri_gdr 6 месяцев назад

      I don’t understand lol

    • @Dimitri_gdr
      @Dimitri_gdr 6 месяцев назад

      I understand now but it’s complicated lol

  • @konstanty8094
    @konstanty8094 6 лет назад +153

    My solution is long if you write it down, but short if you just think of it (the only calculation I did "outside" my head was the final 36*36)
    Let the upper-left corner of a rectangle be "the starting point" of that rectangle.
    For each point on the grid we can count, how many rectangles "start" on it.
    The most upper-left point is a starting point of 8*8 rectangles (8 possible heights and 8 possible widths).
    Similarly, the point below it is a starting point for 8*7 rectangles (7 possible heights and 8 possible widths).
    It's easy to conclude, that the points in the first collumn are starting points for 8*(8+7+6+5+4+3+2+1) rectangles.
    The points in the second collumn are starting points for 7*(8+7+6+5+4+3+2+1) rectangles (the only thing, that changed is the possible width - from 8 to 7)
    So the sum of all the collumns looks like:
    8*(8+7+6+5+4+3+2+1)
    +
    7*(8+7+6+5+4+3+2+1)
    ...
    +
    1*(8+7+6+5+4+3+2+1)
    =
    (8+7+6+5+4+3+2+1)*(8+7+6+5+4+3+2+1)=36*36=1296

    • @VictorUn1
      @VictorUn1 6 лет назад +2

      Konstanty I made the same :)

    • @rasmussuonio3014
      @rasmussuonio3014 6 лет назад +1

      = (n*n+1)²

    • @div._.
      @div._. 6 лет назад

      Did the same :)
      Guess I complicated it a bit by using combination

    • @hamiltonianpathondodecahed5236
      @hamiltonianpathondodecahed5236 6 лет назад

      @@rasmussuonio3014 your fire spirits are explosive.(in your profile picture)

    • @NoobMaster-or2jf
      @NoobMaster-or2jf 5 лет назад +2

      What you did is exactly what the combinatorics does. In fact using the combinatorics is the same logic described in that formula using factorials - which are the number of ways of choosing something from something.

  • @x3non500
    @x3non500 5 лет назад +16

    I wrote a little program in C and got 1296:
    #include
    int main(void)
    {
    int i, j;
    int result = 0;
    for(i = 8; i >= 1;--i){
    for(j = 8; j >= 1; --j){
    result = result + (i * j);
    }
    }
    printf("There are %d rectengles!
    ", result);
    }
    if you replace the numbers in the for loop you can calculate any combination =)

    • @shashankkothari8066
      @shashankkothari8066 3 года назад +1

      /* This code is short, faster and works even if no. of rows and columns are not equal. */
      #include
      main(){
      int r,c,ans;
      printf("Enter the no. of rows & columns");
      scanf("%d%d",&r,&c);
      ans=(r*c*(r+1)*(c+1))/4;
      printf("/n %d",ans);
      }
      /* This code doesn't use a single loop whereas your code will have time complexity O(n²). */

    • @adiaphoros6842
      @adiaphoros6842 2 года назад +1

      Or if you use a formula: i * j * (i+1) * (j+1) / 4, you can answer the problem in constant time rather than quadratic time.

  • @General12th
    @General12th 6 лет назад +474

    Yo dawg, I heard you like combinatorics, so we put a rectangle in yo rectangle so you can calculate while you calculate.

    • @newhandle_2552
      @newhandle_2552 5 лет назад +1

      aint that kinda old?

    • @spike4850
      @spike4850 5 лет назад +9

      QUALITY COLLECTOR think that’s part of the joke

    • @davidf2244
      @davidf2244 5 лет назад +7

      @@newhandle_2552 it's an older meme but it checks out

    • @wanlitan7406
      @wanlitan7406 4 года назад +2

      LMFAO!!!!!!!!!!!!!!!!!!!!!! HILARIOUS!

  • @youri76000
    @youri76000 4 года назад +23

    To form a rectangle you need 2 vertical and 2 horizontal lines :
    Number of vertical pairs of line * number of horizontal pairs
    Binomial coefficient of 2 in 9 = 36
    36*36 = 1296

  • @italixgaming915
    @italixgaming915 4 года назад

    Very simple demonstration of 1^3+2^3+...+n^3=(1+2+...+n)²
    You develop (1+2+...+n)² : you obtain n terms like k² for k=1...n and terms i.j where i and j are different.
    The important point is that you remark that you have only one time each term i.j where i and j are fixed. In particular, for each time that you have i.j, you also have one time j.i. Then you rewrite your sum like this:
    (1+2+...+n)²=1²+2²+...n² + 2.sum (i.j, where 0

  • @winnablebtw459
    @winnablebtw459 6 лет назад +1625

    Wouldn't the whiteboard make 1297 rectangles?

    • @DanielGonzalezL
      @DanielGonzalezL 6 лет назад +402

      We can't see all 4 borders of the whiteboard so it could be a circle :P

    • @patrickkeller2193
      @patrickkeller2193 6 лет назад +27

      So, how many rectangles are there once he is finished? (;

    • @ZoneEEEEEEEEEEEE
      @ZoneEEEEEEEEEEEE 6 лет назад +36

      Daniel Gonzalez then wouldn't the screen make it?

    • @АлексейБеляев-х1т
      @АлексейБеляев-х1т 6 лет назад +39

      yeah, and the screen you're using to watch the video would be the 1298th rectangle (so long as it's not the iPhone X)

    • @Waterbug1591
      @Waterbug1591 5 лет назад +18

      you forgot to count the video rectangle frames in the recommendation section.

  • @aman-kr
    @aman-kr 6 лет назад +165

    The more simpler can be in horizontal choose any two lines and in vertical choose any two line
    9c2 x 9c2 and the result is 1296

    • @blackpenredpen
      @blackpenredpen  6 лет назад +34

      Good!

    • @codenamelambda
      @codenamelambda 5 лет назад +2

      Good solution! I chose two points on the grid, and removed those that are on the same vertical line, then those that are on the same horizontal line (I did it for an n*m rectangle) and halved the result (since there are exactly two versions of every rectangle: the one with the top left and bottom right point, and the one with the top right and bottom left).

    • @devanshisoni6649
      @devanshisoni6649 5 лет назад +30

      A smell a jee advance aspirant

    • @mr_p1ng
      @mr_p1ng 5 лет назад +3

      I learnt this in vibrant academy MC sir! 😭

    • @dinglemccringleberry6258
      @dinglemccringleberry6258 5 лет назад +1

      nice one!

  • @kunalbatra4166
    @kunalbatra4166 6 лет назад +141

    pls do more vids on combinatorics..

  • @vertechua
    @vertechua Месяц назад +1

    A more rigorous way that I used to get the answer-
    A rectangle is formed using a LENGTH and a BREADTH, so we need to select some number of consecutive edges to make the length and same for breadth.
    Number of ways of choosing x consecutive objects from n in a row is n - x + 1.
    We choose 8 consecutive, then 1 consecutive, 2, 3 and so on....
    (8 - 1 + 1) + (8 - 2 + 1) + ....
    Finally get 8 + 7 + 6 + 5 + 4 +....
    Then we can do the same for the other side of rectange. So we multiply both,
    (8 + 7 + 6 + 5 + ... 1)²
    = [n(n+1)/2]²
    Put n = 8 to get 1296.
    More like a derivation 😊

  • @avalus6
    @avalus6 4 года назад +16

    I solved it by using the square of a summation; [E(i=0,7) 8-i]^2. I figured this out after realizing that for each unit over one a rectangle had in one direction results in one less rectangle that can fit on that axis. This can be represented as a summation where the index represents the number of units over one in a rectangle's side, and the function is the length minus the index. Then to extrapolate to variations in both direction you just square the summation.

    • @sighrl1232
      @sighrl1232 3 года назад

      lol that’s exactly how i did it and was looking for this comment

    • @Dragon-Slay3r
      @Dragon-Slay3r Год назад

      Put the smiley dragon there, use the helicopter hat on it or the double blades on put it on its head on the middle then once it's crossed over the cross square then it can become a baby crocodile with a half z on its head to make it a lizard? Something like that anyway they're not fully decided this is why I blow hot and cold

  • @marcushendriksen8415
    @marcushendriksen8415 6 лет назад +67

    Good video! It's cool to see that n(n+1)/2 here as well. I discovered it for myself about 9-10 years ago, but in a different context. One day, I was just doodling in the car, drawing uneven convex polygons, connecting all the vertices to every other one. I happened to start counting one of them, and soon enough it occurred to me that there could be a pattern, a connection between the number of vertices and the number of edges. I was determined to work it out. I drew polygons all the way up to the decagon (not bothering with uniform side length, knowing that it wouldn't affect what I was studying) and meticulously counted all the edges. I set out a table, and literally brute forced the pattern. I used the difference method and crunched it out. I then used my result to predict the number of edges for an 11-gon, and sure enough, upon actual inspection it was a match.
    The best thing was, I wasn't a maths person at all up until that point. I knew the basics, as everybody does, and a rough grasp of algebra, but that was the extent of my abilities, and I think they were only that good because of formulae we had to learn for science, which I liked and was good at. I didn't know that what I was doing was an established thing. I didn't know what technique I was using; it just seemed logical to me that if I was looking for a pattern linking the number of sides and the number of edges, then I should look at the differences between consecutive totals. And repeat, until a constant term is reached. I did that, got the answer, and it was satisfying beyond words. I realized that I'd done maths, and not only was it fun, but it was kind of easy! This from a guy who was always in the struggling section of the maths class.
    That was the start of my true mathematical education. It's far from over, of course, but I've come a long way from knowing just basic facts about geometry (triangle angles sum to 180, Pythagorean theorem, circle circumference, area, etc) and algebra. I'm confident with calculus material now, and my thinking in geometry and stuff related to it has radically evolved. Even my powers of visualization have improved an immense amount (I had just about zero when I started; now, I can hold and manipulate fairly complex statements.) I love maths now, and I always learn more of it whenever I can, and whenever I can't, I do what I mentioned - visualize. I've even thought about ways to generate mathematical objects via physical means, mechanical or otherwise, as cool devices/knickknacks that would be educational from a different perspective.
    In any event, I've gone from moderate dislike/ambivalence towards maths to wanting it to be the foundation of my career, more than anything. It was a welcome surprise to have a vivid reminder of the catalyst that made that happen :)

    • @mensch5502
      @mensch5502 4 года назад +7

      This is such a motivational story!

    • @marcushendriksen8415
      @marcushendriksen8415 4 года назад +7

      @@mensch5502 thank you! It was all as I said :) but I guess I forgot the punchline - anybody can get good at maths!

    • @PMA_ReginaldBoscoG
      @PMA_ReginaldBoscoG 3 года назад +1

      @@marcushendriksen8415 that's what maths does : developing curiosity in those who learn it

    • @Dragon-Slay3r
      @Dragon-Slay3r Год назад

      KI head cover use the Pebble thick paint brush?

  • @FunkyEspelhoCat
    @FunkyEspelhoCat 5 лет назад +231

    My god i actually got it. Figured that there were (8+7+6+5+4+3+2+1) rectangles in each column. So i just squared it.

    • @rahimeozsoy4244
      @rahimeozsoy4244 4 года назад +9

      Whatnis the logic of doing that?

    • @generalginger7804
      @generalginger7804 4 года назад +16

      @@rahimeozsoy4244 he saw other comments.

    • @IDMYM8
      @IDMYM8 4 года назад +27

      Thats actually very neat way of thinking

    • @sayhamshourav
      @sayhamshourav 4 года назад +4

      every column has 36 & every row has 36 rectangles. So 36^2=1296 is the answer.

    • @px184
      @px184 4 года назад +2

      Damn that’s really clean

  • @Mohith7548
    @Mohith7548 4 года назад +3

    I really love your videos & explanations. Please do a series on Combinatorics. It's the scariest part of Mathematics.

  • @keving1085
    @keving1085 2 года назад +2

    This is beautiful. So many patterns in even the most simple math problems. I love math.

  • @felixt2920
    @felixt2920 3 года назад +2

    in Python:
    n = 0
    for i in range(9):
    for j in range(9):
    n += i*j
    Here the two nines stand for the rows/columns+1

  • @wpbn5613
    @wpbn5613 6 лет назад +10

    Hey, BPRP your channel is about to hit 100k subscribers!

  • @the1exnay
    @the1exnay 5 лет назад +4

    I paused at 0:46 and i think i worked it out. You can view them as groups of rectangles that are all the same dimensions but in different spots. How many rectangles are in a group? Well there are as many spots horizontally as 9 - (width in squares). You then do the same thing vertically for each spot it can be horizontally. Or in other words you multiply (9 - [width]) by (9 - [height]). To get how many rectangles are in one group. And then you need to sum up all the groups. But summing every possible pair of valid height and width is equivalent to multiplying the sum of all possible heights with the sum of all possible widths. So (8+7+6+5+4+3+2+1)* (8+7+6+5+4+3+2+1) or 36*36 or 1296

  • @lucamazzon94
    @lucamazzon94 4 года назад +3

    Beautiful approach! I instead defined the row and column indexes that define a general rectangle and wrote the sum over the possible choices of them and quickly got to the same formula.
    1≤i≤j≤N for rows and 1≤a≤b≤N for columns. Then I can write [Sum from i to N of (N-i+1)]^2, which is [N(N+1) - N(N+1)/2]^2, which is [N(N+1)/2]^2.

  • @markkennedy9767
    @markkennedy9767 3 года назад

    Really nicely done. Converting a varying rectangle problem into a combinatorics problem. Didn't see that at all. You explained it nicely.

  • @largogemmarosem.6906
    @largogemmarosem.6906 3 года назад +1

    I didn't really expect this would become my favorite channel in youtube😍

  • @Schlaechter789
    @Schlaechter789 6 лет назад +40

    The fast solution blew my mind lol

    • @blackpenredpen
      @blackpenredpen  6 лет назад +8

      XDBanküberfall laalDX 😊

    • @wolfmmm7536
      @wolfmmm7536 6 лет назад +4

      XDBanküberfall laalDX it's exactly what I came up with when I tried this problem because I am lazy and I didn't really want to count rectangles

  • @n0ame1u1
    @n0ame1u1 4 года назад +12

    It’s the number of ways of choosing a contiguous length from each side. For each side, you choose a length between 1 and 8, and then you can shift it up depending on the length you chose. So it would be the sum of (9-i) for i between 1 and 8, and then square the whole thing. Equivalently, it’s 8*9 minus the sum of i from 1 to 8, which equals 8*9 - 4*9 = 36, then squaring that we get 1296
    EDIT: We could have also skipped a step by noticing that the sum of 9-i for i from 1 to 8 is the same as the sum of k for k from 1 to 8, just in reverse.

  • @giladu.6551
    @giladu.6551 6 лет назад +7

    Your enthusiasm never fails to make me smile!

  • @TheDagdil
    @TheDagdil 3 года назад +1

    Α combinatorics problem. For each rectangle we need 2 horizontal lines, chosen from a set of 9 and 2 vertical chose from a set of 9 as well. In general (N,M) = N!/(M!*(N-M)!) - where (N,M) means the ways we can chose M objects from a set of N. This gives [9!/(7!*2!)]^2=36^2. But it is real unbelievable how many ways are for solving this problem. Thank you blackpenredpen.

  • @shivamchouhan5077
    @shivamchouhan5077 2 года назад +1

    Saved so much of my time, thank you so much ❤️

  • @WexyR
    @WexyR 5 лет назад +12

    but how to calculate how many squares with combinatorics? you'll choose (9 2) for one side but how many for the other one?

    • @vibaj16
      @vibaj16 3 года назад +1

      In total it would just be (9 2), because once you've chosen one side, the other side must be the same length, so there's only one choice.

  • @831santacruzloc
    @831santacruzloc 5 лет назад +103

    I read this thinking it said “how many triangles?”
    I clicked hoping he would show me how he gets triangles from squares.
    Sadly that is not the case.

    • @123SEA1
      @123SEA1 5 лет назад +8

      cut it in half

    • @MaxingMix
      @MaxingMix 5 лет назад +5

      Holy shit, same lol
      We need to rest I guess

    • @johnnyknight6447
      @johnnyknight6447 5 лет назад

      Hyperbolic spacial planes

    • @wirly-
      @wirly- 4 года назад

      @@johnnyknight6447 you mean spherical?

    • @wirly-
      @wirly- 4 года назад

      In spherical space you can make a triangle with 90 degree angles.

  • @camerongray7767
    @camerongray7767 6 лет назад +4

    I feel so smart I knew exactly what was going on. Yay.
    Your channel and mind your decisions channel are very helpful with me learning maths.

  • @Matescium
    @Matescium 3 года назад +8

    I can't stop laughing after seeing his mega-sized old-fashioned microphone!!!

  • @amanataziz7303
    @amanataziz7303 Год назад

    That's a really smooth proof for the formula 💯

  • @phir9255
    @phir9255 6 лет назад +22

    I did the math fast and got the right answer, but this fast solution was faster and an unusual perspective for me.

  • @the1exnay
    @the1exnay 5 лет назад +96

    What?! The partial sum of the cubes is equal to the partial sum of the whole numbers squared?! My mind was just blown

    • @blackpenredpen
      @blackpenredpen  5 лет назад +17

      Yes : )

    • @md.mohaiminulislam9644
      @md.mohaiminulislam9644 5 лет назад +5

      This is pretty basic stuff actually. We know this from 9th grade.

    • @jimmyh2137
      @jimmyh2137 4 года назад +1

      There's a very cool image about this on this page:
      en.wikipedia.org/wiki/Squared_triangular_number

    • @LogicRick
      @LogicRick 3 года назад +2

      @@md.mohaiminulislam9644 shut up

    • @TechyMage
      @TechyMage 3 года назад +2

      @@LogicRick well he is right, if your preparing for ntse than your teacher will just tell tricks and logics for solving mat ques and it was one of them and pretty basic

  • @codediporpal
    @codediporpal 5 лет назад +68

    huh? you keep adding consecutive perfect cubes, and each result is a perfect square? That's just weird.

    • @NYsummertimeCHI
      @NYsummertimeCHI 5 лет назад +7

      codediporpal Yes, specifically they are the squares of the triangular numbers.
      Take two consecutive triangular numbers Tn and Tn-1 and let's look at the difference of their squares. First note that a^2-b^2=(a-b)(a+b), so we have:
      (Tn)^2 - (Tn-1)^2
      = [(n(n+1) + n(n-1))/2]
      • [(n(n+1) - n(n-1))/2]
      The first factor in this product reduces to n^2 and the second factor reduces to n, thus the whole product is n^3.
      So the solution to this puzzle is just (T8)^2 = 36^2 = 1296

    • @NYsummertimeCHI
      @NYsummertimeCHI 5 лет назад

      codediporpal whoops didn't watch the end of the video...

  • @supremacy9097
    @supremacy9097 2 года назад +2

    did anyone observe that, this inevitably also proves the theorem : (1+2+3+4+5...)^2 = 1^3 + 2^3 + 3^2 ...
    EDIT : ok sorry i just saw the vid half way thru and commented this 😂 later he mentions it in the video

  • @hikari1690
    @hikari1690 2 года назад +1

    "Computing students call it divide and conquer "
    *Shivers in dynamic programming PTSD*

  • @OPGAMER.
    @OPGAMER. 3 года назад +8

    Now I understand why we learn patterns and differences of numbers in lower classes...😎😎

  • @eminkilicaslan8945
    @eminkilicaslan8945 4 года назад +11

    I love how he is like "gtfo of here" in thumbnail

  • @levitheentity4000
    @levitheentity4000 3 года назад +4

    0:13
    problem: exists
    my brain: it's easy, but let's try to make it easier
    2hrs later: IT'S NOT EASY ENOUGH! SIMPLIFY!!!

  • @prasant.kumar.chowdhury
    @prasant.kumar.chowdhury 4 года назад

    I liked the way you solved using combination formula .

  • @henrydea5912
    @henrydea5912 3 года назад

    I'm glad that he touched on the combinations method, as that's how I first thought to solve this problem.

  • @Cloud88Skywalker
    @Cloud88Skywalker 6 лет назад +9

    I did a similar yet different approach than the fast solution.
    Looking at the grid as a matrix, each cell stands for a unique type of rectangle that can be found on the grid with subindexes being their base and height: a(1,1) smallest square, a(1,8) column, a(8,1) row, a(8,8) the outer square, etc.
    If the value of each entry is the number of rectangles of that type that can be found on the grid, the sum of all entries of the matrix is the number of rectangles on the grid.
    The general way of computing the number of rectangles a(i,j) on the grid is (# of steps it could be moved horizontally +1) · (# of steps it could be moved vertically +1). That is (8-i+1)(8-j+1) = (9-i)(9-j).
    So, the answer is Σ(Σ(9-i)(9-j)(i=1 to 8))(j=1 to 8).
    And because 9-x from 1 to 8 is the same as x from 8 to 1, the answer simplifies as ΣΣij (i=1 to 8)(j=1 to 8).
    ΣΣij (i=1 to 8)(j=1 to 8) = Σj·(Σi (i=1 to 8))(j=1 to 8) = Σj·36 (j=1 to8) = 36Σj (j=1 to 8) = 36·36 = 1296

    • @blackpenredpen
      @blackpenredpen  6 лет назад +2

      Wow, very nice!!

    • @jishnubhattacharyya37
      @jishnubhattacharyya37 5 лет назад +4

      Why are there so many smart people in this comment section? Makes me feel a lil bad about myself lol

  • @redpepper74
    @redpepper74 3 года назад +4

    Just learned about sums in algebra 2, so I was able to figure out the amount of squares: sum(n=1 to 8, n²)
    From there I was pretty easily able to find the amount of rectangles: sum(l=1 to 8, sum(w=1 to 8, lw))
    Very satisfying, and cool to use something I just learned :D

  • @elliottmiles1308
    @elliottmiles1308 5 лет назад +8

    You could also just square the nth triangular number. N being 8 in this case

    • @t39an8r
      @t39an8r 4 года назад +1

      I also noticed that when I saw the 1,3,6,10 emerging in my mind from the roots

  • @matmatou907
    @matmatou907 3 года назад +1

    Wow ! I learned so many things in this short video !!!

  • @InnervisionGames
    @InnervisionGames 4 года назад

    The patteren i went for is 1^3 + 2^3 + 3^3 + 4^3 + 5^3 + 6^3 + 7^3 + 8^3
    Basiccally, number of rectangles in 1x1, then 2x2 - already counted, then 3x3...
    Well as i continued watching, that was in fact the 1st solution he presented :D

  • @AdnanKhan-gm7kh
    @AdnanKhan-gm7kh 3 года назад +9

    9c2 *9c2 is the first thing that came to my mind when i first saw the thumbnail

    • @johnjordan3552
      @johnjordan3552 3 года назад

      Does this hold true for every rectangular shape?

    • @johnjordan3552
      @johnjordan3552 3 года назад

      I think it does! Thanks for your comment

  • @timetr4veler949
    @timetr4veler949 5 лет назад +14

    Funny that you use triangles numbers for calculating how many rectangles you have. Triangles numbers are : 1; 3; 6; 10; 15; 21 and so on

  • @theaureliasys6362
    @theaureliasys6362 6 лет назад +7

    8,7,6...1. So... (8+1)×8/2 = 9×4 = 36.
    That is one dimension.
    36^2 = 1296
    2 dimensions.
    Done.

    • @juliuss2056
      @juliuss2056 6 лет назад

      I used that same method

    • @to2podemosaprender630
      @to2podemosaprender630 5 лет назад

      But about an 8 ×8×8 cube... I guess you can use the same formula to find .. 9c2 9c2 9c2 so 36^3 7 46656

  • @bobatuzi9799
    @bobatuzi9799 3 года назад +1

    For the 1^3+2^3+3^3...+8^3 you can use the formula (1+2+3...+n)^2 = 1^3+2^3+3^3...+n^3.

  • @marcusossowicki2729
    @marcusossowicki2729 3 года назад +1

    That puzzle was pretty fun!
    Was a good challenge to do without paper, but still really straightforward and simple.

    • @marcusossowicki2729
      @marcusossowicki2729 3 года назад +1

      Figuring out math problems on your own without knowing/having forgotten the intended solutions/techniques is so much more rewarding

  • @peterbonnema8913
    @peterbonnema8913 6 лет назад +9

    I came to (1+2+..+8)^2 like this: consider a single row of length 8. There are 8 possible lengths of rectangles. Namely those of length 1 through 8. In how many positions can length 1 be? well 8. And 2? well, one less so 7. And 8 length? well just in 1 position. So the answer for a 8*1 grid is 1+2+3+4+5+6+7+8. Now each of those possible rectangles could be 'streched' in the other dimension to any length up to 8 and positioned on the other rows. In how many ways can this happen with 8 rows? Well the same number of times. So we have 1+..+8 possible different rectangles on a row and 1+..+8 possible different configurations of those rectangles when considering the other rows. So the total number of possibilities is those to numbers multiplied. You end up with (1+..+8)^2.

    • @Vitcodb
      @Vitcodb 4 года назад

      Yeah... Looked at it and it was immediately obvious to me as well. Analytical minds 👌

  • @m.a.4794
    @m.a.4794 6 лет назад +52

    so If the number of squares is "infinity x infinity" then the number of rectangles is
    (1+2+3+4+5+........)^2 = (-1/12)^2 = 1/144 :D :D :D :D :D !!

    • @DrBlueCow
      @DrBlueCow 6 лет назад +4

      No, 1+2+3+4+.... diverges and is not equal to anything.

    • @MyVash12349
      @MyVash12349 5 лет назад +11

      @@DrBlueCow ...it's a joke

    • @4VKG
      @4VKG 4 года назад

      @@MyVash12349 ans. Is joke not the series!!

    • @rahimeozsoy4244
      @rahimeozsoy4244 4 года назад

      No, 1+2+3+4+5.. Diverges. İt is only true in number theory p-adic numbers

  • @ggtiket
    @ggtiket 5 лет назад +24

    Me: oh, 65.
    This guy: heh, no.

  • @gdemrakul2824
    @gdemrakul2824 Год назад

    First, we count the number of rectangles with height and lenght 1. There will be 8*8 = 64
    Second, we count the number of rectangles that have either height 1 or length 1, but not both. For each column, there will be 7 2-square rectangles, 6 3-square rectangles... 1 8-square rectangle. In total there are 28 possible rectangles. Since there are 8 columns, there will be 28*8=224 possible rectangles with lenght 1. SImilarly, there are also 224 rectangles with height 1.
    Third, we notice that each rectangle can be defined by 2 of it's opposite corners. For the rectangles we have already counted (height or lenght =1) there is only one pair of opposite corners that define the rectangle. For the rest of the rectangles there are 2 ways of defining that triangle (2 pairs of opposite corners). Let x denote the number of rectangles we haven't counted yet, that is, rectangles with both length and height greater than 1. We have 64choose2 = 2x + 2*224 . This is because 64choose2 represents all of the rectangles, except for the 64 rectangles with length and height 1, and in addition the rectangles with height and length greater than 1 are counted twice. Solving for x gives x = 784
    Finally, the total number of rectangles is equal to x + 2*224 + 64 = 784 + 448 + 64 = 1296

  • @aditya_01_jha
    @aditya_01_jha 4 года назад +1

    Love you sir
    I am from India and the way you teach is amazing. ♥️♥️♥️♥️♥️♥️♥️♥️♥️🙏🙏

  • @camerongray7767
    @camerongray7767 6 лет назад +57

    As soon as I saw number 1296, I knew it was 6^4 because I have memorised all my index powers from 1-10 raised to 1-10.

    • @nejx8711
      @nejx8711 6 лет назад +5

      Cameron Gray Bruh I can barely remember all the numbers 1-20 squared.
      Well I know all the ones up to 10 by heart, but 10+ I have to think about it a bit to figure it out...

    • @quantumsoul3495
      @quantumsoul3495 6 лет назад +1

      9^10 ?

    • @camerongray7767
      @camerongray7767 6 лет назад +2

      Nejx Well I already new my times tables up to 20. I a,ready knew the squares and the cubes up to 10 as well. Since I was pretty good with converting numbers between different bases I found it quite easy to learn all of these tables

    • @camerongray7767
      @camerongray7767 6 лет назад +2

      Minechaîne Antoinecraft Bruh I legit forgot this one. I remembered the start which was like 3B 486Mil, the I got the last 6 numbers confused 😤😱😭. That is one of the hardest ones to remember as well.

    • @austing.8682
      @austing.8682 5 лет назад +5

      I bet 1 raised to 1-10 was real tough

  • @formerunsecretarygeneralba9536
    @formerunsecretarygeneralba9536 5 лет назад +15

    I know I'm a bit late but you should do how many 3d rectangles are in a square shaped cube.
    1x1x1
    2×2×2
    3x3x3
    And so on

    • @quanphan3669
      @quanphan3669 5 лет назад +7

      The answer is 46656. (9 choose 2)^3 = 46656.

  • @ethanchow9170
    @ethanchow9170 4 года назад +4

    Ah shit this was on an exam, model answer was your last method. I will now remember this forever 😅

  • @AminulIslam-uu6ew
    @AminulIslam-uu6ew 4 года назад

    so much helpful buddy💙
    take love from Bangladesh 🇧🇩❤️💚

  • @NelsonMbigili-es6pw
    @NelsonMbigili-es6pw Год назад +1

    Thank you!

  • @kamikatze8224
    @kamikatze8224 5 лет назад +35

    64 because its not a rectangle anymore if lines go through it

  • @ujjwalmk
    @ujjwalmk 3 года назад +5

    If you are JEE aspirant, you know that this question is one of the beginner's solved example
    By the way answer is 9C2*9C2
    Because there are 9 lines, we select any 2 of them

    • @Ayush-yj5qv
      @Ayush-yj5qv 2 года назад +1

      Yes I easily figured out the answer

  • @jaydenhpiano5600
    @jaydenhpiano5600 4 года назад +7

    Before watching the video: Something to do with perms and combs that i forgot
    Edit: Oh wait i remember, you use the Combination thingy, you choose a random point to be one corner of the rectangle then choose another rectangle, then somehow subtract all the duplicate rectangles
    Edit 2: took some time thinking and i got it
    For the 1st point there are 81 points
    However for the second point there are only 64
    As 17 will result in a line or a dot not a rectangle. There are 4 ways a duplicate can be created. Using all this we end up with
    81x64/4 = 1296

  • @dragsterbixing2584
    @dragsterbixing2584 4 года назад +1

    Simply choose any two parallel lines in each direction by 9c2*9C2

  • @dgtutv
    @dgtutv 3 года назад

    Please do more discrete math counting it’s so fun

  • @BigDBrian
    @BigDBrian 6 лет назад +18

    how many retangles

  • @mythgaming-official
    @mythgaming-official 5 лет назад +5

    This calculation itself will take my whole exam time

  • @melvindebosscher826
    @melvindebosscher826 4 года назад +3

    Even the math teachers can’t count sometimes: 9 is followed by 11

  • @shlokjain5214
    @shlokjain5214 2 года назад +1

    select two vertical and two horizontal lines. There are 9 horizontal and vertical lines so answer is 9C2 * 9C2 = 1296

  • @AlgebraParaTodos
    @AlgebraParaTodos 3 года назад

    i loved it! thanks

  • @aryankarn7890
    @aryankarn7890 4 года назад +3

    Total Rectangles = (9C2)^2.
    Here "C" donates "Combinations"

  • @brendonjiang5690
    @brendonjiang5690 5 лет назад +18

    If we actually listen to our combinatorics teacher :0
    from 9 columns choose 2 multiplied by 9 rows choose 2 = 9C2 x 9C2 = 36x36=1296

    • @Nekrozu
      @Nekrozu 5 лет назад +2

      Someone_that_plays_minecraft should be 9C2. Cause 2C9 is math error.
      I’m sure it’s a typo.

    • @brendonjiang5690
      @brendonjiang5690 5 лет назад

      @@Nekrozu I like to write Combinations the opposite way. Your right.

    • @miloradowicz
      @miloradowicz 5 лет назад

      That always confuses me too, as in words I'd say "two out of nine". Though I almost always write Cs and Ps with factorials anyway.

    • @alfredwilson1795
      @alfredwilson1795 4 года назад

      @@miloradowicz I say ‘choose’ for C. So 9C2 is you have 9 things and you choose 2.

  • @slayaphobia4763
    @slayaphobia4763 4 года назад +2

    RUclips algorithm: this will be recommended in 2 years to the people who have to quarantine
    so they can burn some brain cells

  • @EngNALrashed
    @EngNALrashed 2 года назад

    Marvelous,thank GOD I completed the video,thanks a lot for the last solution.

  • @kantipoddar
    @kantipoddar 4 года назад

    This is first video of this channel that RUclips recommended me.. I saw it for a few minutes & subscribed immediately
    Now I commenting this after watching the full video.

  • @sergioh5515
    @sergioh5515 6 лет назад +5

    MORE DISCRETE MATH ty

  • @meghamala1993
    @meghamala1993 3 года назад +6

    Easier method:-
    No. Of vertical lines:9
    No. Of horizontal lines:9
    Ans: 9C2 × 9C2
    (To make a rectangle you need two vertical lines and two horizontal lines, so out of 9 lines lines you need two)

  • @aleksasekulic2133
    @aleksasekulic2133 6 лет назад +44

    You wrote rectangles wrong in thumbnail

    • @blackpenredpen
      @blackpenredpen  6 лет назад +42

      shhh, that's my kind of clickbait : )

    • @TomJakobW
      @TomJakobW 6 лет назад +11

      blackpenredpen worked

    • @15schaa
      @15schaa 6 лет назад +14

      No, it's intentional, because he untangled the problem, but it got RETANGLED so he's untangling it again for us.

  • @itsneil8581
    @itsneil8581 4 года назад +1

    After watching the video for 8 mins I saw the name of the channel. I can't stop laughing now.
    Grt channel btw.
    I'm hooked.

  • @marccasinsinan8023
    @marccasinsinan8023 4 года назад +1

    I like the way he teaches. Man i miss learning math

  • @mego2185
    @mego2185 3 года назад +3

    3:02
    *Plot twist:* he counted 9 then 11 on purpose to trigger Americans.

  • @camerongray7767
    @camerongray7767 6 лет назад +5

    I MADE THIS FORMULA BY MYSELF AND DIDNT HAVE TO COPY IT OFF ANYTHING! before watching the video:
    Rectangles= (((lines on side a) * (lines on side a -1))/2) * (((lines on side b) * (lines on side b -1))/2)
    This works for any rectangle or square. You can use this formula for any shape filled with boxes by doing this with the sides and I’m using the corners if you know what I mean. The formula works by continuing the combination of squares on each side and multiplying it by the combination on the other side.

  • @derossinator1510
    @derossinator1510 3 года назад +4

    Let's just say a lot and call it the Day

  • @zAvAvAz
    @zAvAvAz 3 года назад +2

    1296 is a perfect geometric frequency number and is speaking 3 dimensionally, well done.