|
|
A273982
|
|
Number of little cubes visible around an n X n X n cube with a face on a table.
|
|
1
|
|
|
1, 8, 25, 52, 89, 136, 193, 260, 337, 424, 521, 628, 745, 872, 1009, 1156, 1313, 1480, 1657, 1844, 2041, 2248, 2465, 2692, 2929, 3176, 3433, 3700, 3977, 4264, 4561, 4868, 5185, 5512, 5849, 6196, 6553, 6920, 7297, 7684, 8081, 8488, 8905, 9332, 9769, 10216
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
There are fewer visible cubes on the bottom than on the top.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 5*n^2 - 8*n + 4.
a(n) = n^3 - (n-2)^3 - (n-2)^2. - Joerg Arndt, Jun 06 2016
|
|
EXAMPLE
|
a(3)=25 because around a 3 X 3 X 3 cube, when it's on a table, it's possible to see only 25 little cubes (8 on each of the 2 bottom layers and 9 on the top layer).
|
|
MAPLE
|
|
|
MATHEMATICA
|
Table[5 n^2 - 8 n + 4, {n, 46}] (* or *)
LinearRecurrence[{3, -3, 1}, {1, 8, 25}, 46] (* or *)
CoefficientList[Series[(-1 - 5 x - 4 x^2)/(-1 + x)^3, {x, 0, 45}], x] (* Michael De Vlieger, Oct 06 2017 *)
|
|
PROG
|
(PARI) a(n) = 5*n^2 - 8*n + 4; \\ Altug Alkan, Oct 06 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|