| author | Christian Urban <christian.urban@kcl.ac.uk> |
| Wed, 02 Nov 2022 21:49:42 +0000 | |
| changeset 427 | 2a0ddb392d2b |
| parent 426 | 66d8cbd39ef6 |
| child 467 | 1b879b3e704e |
| permissions | -rw-r--r-- |
// Core Part 1 about the 3n+1 conjecture //============================================ object C1 { // ADD YOUR CODE BELOW //====================== //(1) def collatz(n: Long) : Long = ??? //(2) def collatz_max(bnd: Long) : (Long, Long) = ??? //(3) def is_pow_of_two(n: Long) : Boolean = ??? def is_hard(n: Long) : Boolean = ??? def last_odd(n: Long) : Long = ??? }