summaryrefslogtreecommitdiff
path: root/progs/a498.py
blob: 728f1cb86830cabb5b7f1249b3d92ae75022f4e5 (plain)
1
2
def hexagonal_num(n): 
	return n*(2*n - 1)