A few comments:
- Check out
IntegerLength
. That'll clean things up a bit.
- I don't understand why you're trying to "swap Table for ListLinePlot".
ListLinePlot
needs a list of data, and Table
produces a list of data, so you don't want to swap, but you want to wrap.
- This code
ListLinePlot [ { [Length[IntegerDigits[k^2] ], {k, 100} ], 100} ]
has a pretty obvious syntax error. I'm not sure if maybe that's just an error in putting together your question or if the errors are in your actual code. Specifically, you're using [
where there is no head preceding it, and that's just a basic syntax error.
Is that enough help, or are you asking for actual working code that solves the problem?
Side note, is this tutorial online, and if so, can you provide a link to this question?