triangular numbers but with a more simple formula | ScratchStats