OFFSET
0,4
COMMENTS
LINKS
T. D. Noe, Rows n = 0..100 of triangle, flattened
EXAMPLE
Triangle:
0,
0, 0,
2, 1, 2,
1, 1, 1, 0,
8, 3, 6, 3, 8,
3, 1, 1, 1, 1, 3,
8, 4, 8, 4, 8, 4, 6,
1, 1, 1, 4, 4, 1, 1, 0
MATHEMATICA
di[0]=0; di[1]=0; di[ -1]=0; di[I]=0; di[ -I]=0; di[n_] := Module[{f, unt}, f=FactorInteger[n, GaussianIntegers->True]; unt=(Abs[f[[1, 1]]]==1); If[unt, f=Delete[f, 1]]; f=Transpose[f]; Plus@@(n*f[[2]]/f[[1]])]; Re[Table[di[n-i + I*i], {n, 0, 12}, {i, 0, n}]]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
T. D. Noe, Nov 09 2012
STATUS
approved