hotpo1: Half or triple plus one

Description Usage Arguments Value Examples

Description

Calculates half the input (if input even) or three times the input plus one (if input odd).

Usage

1
hotpo1(x)

Arguments

x

an integer

Value

Half the input, or triple it plus one.

Examples

1
2
hotpo1(6)
hotpo1(27)

nxskok/hotpo documentation built on May 24, 2019, 11:51 a.m.