I’m not sure what function you want to approximate.

Neither do I, as I don’t have access to the logic that is generating the sequence.

Using ordinal number as input is a bad idea, because the chars are not indications of some quantity. The usual way to deal with such data is one-hot-encoding, since the number of ASCII chars is small.

Ok, good to know.