summaryrefslogtreecommitdiff
path: root/progs/a443.py
blob: 5daabfe38c2593d0f692117fbcf81290d046b9a9 (plain)
1
2
def tetrahedral_number(n): 
	return (n * (n + 1) * (n + 2)) / 6