• OK, it's on.
  • Please note that many, many Email Addresses used for spam, are not accepted at registration. Select a respectable Free email.
  • Done now. Domine miserere nobis.

how many squares

Void

oblivious
Local time
Today 9:51 PM
Joined
Feb 5, 2013
Messages
100
---
'lo everyone.

I was struck by a picture on facebook some time ago. it was the following:
howmanysquares1.gif


with the question 'How many squares do you see'

Not too hard of a challenge. What did occur to me though was whether or not there would be a formula for these squares. So I started the math, and found the formula. For those interested, it is:

C(n)=(1/3)n^3 + (1/2)n^2 + (1/6)n

where C is the number of squares, and where n is the number of squares on a side, e.g. in the picture it's 3.

I also found that:

C(n) = n^2 + C(n-1)

but that of course wouldn't help if you just wanted to know C(n) for n=5

Turns out, it was already on the internet somewhere, so my actions were in vein. Or were they? I kinda enjoyed this adventure, and I would like to find more of these. But I can't. Can any of you maybe direct me to similar problems?

EDIT: I don't know if this is the correct subforum :S
 

Vrecknidj

Prolific Member
Local time
Today 3:51 PM
Joined
Nov 21, 2007
Messages
2,196
---
Location
Michigan/Indiana, USA
X = total # of squares
n = number of squares per side

X = (n)(n) + (n-1)(n-1) + (n-2)(n-2) + ... + (1)(1)

Your example

14 = (3)(3) + (2)(2) + (1)(1)
 
Top Bottom