Advent of Code 2023- Day 8

I found Part 1 the easiest puzzle so far this year

Part 2 will probably be MUCH harder :slight_smile:

[edit] I have the correct answer to Part 2 but not quite worked out how to get it programmatically!
[edit2] I have code to produce the correct answer but I'm not sure why it works as I can't reconcile it to what Wikipedia says in the clue

image

Clue

It's to do with with finding least common multiple
Least common multiple - Wikipedia
Factorizing - #11 by cymplecy
See

https://snap.berkeley.edu/snap/snap.html#present:Username=cymplecy&ProjectName=aoc23Day8&editMode