Pentatope number | function for Pentatope number ; formula for find Pentatope nth term ; Driver Code
< ? php function Pentatope_number ( $ n ) { return $ n * ( $ n + 1 ) * ( $ n + 2 ) * ( $ n + 3 ) / 24 ; } $ n = 7 ; echo $ n , " th ▁ Pentatope ▁ number ▁ : " , Pentatope_number ( $ n ) , " STRNEWLINE " ; $ n = 12 ; echo $ n , " th ▁ Pentatope ▁ number ▁ : " , Pentatope_number ( $ n ) ; ? >