

Use the spreadsheet  to experiment with the 3x + 1 problem.

> f:=x->if x mod 2 =0 then x/2 else 3*x+1 fi;

f := proc (x) options operator, arrow; if `mod`(x,2...

> f(18);

9

> f(41);

124

> f(10);

5

> f(31);

94

>

癸ヴ種礛计, 狦琌案计, 玥 埃2, 狦琌计, 玥3 1,ㄌ秈︽, 程穦眔 {1,4,2}

>

20 15 1001 5000
10 46 3004 2500
5 23 149 1250
16 70 448 625
8 35 224 1876
4 106 112 938
2 53 56 469
1 160 28 1408
4 80 14 704
2 40 7 352
1 20 22 176
4 10 11 88
2 5 34 44
1 16 17 22
4 8 52 11
2 4 26 34
1 2 13 17
4 1 40 52
2 4 20 26
1 2 10 13
4 1 5 40
2 4 16 20
1 2 8 10
4 1 4 5
2 4 2 16
1 2 1 8
4 1 4 4
2 4 2 2
1 2 1 1
4 1 4 4

>