POV-Ray : Newsgroups : povray.off-topic : Geometric puzzle : Re: Geometric puzzle Server Time
5 Sep 2024 17:17:13 EDT (-0400)
  Re: Geometric puzzle  
From: Kevin Wampler
Date: 16 Dec 2009 17:09:52
Message: <4b295ab0$1@news.povray.org>
Warp wrote:
>   So the task is simple: Write a function f(m,n) which tells how many
> rectangles can be found in an m x n grid. (Explain how you came up
> with the function).

You mean just something like n*m*(n-1)*(m-1)/4?  The derivation is 
pretty direct from the one-dimensional case.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.