3

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]

Fred Daniel Kline
  • 2,360
  • 2
  • 20
  • 41

2 Answers2

2

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

Joshua Salazar
  • 733
  • 4
  • 12
2

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.

user64494
  • 26,149
  • 4
  • 27
  • 56