Sat Jun 11 19:39:42 2022 collatz_dict_test(): Python version: 3.6.9 collatz_dict() uses a Python dict() for the Collatz problem. collatz_test(): collatz() applies one step of the Collatz iteration. collatz( 0 ) calculation failed. 1 2 5 16 15 46 27 82 collatz_fill_test(): collatz_fill() ensures that the Collatz dictionary includes all integers from 0 to n_max as keys. collatz_dictionary after a few inserts: [(1, 2), (2, 1), (4, 2), (5, 16), (8, 4), (10, 5), (15, 46), (16, 8), (20, 10), (23, 70), (35, 106), (40, 20), (46, 23), (53, 160), (70, 35), (80, 40), (106, 53), (160, 80)] collatz_dictionary after filling up to 10 [(1, 2), (2, 1), (3, 10), (4, 2), (5, 16), (6, 3), (7, 22), (8, 4), (9, 28), (10, 5), (11, 34), (13, 40), (14, 7), (15, 46), (16, 8), (17, 52), (20, 10), (22, 11), (23, 70), (26, 13), (28, 14), (34, 17), (35, 106), (40, 20), (46, 23), (52, 26), (53, 160), (70, 35), (80, 40), (106, 53), (160, 80)] collatz_insert_test(): collatz_insert() updates the Collatz dictionary with the information about integer n, and all its iterates. [(1, 2), (2, 1), (4, 2), (5, 16), (8, 4), (10, 5), (15, 46), (16, 8), (20, 10), (23, 70), (27, 82), (31, 94), (35, 106), (40, 20), (41, 124), (46, 23), (47, 142), (53, 160), (61, 184), (62, 31), (70, 35), (71, 214), (80, 40), (82, 41), (91, 274), (92, 46), (94, 47), (103, 310), (106, 53), (107, 322), (121, 364), (122, 61), (124, 62), (137, 412), (142, 71), (155, 466), (160, 80), (161, 484), (167, 502), (175, 526), (182, 91), (184, 92), (206, 103), (214, 107), (233, 700), (242, 121), (244, 122), (251, 754), (263, 790), (274, 137), (283, 850), (310, 155), (319, 958), (322, 161), (325, 976), (334, 167), (350, 175), (364, 182), (377, 1132), (395, 1186), (412, 206), (425, 1276), (433, 1300), (445, 1336), (466, 233), (479, 1438), (484, 242), (488, 244), (502, 251), (526, 263), (566, 283), (577, 1732), (593, 1780), (638, 319), (650, 325), (668, 334), (700, 350), (719, 2158), (754, 377), (790, 395), (850, 425), (866, 433), (890, 445), (911, 2734), (958, 479), (976, 488), (1079, 3238), (1132, 566), (1154, 577), (1186, 593), (1276, 638), (1300, 650), (1336, 668), (1367, 4102), (1438, 719), (1619, 4858), (1732, 866), (1780, 890), (1822, 911), (2051, 6154), (2158, 1079), (2308, 1154), (2429, 7288), (2734, 1367), (3077, 9232), (3238, 1619), (3644, 1822), (4102, 2051), (4616, 2308), (4858, 2429), (6154, 3077), (7288, 3644), (9232, 4616)] collatz_dict_test(): Normal end of execution. Sat Jun 11 19:39:42 2022