itchy
04-08-02, 02:19 PM
Its so quiet in this section so I thought I should put in a fun little problem that I have been working on lately.
Its a math problem really but you need a computer program to calculate the solutions. Part of the challenge is to find a fast enough algorithm.
The problem is to find two pyramids that consist of spheres so that when you combine all the spheres you can build one larger pyramid using all the spheres. Got it?
A tetrahedral pyramid of spheres has one bottom and three sides. So the first pyramid consists of four spheres (if you don't count one sphere as a pyramid), the next consists of ten spheres, the next has twenty, etc.
So the first solution is 10 + 10 = 20
Can anyone give me the 100:th solution? Or perhaps the 500:th solution? :)
Its a math problem really but you need a computer program to calculate the solutions. Part of the challenge is to find a fast enough algorithm.
The problem is to find two pyramids that consist of spheres so that when you combine all the spheres you can build one larger pyramid using all the spheres. Got it?
A tetrahedral pyramid of spheres has one bottom and three sides. So the first pyramid consists of four spheres (if you don't count one sphere as a pyramid), the next consists of ten spheres, the next has twenty, etc.
So the first solution is 10 + 10 = 20
Can anyone give me the 100:th solution? Or perhaps the 500:th solution? :)