Expansion of (1+x+x2)n



1
1
1
0
0
0
0
1
2
3
2
1
0
0
0
0
0
0
0
1
3
6
7
6
3
1
0
0
0
0
0
1
4
10
16
19
16
10
4
1
0
0
0
1
5
15
30
45
51
45
30
15
5
1
0
1
6
21
50
90
126
141
126
90
50
21
6
1

 Computing with Maple:

Maple spreadsheet