OFFSET
1,2
COMMENTS
T(n,k) is the number of cubic cells (or cubes) in the k-th level starting from the base of the stepped pyramid with n levels described in A245092 (see example).
LINKS
FORMULA
EXAMPLE
Triangle begins:
1;
4, 1;
8, 4, 1;
15, 8, 4, 1;
21, 15, 8, 4, 1;
33, 21, 15, 8, 4, 1;
41, 33, 21, 15, 8, 4, 1;
56, 41, 33, 21, 15, 8, 4, 1;
69, 56, 41, 33, 21, 15, 8, 4, 1;
87, 69, 56, 41, 33, 21, 15, 8, 4, 1;
99, 87, 69, 56, 41, 33, 21, 15, 8, 4, 1;
127, 99, 87, 69, 56, 41, 33, 21, 15, 8, 4, 1;
...
For n = 9 the lateral view and top view of the stepped pyramid described in A245092 look as shown below:
_
9 1 |_|_
8 4 |_ _|_
7 8 |_ _|_|_
6 15 |_ _ _| |_
5 21 |_ _ _|_ _|_
4 33 |_ _ _ _| | |_
3 41 |_ _ _ _|_|_ _|_
2 56 |_ _ _ _ _|_|_ |_
1 69 |_ _ _ _ _|_ _|_ _|
.
Level Row 9 Lateral view of
k T(9,k) the stepped pyramid
.
_ _ _ _ _ _ _ _ _
|_| | | | | | | | |
|_ _|_| | | | | | |
|_ _| _|_| | | | |
|_ _ _| _|_| | |
|_ _ _| _| _ _|_|
|_ _ _ _| _| |
|_ _ _ _| |_ _|
|_ _ _ _ _|
|_ _ _ _ _|
.
Top view of
the stepped pyramid
.
For n = 9 and k = 1 there are 69 cubic cells in the level 1 starting from the base of the stepped pyramid, so T(9,1) = 69.
For n = 9 and k = 9 there is only one cubic cell in the level k = 9 (the top) of the stepped pyramid, so T(9,9) = 1.
MATHEMATICA
Join@@Array[Reverse@Array[Sum[#-Mod[#, m], {m, #}]&, #]&, 12] (* Giorgos Kalogeropoulos, Jan 12 2022 *)
PROG
(PARI) row(n) = Vecrev(vector(n, k, sum(i=1, k, k\i*i))); \\ Michel Marcus, Jan 22 2022
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Omar E. Pol, Jan 09 2022
STATUS
approved