Program for Perrin numbers
The Perrin numbers are the numbers in the following integer sequence. 3, 0, 2, 3, 2, 5, 5, 7, 10, 12, 17, 22, 29, 39 ... In mathematical terms, the sequence p(n) of Perrin numbers is defined by the recurrence relation P(n) = P(n-2) + P(n-3) for n > 2, with initial values P(0) = 3, P(1) = 0, P(2)