human
Padovan Sequence | Function to calculate padovan number P ( n ).
0 th , 1 st and 2 nd number of the series are 1.
Driver Code"
Solution in Python:
assistant
#Here is code to padovan Sequence and the other steps required.
 def pad ( n ) :
	pPrevPrev , pPrev , pCurr , pNext = 1 , 1 , 1 , 1
	for i in range ( 3 , n + 1 ) :
		pNext = pPrevPrev + pPrev
		pPrevPrev = pPrev
		pPrev = pCurr
		pCurr = pNext
	return pNext ;
print pad ( 12 )