Simon’s Formula to Check Triangle Numbers

Simon spent the morning of December 5 pondering about how to test whether a number is a triangle number. “To test if something is a triangle number: double it, ask … Continue reading Simon’s Formula to Check Triangle Numbers

Triangle Numbers. Simon’s own code

Now this was pretty amazing! Simon’s new own code, that he so nonchalantly wrote while “having a break” from practicing recursive functions, generates “triangular numbers”. A triangular number or triangle number … Continue reading Triangle Numbers. Simon’s own code