1234
unsigned long trib( unsigned int n ) { return ( ( n < 3 ) ? 1 : trib( n - 1 ) + trib( n - 2 ) + trib( n - 3 ) ); }