Your task: given an integer
n, output an embedded triangle to the
Standard methods of input and output, input in any convenient format, output should be as a string. Examples are 0-indexed, you can use 1-indexed if you want. Standard loopholes apply
The left and right sides of each figure is 2^n, when 0 indexed. The top is twice that.
n=0 -- \/ n=1 ---- \/ / \/ n=2 -------- \/ / / \/ / \ / \/
This is code-golf, so shortest code wins!
This is NOT a duplicate of the Embedded Hexagons! challenge. I don't think any answers from that question could be trivially copied over to this one.