Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ solution42.py
File
solution42.py
project_euler/problem_042/solution42.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so
3
the first ten triangle numbers are:
4
Callers
nothing calls this directly
Calls
1
solution
Function · 0.70
Tested by
no test coverage detected