#P1762. 偶数
偶数
Description
Given a positive integer , please output the number of even entries in the first rows of Pascal's triangle modulo .
Input Format
One line with a positive integer .
Output Format
One line with an integer denoting the answer.
6
6
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
The first seven rows of Pascal's triangle:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
Translated by ChatGPT 5
京公网安备 11011102002149号