Halley's method of Square Root - How to render subscript n?

How do I get Wolfram to render X with a subscript n, like that found in Halley’s method for square root?
I’m having a go with a new square root algorithm, and need to express iteration. See pic attached.

623d63e2dca42f0d7217b203e14c3a9e.png

Please see the documentation for Subscript:

Subscript is mostly useful for creating formatted output for reading. I would only suggest using Subscripts in code to experienced Mathematica programmers. Subscripted variables are full expressions and this creates confusion with newer programmers.

With[{xn = Subscript[x, n]}, 
 Subscript[x, n + 1] == 2 f[xn] f'[xn]/(2 xn^2 - f[xn] f''[xn])]

Thanks Sean. Will this also work on Wolfram Alpha Pro website?

I’m not sure I understand your follow-up. I mean Wolfram|Alpha isn’t for programming really. You kinda try things and if they work, then they work. Are you looking to use Subscripted variables with it or have it output formatted math formula? My advice is to just try it.