# How to represent the “Triangle of Power” in LaTeX?

So, I've just seen a video about a method of notation called "Triangle of Power", which simplifies things when it comes down to exponents, logarithms, etc. It was originally introduced in this post on Math.Stackexchange: https://math.stackexchange.com/questions/30046/alternative-notation-for-exponents-logs-and-roots/165225#165225

I wanted to use it in my LaTeX documents, but couldn't figure out a way to actually write it easily; my knowledge of custom commands and positioning of symbols is not enough.

So, what I want to do is this:

And it needs to have some nice way of not providing one of the values (really, see the video if you're interested). Moreover, it should more-or-less fit in line with other notation, so it shouldn't be too big nor sticking out, though it probably will look okay if the values themselves stick out a little.

How can I implement this?



The only issue is that the right subscript appears a little low. But it does allow nesting fairly well.