changeset 167 | 349d706586ef |
parent 144 | 716042628398 |
child 171 | 4c9497ab5caa |
166:780c40aaad27 | 167:349d706586ef |
---|---|
1 // Part 1 about the 3n+1 conjecture |
1 // Part 1 about the 3n+1 conjecture |
2 //================================== |
2 //================================== |
3 package CW6a |
|
4 |
|
3 |
5 |
4 object CW6a { |
6 object CW6a { |
5 |
7 |
6 def collatz(n: Long): Long = |
8 def collatz(n: Long): Long = |
7 if (n == 1) 1 else |
9 if (n == 1) 1 else |
16 } |
18 } |
17 |
19 |
18 |
20 |
19 } |
21 } |
20 |
22 |
23 |