aspose file tools*
The moose likes Meaningless Drivel and the fly likes puzzle of the day Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "puzzle of the day" Watch "puzzle of the day" New topic
Author

puzzle of the day

sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
one side of the bottom layer of a triangular pyramid has 12 balls. How many are there in the whole pyramid?


sona<br />SCJP
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Originally posted by sona nagee:
one side of the bottom layer of a triangular pyramid has 12 balls. How many are there in the whole pyramid?

I will try my best:
The top layer side length is 1 ball, layer sum is 1 ball;
The second layer side length is 2, layer sum is 3;
..................
So: sum = 1 + 2 + ... + side length = 1/2 * ( length + 1) * length;
................
So the twelveth layer has 78 ;
So the grand total is:
1 + 3 + 6 + 10 + 15 + 21 + 28 + 36 + 45 + 55 + 66 + 78 = 364 !
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
great Don.....
wait for a new one .. every day
Johnson Chong
Ranch Hand

Joined: Mar 16, 2001
Posts: 210
Hey! Don Liu, how come you have a 3D mind like that! Tell me pls, how long I got to wait for May and Susan?


-Surfing the JavaRanch in a sunny garden with a cold drink and laptop can't be beat. by Frank Carver(sheriff)
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Something tells me...
Johnson Chong
Ranch Hand

Joined: Mar 16, 2001
Posts: 210
Don Liu
Calculus of probabilities???!!!
What is that?
I've heard of calculus and probabilities but I just don't think I'll be able to find calculus of probabilities as a mathematical topic.
But I must say what a word.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
One of the definitions of calculus is "A system or method of calculation". So "calculus of probabilities" just means "calculation of probabilities". As it happens though, serious probability theory has lots of integrals in it, so you definitely need a good grasp of [integral] calculus to understand it.


"I'm not back." - Bill Harding, Twister
 
permaculture playing cards
 
subject: puzzle of the day