I need to make an infinite list of numbers and list them like this:

`[12345678910111213141516171819...]`

or

`[1,2,3,4,5,6,7,8,9,1,1,1,2,1,3,1,4,1,5,1,6,1,7,1,8,1,8,9....]`

So that the numbers are pasted together and can be separately indexed(find the position of a number eg. `15th` number would be `2`)

So the user would have to input some numbers like 

15
2022
1410169200
2147483646

and my program would output

2
0
1
2

I understand now that I can't use some sort of big list, but have to make a searching algorithm of sorts?

Could anyone help?