I am trying to find a pattern 'encoded' into variables with superscript labels, which incidentally look much like exponents. FindSequenceFunction though doesn't seem to care about even simple patterns.

This doesn't work:


Even if it's syntactically identical to


Is there way to extend FindSequenceFunction to work on indices?

  • $\begingroup$ I think not but they’re always improving things. I think it uses (mathematical) analytic methods to determine a formula. For instance Power has special properties such as a constant ratio between successive terms. I think its algorithms are built on such analytical properties. “Holonomic” is a broad class of functions it can handle. Conceivably it could be extended to handle symbolic patterns involving non mathematical functions but I don’t think it has been. $\endgroup$
    – Michael E2
    Commented Nov 16, 2019 at 13:31

1 Answer 1


It certainly can if the downvalues of Superscript comprise a sequence it can deal with. Here is an example.

Do[Superscript[x, i] = i^2, {i, 6}];
DownValues @ Superscript



FindSequenceFunction[Table[Superscript[x, n], {n, 6}]]

#1^2 &


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.