返回题库

PUMaC 2007 · 组合(A 组) · 第 8 题

PUMaC 2007 — Combinatorics (Division A) — Problem 8

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

有多少对 2007 位数 a1a2⋯a2007a_1a_2\cdots a_{2007} 与 b1b2⋯b2007b_1b_2\cdots b_{2007} 使得 a1b1+a2b2+⋯+a2007b2007a_1b_1+a_2b_2+\cdots+a_{2007}b_{2007} 为偶数?

英文原题

How many pairs of 2007-digit numbers a1a2⋯a2007a_1a_2\cdots a_{2007} and b1b2⋯b2007b_1b_2\cdots b_{2007} satisfy that a1b1+a2b2+⋯+a2007b2007a_1b_1+a_2b_2+\cdots+a_{2007}b_{2007} is even?

解析

aibia_ib_i 为奇数当且仅当两个数字都为奇数。首位共有 9⋅9=819\cdot9=81 种,其中奇积 2525 种、偶积 5656 种。其余每一位共有 100100 种,其中奇积 2525 种、偶积 7575 种。

用偶奇性筛选公式,偶数总和的对数为

12(81⋅1002006+31⋅502006).\frac12\left(81\cdot100^{2006}+31\cdot50^{2006}\right).

化去 1/21/2,得到

4050⋅1002005+775⋅502005.\boxed{4050\cdot100^{2005}+775\cdot50^{2005}}.

英文解析

A product aibia_ib_i is odd exactly when both digits are odd. For the first digit, there are 2525 odd-product pairs and 5656 even-product pairs among 9⋅9=819\cdot9=81 choices. For every later digit, there are 2525 odd-product pairs and 7575 even-product pairs among 100100 choices.

Using the even-parity filter,

12(81⋅1002006+31⋅502006)\frac12\left(81\cdot100^{2006}+31\cdot50^{2006}\right)

pairs have an even total. Rewriting without the factor 1/21/2 gives

4050⋅1002005+775⋅502005.\boxed{4050\cdot100^{2005}+775\cdot50^{2005}}.