index
:
clp
main
A small Python compiler with optimizer written in Java
dcariotti
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
progs
/
a498.py
blob: 728f1cb86830cabb5b7f1249b3d92ae75022f4e5 (
plain
)
1
2
def
hexagonal_num
(
n
):
return
n
*
(
2
*
n
-
1
)