Tutorial 1

Question 1

A time t in seconds can be converted to days, hours, minutes and seconds using integer division:

  1. Divide t by 60; set t to the quotient and call the remainder s.

  2. Divide t by 60; set t to the quotient and call the remainder m.

  3. Divide t by 24; set d to the quotient and call the remainder h.

Calculate the number of days, hours, minutes and seconds in one million seconds. Display the result as follows:

1000000 seconds is xx days H:M:S
# It should be reasonably easy to follow the instructions in order to produce the correct code to perform the calculation.
# The only tricky part is to maintain the original value of `t` in a new variable `t_orig` so that we can include it in the final print statement.

t = 1000000
t_orig = t
s = t % 60
t = t // 60
m = t % 60
t = t // 60
h = t % 24
d = t // 24

print(t_orig, " seconds is ", d, " days ", h, ":", m, ":", s, sep="")
1000000 seconds is 11 days 13:46:40

Question 2

Iodine-131 is a radioisotope with a half-life \(t_\mathrm{half} = 8.02\) days.

  1. Use the equation \(r = \left(\frac{1}{2}\right) ^ {1/t_\mathrm{half}}\) to calculate the daily decay rate (i.e. the proportion of a sample of Iodine 131 that decays in one day).

  2. A sample of radioactive material containing Iodine-131 has an activity of \(1.67 \times 10^{12}\) Becquerels. Write a program which calculates the number of days it takes for the sample to reach an activity of \(10000\) Becquerels.

  3. Print the activity of the sample once every 7 days.

# This is very similar to the bacterial growth example in the notes.
# You shouldn't need to know much about radioactive decay to answer this.
# However, this is the kind of foundational knowledge that I would expect all Natural Scientists to be aware of,
# even if you don't specialise in physics.

t_half = 8.02
r = 0.5 ** (1/t_half)
print("Daily decay rate:", r)

activity = 1.67e12

i = 0
while activity > 10000:
    
    activity = activity * r
    
    i += 1 # or i = i + 1
    
    if i % 7 == 0:
        print(activity)
    
print("Number of days:", i)
Daily decay rate: 0.9172022001375253
911952222126.3414
497998117030.64197
271946400862.7711
148504266207.22452
81095087163.42525
44284338288.751495
24182754914.863205
13205698851.345032
7211357133.063099
3937971953.319482
2150444475.1502457
1174312944.7141201
641267843.954353
350183015.1331379
191227651.97698644
104425438.41462004
57024557.250736624
31139923.17400003
17004863.5541155
9286001.8593598
5070892.233720066
2769108.6471282765
1512152.5653041312
825755.0252234432
450927.6228649774
246242.18424542813
134467.72880470785
73430.02639984165
40098.60823121647
21897.014898581714
11957.503829158799
Number of days: 220

Question 3

We can calculate how many digits there are in a number by repeatedly dividing by 10 until the number is less than one.

  1. Write peudo-code for this calculation.

  2. Write a Python program to implement it, displaying the result in the format 1234 has 4 digits.

  3. Test your program with a variety of numbers.

  4. Extend your program so that it works for negative numbers.

  1. Pseudocode.

This is just an example. It is most important that it makes sense to you. Notice that each line corresponds to one line of Python.

set value of x
set y to value of x
set i = 0
repeat until x less than 1:
    divide x 10
    increase i by 1
display value of y and i
# 2.

x = 1234
y = x
i = 0
while x > 1:
    x = x / 10
    i += 1
print(y, "has", i, "digits")

#3.

# Change the value of x in the code above and test that the result is correct.
# It's a good idea to test 'edge cases' such as 1000, 99999

#4.

# The simplest way to do this is to multiply x by -1 if it is negative.
# This is quite a clever 'trick' that allows us to re-use our existing code!

x = -1234.
y = x
if x < 0:
    x = x * -1
    
i = 0
while x > 1:
    x = x / 10
    i += 1
print(y, "has", i, "digits")
1234 has 4 digits
-1234.0 has 4 digits

Question 4 (The Collatz Problem)

Given a positive integer n, the Collatz Operation is defined as follows:

  • If the number is even, divide it by two

  • If the number is odd, triple it and add one

Repeatedly applying the Collatz Operation results in a sequence of integers which eventually reaches the number 1.

Write a program which generates the Collatz Sequence for a given positive integer \(n\).

For example, if \(n = 5\) then your program should produce the following:

5
16
8
4
2
1

Given a positive integer \(n\), define the Collatz Number to be the length of the Collatz Sequence for \(n\). For example, the Collatz number of 5 is 6.

Write a program which calculates and prints the Collatz number of a given number \(n\). For example, if \(n=5\) your program should print The Collatz number of 5 is 6.

Write a program which finds the smallest number \(n\) whose Collatz Number is greater than 200.

# Despite a completely different problem, we can use a very similar pattern that 
# we used in the previous two questions. 

n = 5
m = n
i = 1
while n > 1:
    if n % 2 == 0:
        n = n // 2
    else:
        n = 3*n + 1
    i += 1 
print("The Collatz Number of", m, "is", i)
The Collatz Number of 5 is 6
# The second part is tricky because we need to repeat the previous
# code for sequential numbers. But we already know how to do this:
# using while loops. Thus, we have a while loop within a while loop.
# The outer one terminates when we reach a collatz number greater than 200.

# Keeping track of the various variables is difficult and it might take some
# perseverence to get this right. Using a function to encapsulate the inner loop
# might make it easier - but we haven't studied functions yet.

n = 1
i = 1
while i <= 200: # while i is less than *or equal to* 200
    i = 1
    m = n
    while m > 1:
        if m % 2 == 0:
            m = m // 2
        else:
            m = 3 * m + 1
        i += 1

    print(n, i)
    n = n + 1
    
print("The Collatz Number of ", n - 1, "is", i) #note that we have to subract 1 from n here
1 1
2 2
3 8
4 3
5 6
6 9
7 17
8 4
9 20
10 7
11 15
12 10
13 10
14 18
15 18
16 5
17 13
18 21
19 21
20 8
21 8
22 16
23 16
24 11
25 24
26 11
27 112
28 19
29 19
30 19
31 107
32 6
33 27
34 14
35 14
36 22
37 22
38 22
39 35
40 9
41 110
42 9
43 30
44 17
45 17
46 17
47 105
48 12
49 25
50 25
51 25
52 12
53 12
54 113
55 113
56 20
57 33
58 20
59 33
60 20
61 20
62 108
63 108
64 7
65 28
66 28
67 28
68 15
69 15
70 15
71 103
72 23
73 116
74 23
75 15
76 23
77 23
78 36
79 36
80 10
81 23
82 111
83 111
84 10
85 10
86 31
87 31
88 18
89 31
90 18
91 93
92 18
93 18
94 106
95 106
96 13
97 119
98 26
99 26
100 26
101 26
102 26
103 88
104 13
105 39
106 13
107 101
108 114
109 114
110 114
111 70
112 21
113 13
114 34
115 34
116 21
117 21
118 34
119 34
120 21
121 96
122 21
123 47
124 109
125 109
126 109
127 47
128 8
129 122
130 29
131 29
132 29
133 29
134 29
135 42
136 16
137 91
138 16
139 42
140 16
141 16
142 104
143 104
144 24
145 117
146 117
147 117
148 24
149 24
150 16
151 16
152 24
153 37
154 24
155 86
156 37
157 37
158 37
159 55
160 11
161 99
162 24
163 24
164 112
165 112
166 112
167 68
168 11
169 50
170 11
171 125
172 32
173 32
174 32
175 81
176 19
177 32
178 32
179 32
180 19
181 19
182 94
183 94
184 19
185 45
186 19
187 45
188 107
189 107
190 107
191 45
192 14
193 120
194 120
195 120
196 27
197 27
198 27
199 120
200 27
201 19
202 27
203 40
204 27
205 27
206 89
207 89
208 14
209 40
210 40
211 40
212 14
213 14
214 102
215 102
216 115
217 27
218 115
219 53
220 115
221 115
222 71
223 71
224 22
225 53
226 14
227 14
228 35
229 35
230 35
231 128
232 22
233 84
234 22
235 128
236 35
237 35
238 35
239 53
240 22
241 22
242 97
243 97
244 22
245 22
246 48
247 48
248 110
249 48
250 110
251 66
252 110
253 110
254 48
255 48
256 9
257 123
258 123
259 123
260 30
261 30
262 30
263 79
264 30
265 123
266 30
267 22
268 30
269 30
270 43
271 43
272 17
273 30
274 92
275 92
276 17
277 17
278 43
279 43
280 17
281 43
282 17
283 61
284 105
285 105
286 105
287 43
288 25
289 30
290 118
291 118
292 118
293 118
294 118
295 56
296 25
297 74
298 25
299 118
300 17
301 17
302 17
303 43
304 25
305 38
306 38
307 38
308 25
309 25
310 87
311 87
312 38
313 131
314 38
315 38
316 38
317 38
318 56
319 56
320 12
321 25
322 100
323 100
324 25
325 25
326 25
327 144
328 113
329 51
330 113
331 25
332 113
333 113
334 69
335 69
336 12
337 113
338 51
339 51
340 12
341 12
342 126
343 126
344 33
345 126
346 33
347 126
348 33
349 33
350 82
351 82
352 20
353 126
354 33
355 33
356 33
357 33
358 33
359 51
360 20
361 46
362 20
363 46
364 95
365 95
366 95
367 46
368 20
369 20
370 46
371 46
372 20
373 20
374 46
375 46
376 108
377 64
378 108
379 59
380 108
381 108
382 46
383 46
384 15
385 33
386 121
387 121
388 121
389 121
390 121
391 121
392 28
393 59
394 28
395 77
396 28
397 28
398 121
399 121
400 28
401 20
402 20
403 20
404 28
405 28
406 41
407 41
408 28
409 41
410 28
411 134
412 90
413 90
414 90
415 134
416 15
417 134
418 41
419 41
420 41
421 41
422 41
423 33
424 15
425 59
426 15
427 54
428 103
429 103
430 103
431 41
432 116
433 28
434 28
435 28
436 116
437 116
438 54
439 54
440 116
441 28
442 116
443 54
444 72
445 72
446 72
447 98
448 23
449 116
450 54
451 54
452 15
453 15
454 15
455 41
456 36
457 129
458 36
459 129
460 36
461 36
462 129
463 129
464 23
465 36
466 85
467 85
468 23
469 23
470 129
471 129
472 36
473 36
474 36
475 28
476 36
477 36
478 54
479 54
480 23
481 49
482 23
483 23
484 98
485 98
486 98
487 142
488 23
489 49
490 23
491 142
492 49
493 49
494 49
495 98
496 111
497 23
498 49
499 49
500 111
501 111
502 67
503 67
504 111
505 62
506 111
507 36
508 49
509 49
510 49
511 62
512 10
513 36
514 124
515 124
516 124
517 124
518 124
519 62
520 31
521 124
522 31
523 124
524 31
525 31
526 80
527 80
528 31
529 31
530 124
531 124
532 31
533 31
534 23
535 23
536 31
537 23
538 31
539 49
540 44
541 44
542 44
543 137
544 18
545 44
546 31
547 31
548 93
549 93
550 93
551 44
552 18
553 137
554 18
555 31
556 44
557 44
558 44
559 88
560 18
561 44
562 44
563 44
564 18
565 18
566 62
567 62
568 106
569 57
570 106
571 31
572 106
573 106
574 44
575 44
576 26
577 31
578 31
579 31
580 119
581 119
582 119
583 31
584 119
585 57
586 119
587 119
588 119
589 119
590 57
591 57
592 26
593 75
594 75
595 75
596 26
597 26
598 119
599 119
600 18
601 57
602 18
603 70
604 18
605 18
606 44
607 44
608 26
609 132
610 39
611 39
612 39
613 39
614 39
615 70
616 26
617 132
618 26
619 132
620 88
621 88
622 88
623 132
624 39
625 26
626 132
627 132
628 39
629 39
630 39
631 39
632 39
633 31
634 39
635 31
636 57
637 57
638 57
639 132
640 13
641 52
642 26
643 26
644 101
645 101
646 101
647 39
648 26
649 145
650 26
651 101
652 26
653 26
654 145
655 145
656 114
657 52
658 52
659 52
660 114
661 114
662 26
663 26
664 114
665 52
666 114
667 145
668 70
669 70
670 70
671 96
672 13
673 65
674 114
675 114
676 52
677 52
678 52
679 65
680 13
681 65
682 13
683 39
684 127
685 127
686 127
687 39
688 34
689 127
690 127
691 127
692 34
693 34
694 127
695 127
696 34
697 127
698 34
699 65
700 83
701 83
702 83
703 171
704 21
705 34
706 127
707 127
708 34
709 34
710 34
711 65
712 34
713 26
714 34
715 26
716 34
717 34
718 52
719 52
720 21
721 47
722 47
723 47
724 21
725 21
726 47
727 47
728 96
729 34
730 96
731 140
732 96
733 96
734 47
735 47
736 21
737 140
738 21
739 21
740 47
741 47
742 47
743 96
744 21
745 91
746 21
747 47
748 47
749 47
750 47
751 140
752 109
753 21
754 65
755 65
756 109
757 109
758 60
759 60
760 109
761 34
762 109
763 153
764 47
765 47
766 47
767 60
768 16
769 34
770 34
771 34
772 122
773 122
774 122
775 153
776 122
777 34
778 122
779 60
780 122
781 122
782 122
783 122
784 29
785 122
786 60
787 60
788 29
789 29
790 78
791 78
792 29
793 78
794 29
795 104
796 122
797 122
798 122
799 73
800 29
801 60
802 21
803 21
804 21
805 21
806 21
807 73
808 29
809 47
810 29
811 135
812 42
813 42
814 42
815 135
816 29
817 42
818 42
819 42
820 29
821 29
822 135
823 135
824 91
825 135
826 91
827 42
828 91
829 91
830 135
831 135
832 16
833 29
834 135
835 135
836 42
837 42
838 42
839 86
840 42
841 42
842 42
843 42
844 42
845 42
846 34
847 34
848 16
849 60
850 60
851 60
852 16
853 16
854 55
855 55
856 104
857 29
858 104
859 148
860 104
861 104
862 42
863 42
864 117
865 148
866 29
867 29
868 29
869 29
870 29
871 179
872 117
873 148
874 117
875 29
876 55
877 55
878 55
879 148
880 117
881 117
882 29
883 29
884 117
885 117
886 55
887 55
888 73
889 148
890 73
891 47
892 73
893 73
894 99
895 99
896 24
897 68
898 117
899 117
900 55
901 55
902 55
903 117
904 16
905 68
906 16
907 55
908 16
909 16
910 42
911 42
912 37
913 130
914 130
915 130
916 37
917 37
918 130
919 130
920 37
921 130
922 37
923 68
924 130
925 130
926 130
927 117
928 24
929 130
930 37
931 37
932 86
933 86
934 86
935 130
936 24
937 174
938 24
939 86
940 130
941 130
942 130
943 37
944 37
945 37
946 37
947 37
948 37
949 37
950 29
951 29
952 37
953 29
954 37
955 29
956 55
957 55
958 55
959 130
960 24
961 50
962 50
963 50
964 24
965 24
966 24
967 143
968 99
969 50
970 99
971 37
972 99
973 99
974 143
975 143
976 24
977 99
978 50
979 50
980 24
981 24
982 143
983 143
984 50
985 24
986 50
987 37
988 50
989 50
990 99
991 99
992 112
993 94
994 24
995 24
996 50
997 50
998 50
999 50
1000 112
1001 143
1002 112
1003 42
1004 68
1005 68
1006 68
1007 94
1008 112
1009 112
1010 63
1011 63
1012 112
1013 112
1014 37
1015 37
1016 50
1017 156
1018 50
1019 63
1020 50
1021 50
1022 63
1023 63
1024 11
1025 37
1026 37
1027 37
1028 125
1029 125
1030 125
1031 37
1032 125
1033 156
1034 125
1035 125
1036 125
1037 125
1038 63
1039 63
1040 32
1041 125
1042 125
1043 125
1044 32
1045 32
1046 125
1047 125
1048 32
1049 63
1050 32
1051 94
1052 81
1053 81
1054 81
1055 169
1056 32
1057 81
1058 32
1059 32
1060 125
1061 125
1062 125
1063 76
1064 32
1065 76
1066 32
1067 63
1068 24
1069 24
1070 24
1071 169
1072 
32
1073 24
1074 24
1075 24
1076 32
1077 32
1078 50
1079 50
1080 45
1081 138
1082 45
1083 138
1084 45
1085 45
1086 138
1087 138
1088 19
1089 45
1090 45
1091 45
1092 32
1093 32
1094 32
1095 76
1096 94
1097 138
1098 94
1099 32
1100 94
1101 94
1102 45
1103 45
1104 19
1105 94
1106 138
1107 138
1108 19
1109 19
1110 32
1111 32
1112 45
1113 138
1114 45
1115 94
1116 45
1117 45
1118 89
1119 89
1120 19
1121 45
1122 45
1123 45
1124 45
1125 45
1126 45
1127 138
1128 19
1129 37
1130 19
1131 37
1132 63
1133 63
1134 63
1135 63
1136 107
1137 19
1138 58
1139 58
1140 107
1141 107
1142 32
1143 32
1144 107
1145 151
1146 107
1147 58
1148 45
1149 45
1150 45
1151 58
1152 27
1153 151
1154 32
1155 32
1156 32
1157 32
1158 32
1159 58
1160 120
1161 182
1162 120
1163 151
1164 120
1165 120
1166 32
1167 32
1168 120
1169 58
1170 58
1171 58
1172 120
1173 120
1174 120
1175 120
1176 120
1177 32
1178 120
1179 58
1180 58
1181 58
1182 58
1183 89
1184 27
1185 151
1186 76
1187 76
1188 76
1189 76
1190 76
1191 50
1192 27
1193 102
1194 27
1195 120
1196 120
1197 120
1198 120
1199 71
1200 19
1201 58
1202 58
1203 58
1204 19
1205 19
1206 71
1207 71
1208 19
1209 58
1210 19
1211 71
1212 45
1213 45
1214 45
1215 164
1216 27
1217 133
1218 133
1219 133
1220 40
1221 40
1222 40
1223 133
1224 40
1225 133
1226 40
1227 133
1228 40
1229 40
1230 71
1231 71
1232 27
1233 133
1234 133
1235 133
1236 27
1237 27
1238 133
1239 133
1240 89
1241 40
1242 89
1243 71
1244 89
1245 89
1246 133
1247 133
1248 40
1249 177
1250 27
1251 27
1252 133
1253 133
1254 133
1255 89
1256 40
1257 40
1258 40
1259 84
1260 40
1261 40
1262 40
1263 177
1264 40
1265 40
1266 32
1267 32
1268 40
1269 40
1270 32
1271 32
1272 58
1273 32
1274 58
1275 84
1276 58
1277 58
1278 133
1279 133
1280 14
1281 53
1282 53
1283 53
1284 27
1285 27
1286 27
1287 146
1288 102
1289 146
1290 102
1291 53
1292 102
1293 102
1294 40
1295 40
1296 27
1297 102
1298 146
1299 146
1300 27
1301 27
1302 102
1303 102
1304 27
1305 53
1306 27
1307 177
1308 146
1309 146
1310 146
1311 102
1312 115
1313 27
1314 53
1315 53
1316 53
1317 53
1318 53
1319 146
1320 115
1321 102
1322 115
1323 53
1324 27
1325 27
1326 27
1327 53
1328 115
1329 53
1330 53
1331 53
1332 115
1333 115
1334 146
1335 146
1336 71
1337 45
1338 71
1339 27
1340 71
1341 71
1342 97
1343 97
1344 14
1345 115
1346 66
1347 66
1348 115
1349 115
1350 115
1351 159
1352 53
1353 40
1354 53
1355 115
1356 53
1357 53
1358 66
1359 66
1360 14
1361 53
1362 66
1363 66
1364 14
1365 14
1366 40
1367 40
1368 128
1369 40
1370 128
1371 115
1372 128
1373 128
1374 40
1375 40
1376 35
1377 159
1378 128
1379 128
1380 128
1381 128
1382 128
1383 97
1384 35
1385 66
1386 35
1387 66
1388 128
1389 128
1390 128
1391 115
1392 35
1393 35
1394 128
1395 128
1396 35
1397 35
1398 66
1399 66
1400 84
1401 97
1402 84
1403 128
1404 84
1405 84
1406 172
1407 172
1408 22
1409 84
1410 35
1411 35
1412 128
1413 128
1414 128
1415 35
1416 35
1417 79
1418 35
1419 128
1420 35
1421 35
1422 66
1423 66
1424 35
1425 27
1426 27
1427 27
1428 35
1429 35
1430 27
1431 27
1432 35
1433 27
1434 35
1435 79
1436 53
1437 53
1438 53
1439 128
1440 22
1441 141
1442 48
1443 48
1444 48
1445 48
1446 48
1447 53
1448 22
1449 141
1450 22
1451 141
1452 48
1453 48
1454 48
1455 141
1456 97
1457 35
1458 35
1459 35
1460 97
1461 97
1462 141
1463 141
1464 97
1465 35
1466 97
1467 141
1468 48
1469 48
1470 48
1471 172
1472 22
1473 97
1474 141
1475 141
1476 22
1477 22
1478 22
1479 97
1480 48
1481 35
1482 48
1483 141
1484 48
1485 48
1486 97
1487 97
1488 22
1489 48
1490 92
1491 92
1492 22
1493 22
1494 48
1495 48
1496 48
1497 48
1498 48
1499 48
1500 48
1501 48
1502 141
1503 141
1504 110
1505 40
1506 22
1507 22
1508 66
1509 66
1510 66
1511 92
1512 110
1513 66
1514 110
1515 141
1516 61
1517 61
1518 61
1519 154
1520 110
1521 110
1522 35
1523 35
1524 110
1525 110
1526 154
1527 154
1528 48
1529 61
1530 48
1531 61
1532 48
1533 48
1534 61
1535 61
1536 17
1537 154
1538 35
1539 35
1540 35
1541 35
1542 35
1543 110
1544 123
1545 61
1546 123
1547 35
1548 123
1549 123
1550 154
1551 154
1552 123
1553 123
1554 35
1555 35
1556 123
1557 123
1558 61
1559 61
1560 123
1561 61
1562 123
1563 154
1564 123
1565 123
1566 123
1567 61
1568 30
1569 35
1570 123
1571 123
1572 61
1573 61
1574 61
1575 61
1576 30
1577 92
1578 30
1579 123
1580 79
1581 79
1582 79
1583 167
1584 30
1585 79
1586 79
1587 79
1588 30
1589 30
1590 105
1591 105
1592 123
1593 123
1594 123
1595 74
1596 123
1597 123
1598 74
1599 74
1600 30
1601 61
1602 61
1603 61
1604 22
1605 22
1606 22
1607 167
1608 22
1609 74
1610 22
1611 22
1612 22
1613 22
1614 74
1615 74
1616 30
1617 48
1618 48
1619 48
1620 30
1621 30
1622 136
1623 136
1624 43
1625 136
1626 43
1627 74
1628 43
1629 43
1630 136
1631 136
1632 30
1633 136
1634 43
1635 43
1636 43
1637 43
1638 43
1639 105
1640 30
1641 74
1642 30
1643 74
1644 136
1645 136
1646 136
1647 136
1648 92
1649 30
1650 136
1651 136
1652 92
1653 92
1654 43
1655 43
1656 92
1657 74
1658 92
1659 43
1660 136
1661 136
1662 136
1663 74
1664 17
1665 180
1666 30
1667 30
1668 136
1669 136
1670 136
1671 43
1672 43
1673 92
1674 43
1675 136
1676 43
1677 43
1678 87
1679 87
1680 43
1681 43
1682 43
1683 43
1684 43
1685 43
1686 43
1687 43
1688 43
1689 35
1690 43
1691 136
1692 35
1693 35
1694 35
1695 180
1696 17
1697 35
1698 61
1699 61
1700 61
1701 61
1702 61
1703 61
1704 17
1705 136
1706 17
1707 149
1708 56
1709 56
1710 56
1711 149
1712 105
1713 30
1714 30
1715 30
1716 105
1717 105
1718 149
1719 149
1720 105
1721 56
1722 105
1723 56
1724 43
1725 43
1726 43
1727 56
1728 118
1729 105
1730 149
1731 149
1732 30
1733 30
1734 30
1735 105
1736 30
1737 105
1738 30
1739 56
1740 30
1741 30
1742 180
1743 180
1744 118
1745 149
1746 149
1747 149
1748 118
1749 118
1750 30
1751 30
1752 56
1753 56
1754 56
1755 43
1756 56
1757 56
1758 149
1759 149
1760 118
1761 105
1762 118
1763 118
1764 30
1765 30
1766 30
1767 149
1768 118
1769 56
1770 118
1771 56
1772 56
1773 56
1774 56
1775 87
1776 74
1777 118
1778 149
1779 149
1780 74
1781 74
1782 48
1783 48
1784 74
1785 30
1786 74
1787 48
1788 100
1789 100
1790 100
1791 100
1792 25
1793 118
1794 69
1795 69
1796 118
1797 118
1798 118
1799 69
1800 56
1801 162
1802 56
1803 43
1804 56
1805 56
1806 118
1807 118
1808 17
1809 56
1810 69
1811 69
1812 17
1813 17
1814 56
1815 56
1816 17
1817 69
1818 17
1819 162
1820 43
1821 43
1822 43
1823 162
1824 38
1825 43
1826 131
1827 131
1828 131
1829 131
1830 131
1831 69
1832 38
1833 43
1834 38
1835 131
1836 131
1837 131
1838 131
1839 162
1840 38
1841 131
1842 131
1843 131
1844 38
1845 38
1846 69
1847 69
1848 131
1849 69
1850 131
1851 131
1852 131
1853 131
1854 118
1855 118
1856 25
1857 38
1858 131
1859 131
1860 38
1861 38
1862 38
1863 69
1864 87
1865 69
1866 87
1867 38
1868 87
1869 87
1870 131
1871 131
1872 25
1873 87
1874 175
1875 175
1876 25
1877 25
1878 87
1879 87
1880 131
1881 38
1882 131
1883 87
1884 131
1885 131
1886 38
1887 38
1888 38
1889 82
1890 38
1891 38
1892 38
1893 38
1894 38
1895 175
1896 38
1897 69
1898 38
1899 69
1900 30
1901 30
1902 30
1903 131
1904 38
1905 38
1906 30
1907 30
1908 38
1909 38
1910 30
1911 30
1912 56
1913 82
1914 56
1915 175
1916 56
1917 56
1918 131
1919 131
1920 25
1921 144
1922 51
1923 51
1924 51
1925 51
1926 51
1927 51
1928 25
1929 56
1930 25
1931 144
1932 25
1933 25
1934 144
1935 144
1936 100
1937 51
1938 51
1939 51
1940 100
1941 100
1942 38
1943 38
1944 100
1945 38
1946 100
1947 82
1948 144
1949 144
1950 144
1951 175
1952 25
1953 38
1954 100
1955 100
1956 51
1957 51
1958 51
1959 82
1960 25
1961 175
1962 25
1963 82
1964 144
1965 144
1966 144
1967 100
1968 51
1969 25
1970 25
1971 25
1972 51
1973 51
1974 38
1975 38
1976 51
1977 144
1978 51
1979 144
1980 100
1981 100
1982 100
1983 51
1984 113
1985 51
1986 95
1987 95
1988 25
1989 25
1990 25
1991 51
1992 51
1993 51
1994 51
1995 51
1996 51
1997 51
1998 51
1999 51
2000 113
2001 51
2002 144
2003 144
2004 113
2005 113
2006 43
2007 43
2008 69
2009 25
2010 69
2011 43
2012 69
2013 69
2014 95
2015 95
2016 113
2017 69
2018 113
2019 113
2020 64
2021 64
2022 64
2023 157
2024 113
2025 157
2026 113
2027 157
2028 38
2029 38
2030 38
2031 64
2032 51
2033 113
2034 157
2035 157
2036 51
2037 51
2038 64
2039 64
2040 51
2041 64
2042 51
2043 157
2044 64
2045 64
2046 64
2047 157
2048 12
2049 157
2050 38
2051 38
2052 38
2053 38
2054 38
2055 38
2056 126
2057 113
2058 126
2059 38
2060 126
2061 126
2062 38
2063 38
2064 126
2065 126
2066 157
2067 157
2068 126
2069 126
2070 126
2071 126
2072 126
2073 38
2074 126
2075 95
2076 64
2077 64
2078 64
2079 51
2080 33
2081 64
2082 126
2083 126
2084 126
2085 126
2086 126
2087 113
2088 33
2089 64
2090 33
2091 38
2092 126
2093 126
2094 126
2095 108
2096 33
2097 64
2098 64
2099 64
2100 33
2101 33
2102 95
2103 95
2104 82
2105 126
2106 82
2107 157
2108 82
2109 82
2110 170
2111 170
2112 33
2113 82
2114 82
2115 82
2116 33
2117 33
2118 33
2119 82
2120 126
2121 108
2122 126
2123 33
2124 126
2125 126
2126 77
2127 77
2128 33
2129 126
2130 77
2131 77
2132 33
2133 33
2134 64
2135 64
2136 25
2137 64
2138 25
2139 77
2140 25
2141 25
2142 170
2143 170
2144 33
2145 77
2146 25
2147 25
2148 25
2149 25
2150 25
2151 108
2152 33
2153 77
2154 33
2155 170
2156 51
2157 51
2158 51
2159 126
2160 46
2161 33
2162 139
2163 139
2164 46
2165 46
2166 139
2167 139
2168 46
2169 77
2170 46
2171 51
2172 139
2173 139
2174 139
2175 77
2176 20
2177 139
2178 46
2179 46
2180 46
2181 46
2182 46
2183 139
2184 33
2185 108
2186 33
2187 77
2188 33
2189 33
2190 77
2191 77
2192 95
2193 139
2194 139
2195 139
2196 95
2197 95
2198 33
2199 33
2200 95
2201 139
2202 95
2203 51
2204 46
2205 46
2206 46
2207 170
2208 20
2209 77
2210 95
2211 95
2212 139
2213 139
2214 139
2215 121
2216 20
2217 77
2218 20
2219 95
2220 33
2221 33
2222 33
2223 183
2224 46
2225 139
2226 139
2227 139
2228 46
2229 46
2230 95
2231 95
2232 46
2233 139
2234 46
2235 46
2236 90
2237 90
2238 90
2239 139
2240 20
2241 46
2242 46
2243 46
2244 46
2245 46
2246 46
2247 77
2248 46
2249 46
2250 46
2251 38
2252 46
2253 46
2254 139
2255 139
2256 20
2257 38
2258 38
2259 38
2260 20
2261 20
2262 38
2263 38
2264 64
2265 64
2266 64
2267 90
2268 64
2269 64
2270 64
2271 64
2272 108
2273 139
2274 20
2275 20
2276 59
2277 59
2278 59
2279 152
2280 108
2281 152
2282 108
2283 59
2284 33
2285 33
2286 33
2287 121
2288 108
2289 108
2290 152
2291 152
2292 108
2293 108
2294 59
2295 59
2296 46
2297 59
2298 46
2299 152
2300 46
2301 46
2302 59
2303 59
2304 28
2305 108
2306 152
2307 152
2308 33
2309 33
2310 33
2311 152
2312 33
2313 108
2314 33
2315 108
2316 33
2317 33
2318 59
2319 59
2320 121
2321 33
2322 183
2323 183
2324 121
2325 121
2326 152
2327 152
2328 121
2329 152
2330 121
2331 108
2332 33
2333 33
2334 33
2335 90
2336 121
2337 59
2338 59
2339 59
2340 59
2341 59
2342 59
2343 152
2344 121
2345 152
2346 121
2347 108
2348 121
2349 121
2350 121
2351 59
2352 121
2353 33
2354 33
2355 33
2356 121
2357 121
2358 59
2359 59
2360 59
2361 59
2362 59
2363 59
2364 59
2365 59
2366 90
2367 90
2368 28
2369 121
2370 152
2371 152
2372 77
2373 77
2374 77
2375 165
2376 77
2377 51
2378 77
2379 77
2380 77
2381 77
2382 51
2383 51
2384 28
2385 103
2386 103
2387 103
2388 28
2389 28
2390 121
2391 121
2392 121
2393 72
2394 121
2395 33
2396 121
2397 121
2398 72
2399 72
2400 20
2401 165
2402 59
2403 59
2404 59
2405 59
2406 59
2407 72
2408 20
2409 121
2410 20
2411 165
2412 72
2413 72
2414 72
2415 121
2416 20
2417 20
2418 59
2419 59
2420 20
2421 20
2422 72
2423 72
2424 46
2425 165
2426 46
2427 121
2428 46
2429 46
2430 165
2431 165
2432 28
2433 46
2434 134
2435 134
2436 134
2437 134
2438 134
2439 134
2440 41
2441 72
2442 41
2443 46
2444 41
2445 41
2446 134
2447 134
2448 41
2449 134
2450 134
2451 134
2452 41
2453 41
2454 134
2455 134
2456 41
2457 134
2458 41
2459 103
2460 72
2461 72
2462 72
2463 209
The Collatz Number of  2463
 is 209