Stone Division, Revisited

  • + 2 comments

    One part I confused are and .

    • stands for the pile size
    • stands for the number of piles of size you create from the stones

    From your case

    377083280820 10
    1 377083280820 2 188541640410 3 125694426940 4 94270820205 5 75416656164
    
    piles       x stones/pile
    1           x377083280820 => 5           x75416656164  1 move
    5           x75416656164  => 94270820205 x4            5 moves
    94270820205 x4            => 188541640410x2            94270820205 moves
    188541640410x2            => 377083280820x1            188541640410 moves
    

    1+5+94270820205+188541640410=282812460621