Python/maths/series
Shriyans Gandhi 3a4cc7e310
Hexagonal number sequence (#5640)
* Hexagonal number sequence 

A hexagonal number sequence is a sequence of figurate numbers where the nth hexagonal number hₙ is the number of distinct dots in a pattern of dots consisting of the outlines of regular hexagons with sides up to n dots, when the hexagons are overlaid so that they share one vertex.

This program returns the hexagonal number sequence of n length.

* Update hexagonalnumbers.py

* Update hexagonalnumbers.py

* Update hexagonalnumbers.py

* Update hexagonalnumbers.py

* Update and rename hexagonalnumbers.py to hexagonal_numbers.py

* Length must be a positive integer

Co-authored-by: Christian Clauss <cclauss@me.com>
2021-10-29 09:39:32 +02:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
arithmetic.py Re-organize math/series (#5044) 2021-10-18 12:46:23 +08:00
geometric_series.py Harmonic Geometric and P-Series Added (#1633) 2019-12-14 06:46:02 +01:00
geometric.py Re-organize math/series (#5044) 2021-10-18 12:46:23 +08:00
harmonic_series.py [mypy] Fix type annotations for maths (#4617) 2021-08-18 12:45:07 +02:00
harmonic.py Re-organize math/series (#5044) 2021-10-18 12:46:23 +08:00
hexagonal_numbers.py Hexagonal number sequence (#5640) 2021-10-29 09:39:32 +02:00
p_series.py Harmonic Geometric and P-Series Added (#1633) 2019-12-14 06:46:02 +01:00