Computation Workshop Solution Checker

Counting Triangles

For each positive integer \(N\), let \(t(N)\) denote the number of right angled triangles with perimeter less than or equal to \(N\) having positive integer side lengths. For example \(t(30)=3\) with the three examples of right angled integer triangles being: \((3,4,5)\), \((6,8,10)\) and \((5,12,13)\).

Part A Determine \(t(666)\)
Part B Determine \(t(666666)\)