OFFSET
0,13
COMMENTS
EXAMPLE
Figure 1 has just 0. Figure 2 would look like a 1 surrounded by 0's. Figure 3 would look like a 2 surrounded by 1's surrounded by 0's, etc.
Read by rows, the sequence starts:
Figure 1: 0;
0
Figure 2: 0, 0, 1, 0, 0;
0
0 1 0
0
Figure 3: 0, 0, 1, 0, 0, 1, 2, 1, 0, 0, 1, 0, 0;
0
0 1 0
0 1 2 1 0
0 1 0
0
Figure 4: 0, 0, 1, 0, 0, 1, 2, 1, 0, 0, 1, 2, 3, 2, 1, 0, 0, 1, 2, 1, 0, 0, 1, 0, 0;
0
0 1 0
0 1 2 1 0
0 1 2 3 2 1 0
0 1 2 1 0
0 1 0
0
...
MATHEMATICA
f[n_] := Join[#, Rest@ Reverse@ #] &@ Range[0, n]; Array[Flatten[f /@ f@ #] &, 5, 0] // Flatten (* Michael De Vlieger, Sep 10 2018 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Kritsada Moomuang, Sep 09 2018
STATUS
approved