1
0

rename statics/euler and sync b93 code with main repo

This commit is contained in:
2017-11-20 17:38:54 +01:00
parent 0efeb3afeb
commit 69e3f51730
409 changed files with 745 additions and 509 deletions

View File

@@ -0,0 +1,8 @@
This problem is very similar to the previous one. We iterate through all Pentagonal numbers (starting at P_144) and test the numbers if they are hexagonal.
The test for hexagonal numbers is the same as in Problem-44, but we have to expand the iSquare function for int64 numbers ([20] is now 2^60 instead of 2^30).
The major trick is that we only need to test for the hexagonal property. Because all hexagonal numbers are also Triangle numbers.
Think about it, a Hexagon has six edges and a Triangle three, so every Hexagonal contains two triangles.
`H_{n} == T_{2*n}`