For a given Mathematica program that generates a sequence x of integers, is it possible to also generate equal length sequences of integers that were used internally by the Mathematica kernel to generate x?

For example for an OEIS sequence: oeis.org/A052104, the Mathematica code on that page has a formula that creates the integer sequence for A052104, internally the Mathematica kernel would also create other integer sequences to generate the A052104 sequence, ie there is a term in the formula m!/n!, so there should be three integer sequences: m!, n! and m!/n! that are used internally by the Mathematica kernel. I'd like a way to have a list of all the integer sequences and their formulas.

  • $\begingroup$ I've read this five times. I still have no idea what you're asking. $\endgroup$
    – ciao
    Commented Sep 25, 2019 at 18:58
  • $\begingroup$ updated the question with an example $\endgroup$
    – Jamie M
    Commented Sep 25, 2019 at 19:52
  • 2
    $\begingroup$ Look at Reap and Sow, use them to enclose the terms you're interested in... $\endgroup$
    – ciao
    Commented Sep 25, 2019 at 20:05
  • 2
    $\begingroup$ I'm voting to close this question as off-topic because the OP is asking for functionality that is not supported given the constraints the OP is putting on the solution. $\endgroup$
    – m_goldberg
    Commented Sep 25, 2019 at 23:58
  • 1
    $\begingroup$ Wrapping the code with Trace and processing it further might yield what you seek for. $\endgroup$ Commented Oct 6, 2019 at 15:19


Your Answer

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

Browse other questions tagged or ask your own question.