OFFSET
0,2
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 0..499
EXAMPLE
For n=6 we have the following row of triangle A245618: 1 2 3 8 3 2 1.
We have 1<+>2=1, 1<+>3=4, 4<+>8=12, 12<+>3=9, 9<+>2=7, 7<+>1=8. So, a(6)=8.
MATHEMATICA
parityAdd[a_, b_]:=Abs[a+b (-1)^(a+b)];
t[n_, 0]:=1;
t[n_, n_]:=1;
t[n_, k_]:=t[n, k]=parityAdd[t[n-1, k-1], t[n-1, k]];
Map[Fold[parityAdd, First[#], Rest[#]]&, Table[t[n, k], {n, 0, 40}, {k, 0, n}]] (* Peter J. C. Moses, Nov 05 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Nov 05 2014
EXTENSIONS
More terms from Peter J. C. Moses, Nov 05 2014
STATUS
approved