MCPcopy Create free account
hub / github.com/geekcomputers/Python / sumOfSeries

Function sumOfSeries

ARKA.py:1–3  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1def sumOfSeries(n):
2 x = n * (n + 1) / 2
3 return (int)(x * x)
4
5
6# Driver Function

Callers 1

ARKA.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected