A real HOTPO-tato

Define the operation "HOTPO" as follows, for positive integers.

If n is odd and greater than 1, form 3n+1

If n is even, form n/2

If n = 1, terminate the process

Example:

It takes 5 operations for HOTPO (5) to terminate.

HOTPO (5) = 16

HOTPO (16) = 8

HOTPO (8) = 4

HOTPO (4) = 2

HOTPO (2) = 1 (stop)

How many operations does it take for HOTPO(17) to terminate?

×

Problem Loading...

Note Loading...

Set Loading...