Eiffel Towers: Create a large "A" from "A"s Create a function which given a number of lines n, makes a bigA.


The horizontal bar of bigA must be at the middle row, or the lower of the two if n is even
Assume a monospace font for output


Output should be a string (or similar, eg character array) with clear linebreaks to break up the lines, and with correct whitespace for left-padding (you can assume \t to be 4 spaces). There can be any whitespace on the right. 

Examples

n = 1

A

n = 2

 A
AAA


n = 3

  A
 AAA
A   A


n = 4

   A
  A A
 AAAAA
A     A


n = 5

    A
   A A
  AAAAA
 A     A
A       A


This is inspired by Create an &quot;H&quot; from smaller &quot;H&quot;s
05AB1E, 13 bytes

Code:

Ð;î¹)'A1376SΛ


Uses the 05AB1E encoding. Try it online!

Explanation:

Ð                  # Triplicate the input.
 ;î                # Compute ceiling(n / 2).
   ¹               # Push the first input again.
    )              # Wrap into an array. For input 7, this would result in:
                     [7, 7, 4, 7].
     'A            # Push the character 'A'
       1376S       # Push the array [1, 3, 7, 6]. These are the directions of the canvas.
                     This essentially translates to [↗, ↘, ↖, ←].
            Λ      # Write to canvas using the previous three parameters.


Canvas

I should probably document the canvas a little bit more (and a lot of other functions), but this basically sums it up. The canvas has different 'modes' based on the parameter types given. The canvas command has three parameters: &lt;length&gt; &lt;string&gt; &lt;direction&gt;. 

Since the length and direction parameters are lists, it 'zips' these lists to create a set of instructions to be executed. The string parameter is just the letter A, so this is the fill character used by all instructions. The canvas interprets this as the following set of instructions (for input 7):


Draw a line of length 7 with the string A in direction ↗
Draw a line of length 7 with the string A in direction ↘
Draw a line of length 4 with the string A in direction ↖
Draw a line of length 7 with the string A in direction ←


The directions are translated in the following manner:

7   0   1
  ↖ ↑ ↗
6 ← X → 2
  ↙ ↓ ↘
5   4   3


If nothing has been outputted, 05AB1E automatically outputs the canvas result.