OFFSET
1,2
EXAMPLE
For the tribonacci sequence starting t(1)=t(2)=1, t(3)=2, that is, the nonzero terms of A000073:
a(1) = t(1)^t(1) = 1^1 = 1.
a(2) = t(1)^t(2) + t(2)^t(1) = 1^1 + 1^1 = 2.
a(3) = t(1)^t(3) + t(2)^t(2) + t(3)^t(1) = 1^2 + 1^1 + 2^1 = 4.
a(4) = t(1)^t(4) + t(2)^t(3) + t(3)^t(2) + t(4)^t(1) = 1^4 + 1^2 + 2^1 + 4^1 = 8.
a(5) = 1^7 + 1^4 + 2^2 + 4^1 + 7^1 = 17.
a(6) = 1^13 + 1^7 + 2^4 + 4^2 + 7^1 + 13^1 = 54.
MATHEMATICA
a[0] = a[1] = 0 ; a[2] = 1; a[n_] := a[n] = a[n - 1] + a[n - 2] + a[n - 3]; Table[Sum[a[k + 2]^(a[n - k + 1]), {k, 1, n}], {n, 1, 10}] (* G. C. Greubel, May 18 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jan 04 2006
EXTENSIONS
Name clarified by Arthur O'Dwyer, Jul 24 2024
STATUS
approved