Hexagonal number sequence (#5640) · Ilgrim/Algorithms-Python@3a4cc7e · GitHub
Skip to content

Commit 3a4cc7e

Browse files
shri30yanscclauss
andauthored
Hexagonal number sequence (TheAlgorithms#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>
1 parent a281151 commit 3a4cc7e

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

maths/series/hexagonal_numbers.py

Lines changed: 42 additions & 0 deletions

0 commit comments

Comments
 (0)