Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #475: The Collatz Conjecture

Kenda
16 - Nebula
16 - Nebula
Spoiler
image.png

image.png
phottovy
13 - Pulsar
13 - Pulsar

How I feel working on challenges like this one:

7TgwLR

 

My solution:

Spoiler
475_1.png

Macro:
475_2.png

 

ahsanaali
11 - Bolide
Spoiler
475.png

475 Batch Macro.png

475 Iterative Macro.png

balajilolla2
10 - Fireball
Spoiler
Solution Attached

Screenshot 2025-05-05 123454.pngScreenshot 2025-05-05 123444.png
alineruizcampos
8 - Asteroid
Spoiler
Screenshot 2025-05-06 100528.pngScreenshot 2025-05-06 100535.png
wbasuki
8 - Asteroid

My Solution

Spoiler
Screenshot 2025-05-06 084741.png
wbasuki
8 - Asteroid

My Update solution, the formula I have used in the macro before was wrong.

Spoiler
Screenshot 2025-05-06 100129.png
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

My solution.

 

Just from curiosity, I checked the sequence of the numbers for the max steps.

 

Spoiler
Workflow
Challenge475_workflow.png
Macro
Challenge475_macro.png
Max steps : "261"
Max number in the sequence : "975400" which appears at the "78"th step.
Challenge475_result.png
Actual sequence: 
{6171,18514,9257,27772,13886,6943,20830,10415,31246,15623,46870,23435,70306,35153,105460,52730,26365,79096,39548,19774,9887,29662,14831,44494,22247,66742,33371,100114,50057,150172,75086,37543,112630,56315,168946,84473,253420,126710,63355,190066,95033,285100,142550,71275,213826,106913,320740,160370,80185,240556,120278,60139,180418,90209,270628,135314,67657,202972,101486,50743,152230,76115,228346,114173,342520,171260,85630,42815,128446,64223,192670,96335,289006,144503,433510,216755,650266,325133,975400,487700,243850,121925,365776,182888,91444,45722,22861,68584,34292,17146,8573,25720,12860,6430,3215,9646,4823,14470,7235,21706,10853,32560,16280,8140,4070,2035,6106,3053,9160,4580,2290,1145,3436,1718,859,2578,1289,3868,1934,967,2902,1451,4354,2177,6532,3266,1633,4900,2450,1225,3676,1838,919,2758,1379,4138,2069,6208,3104,1552,776,388,194,97,292,146,73,220,110,55,166,83,250,125,376,188,94,47,142,71,214,107,322,161,484,242,121,364,182,91,274,137,412,206,103,310,155,466,233,700,350,175,526,263,790,395,1186,593,1780,890,445,1336,668,334,167,502,251,754,377,1132,566,283,850,425,1276,638,319,958,479,1438,719,2158,1079,3238,1619,4858,2429,7288,3644,1822,911,2734,1367,4102,2051,6154,3077,9232,4616,2308,1154,577,1732,866,433,1300,650,325,976,488,244,122,61,184,92,46,23,70,35,106,53,160,80,40,20,10,5,16,8,4,2,1}

 

 

Qiu
21 - Polaris
21 - Polaris

Done

Spoiler
Challenge475-A.jpgChallenge475-B.jpg
Bobbyt23
12 - Quasar

Fun iterative macro to practise on!

 

Spoiler
image.pngimage.png