OFFSET
1,1
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
J. L. Brenner, Linear Recurrence Relations, Amer. Math. Monthly, Vol. 61 (1954), 171-173.
Eric Weisstein's World of Mathematics, Tribonacci Number
FORMULA
a(n) = A112305(prime(n)).
EXAMPLE
Sequence T(n) starts 1,1,2,4,7,13,24,44. For the primes 2,3,7,11,13, it is easy to see that a(1)=3, a(2)=7, a(4)=5, a(5)=8, a(6)=6.
MATHEMATICA
a[0]=0; a[1]=a[2]=1; a[n_]:=a[n]=a[n-1]+a[n-2]+a[n-3]; f[n_]:= Module[{k=2, p=Prime[n]}, While[Mod[a[k], p] != 0, k++ ]; k]; Array[f, 64] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Dec 05 2005
STATUS
approved