Given the area, A, of a square, consider a circle having the area, πA, and the radius, r.
For a given slicing number n>1, find the (n+1)×2 matrix, M = [A1/π a1; A2/π a2; ...; An/π an; A_r L], where
  • in the first row (i=1), A1 stands for the area of one slice (like a pizza slice), and a1 stands for the logical 1 if A1 is smaller than or reaches the square's area A or a1 stands for the logical 0 if A1 surpasses A;
  • in the second row (i=2), A2 stands for the area of two slices and a2 has the same previous false-true meaning relative to the areas A2 and A;
  • and so on, until last slice of the circle;
  • in the last row (i=n+1), A_r is the area of the rectangle, with dimensions L×r, which contains the maximum possible number of slices, such that have the true meaning of their sum has the area smaller or equal than the square's area, in their adjacent arrangement.
Hint: Compare with Problem 61081.
input: (A,n)
output: M = [A1/π a1; A2/π a2; ...; An/π an; A_r L]

Solution Stats

30 Solutions

6 Solvers

Last Solution submitted on May 24, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers6

Suggested Problems

More from this Author19

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!