The Tribonacci sequence is an extension of the Fibonacci sequence where each term is the sum of the previous three terms.
The Tribonacci sequence: 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504, 927, 1705,...........
So given a number, can we check if that number is Tribonacci number or not?
I tried but not able to find any formula, I know that Fibonacci number can be checked directly using a formula.