semvec/pypi-packages huggingface dataset:
n-sum 0.1.2
A simple Python package to compute sums of numbers, lists, and series like arithmetic and geometric series
License: MIT
Requires Python: >=3.8
Keywords: sum, numbers, series, arithmetic, geometric, math, python

# n_sum

[![PyPI Version](https://img.shields.io/pypi/v/n_sum.svg)](https://pypi.org/project/n_sum/)
[![Python Version](https://img.shields.io/pypi/pyversions/n_sum.svg)](https://pypi.org/project/n_sum/)
[![License](https://img.shields.io/pypi/l/n_sum.svg)](https://github.com/shkumar5-india/n_sum/blob/main/LICENSE)

A Python package for calculating sums of numbers and series.  
Provides functions for summing natural numbers, lists, squares, cubes, and arithmetic/geometric series.

---

## Features

- `sum_n(n)` – Sum of first `n` natural numbers  
- `sum_list(numbers)` – Sum of a list of numbers  
- `sum_squares(n)` – Sum of squares of first `n` natural numbers  
- `sum_cubes(n)` – Sum of cubes of first `n` natural numbers  
- `arithmetic_series(a, d, n)` – Sum of first `n` terms of an arithmetic series  
- `geometric_series(a, r, n)` – Sum of first `n` terms of a geometric series

---

## Installation

**From PyPI:**

```bash
pip install n_sum