Let a number $N=12124124612468124680124680212460824...$
What is the digit $2018$?
My try
I divided the number into groups, and the last digit of the group coincides with the last digit of $2 (p-1)$ if $p$ is the number of the group.
Example
$N=\underbrace{12}_2|\underbrace{124}_3|\underbrace{1246}_4|\underbrace{12468}_5|\underbrace{124680}_6|\underbrace{1246802}_7|\underbrace{12460824}_8|\dots$
Group $2= 2(2-1)=2$
Group $3= 2(3-1)=4$
Group $4=2(4-1)=6$
Group $5=2(5-1)=8$
Group $6=2(6-1)=10 \implies 0$
But I don't see how to continue, any hints are appreciated.
Group $n \ge 2$ ends on index $n(n+1)/2 - 1$, so you have to pick the largest whole number to solve $n(n+1)/2 -1 = 2018$ then you know the group, and compute the offset in the group similarly. Once you know the offset in the group, note it repeats with a cycle of 6...