The correct option is D 8∑n=3 n( nP3)
Middle DigitDigits available for remaining placesNumber of waysfilling remaining four places40,1,2,33× 3P350,1,2,3,44× 4P360,1,2,3,4,55× 5P370,1,2,3,4,5,66× 6P380,1,2,3,4,5,6,77× 7P390,1,2,3,4,5,6,7,88× 8P3
Total number of required ways is 3× 3P3+4× 4P3+5× 5P3+6× 6P3+7× 7P3+8× 8P3