3
$\begingroup$

I want to put this into LaTeX format. What do I do?

(FindSequenceFunction[Join[{5, 3, 3, 2}, Table[2, {80}]], k + 1] + n - 1)

-1 + n + DifferenceRoot[Function[{[FormalY], [FormalN]}, {16 - 8 [FormalN] + (3 - [FormalN]) [FormalY][[FormalN]] + (-11 + 5 [FormalN]) [FormalY][1 + [FormalN]] == 0, [FormalY][1] == 5}]][1 + k]

$\endgroup$
2

2 Answers 2

2
$\begingroup$

In view of

TeXForm[DifferenceRoot[Function[{y, n}, {y[n + 2] == y[n + 1] + y[n], y[0] == 0, 
y[1] == 1}]]]

TeXForm::unspt: TeXForm of DynamicModuleBox[{Typeset`HolonomicAttached$$},FrameBox[ButtonBox[StyleBox[GridBox[{{PaneSelectorBox[<<3>>],RowBox[<<1>>]}},BaselinePosition->{1,2},GridBoxSpacings->{Rule[<<2>>],Rule[<<2>>]}],HolonomicSmall],BaselinePosition->Baseline,<<4>>,Evaluator->System,Method->Preemptive],<<5>>,BaselinePosition->Baseline],DynamicModuleValues->Automatic] is not supported.

no $\LaTeX$ form of DifferenceRoot is supported at the present.

$\endgroup$
2
$\begingroup$

You can use the function TeXForm[]

TeXForm[
(FindSequenceFunction[Join[{5, 3, 3, 2}, Table[2, {80}]],  k + 1] + n - 1)
]

Gives the output:

enter image description here

Your second code snippet uses FormalY,FormalN variables and has syntax errors

$\endgroup$
1
  • $\begingroup$ I had tried that, but the unicode gets in the way. $\endgroup$ Apr 28, 2022 at 18:15

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.