DEV Community

Discussion on: Advent of Code 2019 Solution Megathread - Day 22: Slam Shuffle

Collapse
 
coolshaurya profile image
Shaurya

Didn't know about this equation. Also you may have accidentally written m instead of n in the formula :) .

Thread Thread
 
jbristow profile image
Jon Bristow

Whoops! The notes I have it in mark it as ‘partial sum(n2) for 1 to m = ...` (copied from wolfram alpha)