summaryrefslogtreecommitdiff
path: root/progs/a422.py
blob: d1db25fea3e8e749ad95b0df2469a5f23f317fa9 (plain)
1
2
def is_octagonal(n): 
	return 3 * n * n - 2 * n