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

btheuer001
6 - Meteoroid

Is there a way to include the summarize max function into the macro itself so it outputs only the final maximum number? I have failed to figure out how to do that and just put the summarize after the macro separately.

Spoiler
Spoiler

Screenshot 2025-05-26 165207.png

TH
8 - Asteroid

Ended up nesting some things.

Outer macro contains a batch macro which contains the iterative macro.

 

patrick_digan
17 - Castor
17 - Castor
Spoiler
 

image.png

Randy_Yoder
5 - Atom

Fun challenge. I need more practice with iterative macros.

Spoiler
 
Screenshot 2025-05-27 150401.png

Screenshot 2025-05-27 150401.png
aidancheung111
5 - Atom

The solution file should include an update to the formula for the case when n=1, otherwise the steps are 3 right? Technically 0 steps, but maybe 1?

SteveY02
8 - Asteroid

Finally, I got it. So confused about iteration macro, this is great chance to learn new stuff.

Erin
11 - Bolide

I stumbled through this one, but got it! Woo hoo! 🤓

 

Spoiler
475.png475macro.png
Dev73
8 - Asteroid

My solution - nice challenge 

Spoiler
challenge 475_1.jpgchallenge 475_2.jpg
alacoume
9 - Comet

Very interesting one!

kapilrautela_1990
6 - Meteoroid

Screenshot 2025-07-02 134302.png