1

I wish to plot three rectangulars with the same area in a grid page same as below one. How can I do that?

enter image description here

monfneg
  • 577
  • 3
  • 8

2 Answers2

1

Here is an example for $n =60$. Of coure, $n = 4$ does also work.

n = 60;
a = Divisors[n];
b = n/a;
Graphics[{
  FaceForm[], EdgeForm[Black], 
  MapThread[Rectangle[{0, 0}, {##}] &, {a, b}]
  }]

enter image description here

Henrik Schumacher
  • 106,770
  • 7
  • 179
  • 309
0

An alternative way using Divisors with RectangleChart:

n = 60;
RectangleChart[Transpose[{#, n / #} & @ Divisors[n]], 
 ChartLayout -> "Overlapped", ChartStyle -> FaceForm[], Axes -> False]

enter image description here

kglr
  • 394,356
  • 18
  • 477
  • 896