- The elf with number 1 receives 1 % of the cake.
- The elf with number 2 receives 2 % of the rest of the cake.
- The elf with number 3 receives 3 % of the rest of the cake.
- The elf with number 4 receives 4 % of the rest of the cake.
- And so on.
- The elf with number k receives k % of the rest of the cake.
- And so on.
- The elf with number 99 receives 99 % of the rest of the cake.
- The elf with number 100, finally, receives 100 % of the rest of the cake and hence all the remaining cake.

*N*has received the largest piece of cake. What is the unit digit of N?

Please give me the calculations