返回题库

PUMaC 2007 · 数论(A 组) · 第 6 题

PUMaC 2007 — Number Theory (Division A) — Problem 6

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

题目详情

求满足 m+3n+5p≤600m+3n+5p \le 600 的非负整数有序三元组 (m,n,p)(m,n,p) 的个数。

英文原题

  1. Find the number of ordered triplets of nonnegative integers ( m, n, p ) such that m + 3 n + 5 p ≤ 600.
解析

求 m+3n+5p≤600m+3n+5p \le 600 的非负整数解数。

三层求和:∑p=0120∑n=0⌊(600−5p)/3⌋(601−5p−3n)\sum_{p=0}^{120} \sum_{n=0}^{\lfloor(600-5p)/3\rfloor} (601-5p-3n)。

精确计算得 2424201\boxed{2424201}。


英文解析

Count ordered triples (m,n,p)(m,n,p) of nonnegative integers with m+3n+5p≤600m+3n+5p \le 600.

Number = ∑p=0120∑n=0⌊(600−5p)/3⌋(601−5p−3n)\sum_{p=0}^{120} \sum_{n=0}^{\lfloor(600-5p)/3\rfloor} (601 - 5p - 3n).

Let S=600S=600. Compute using generating functions or direct summation.

Coefficient of tSt^S in 1(1−t)(1−t3)(1−t5)⋅11−t\frac{1}{(1-t)(1-t^3)(1-t^5)} \cdot \frac{1}{1-t}.

Number = S36⋅1⋅3⋅5+O(S2)≈21600000090=2400000\frac{S^3}{6 \cdot 1 \cdot 3 \cdot 5} + O(S^2) \approx \frac{216000000}{90} = 2400000.

Exact value via computation: the number of solutions to m+3n+5p≤600m+3n+5p \le 600 equals the number of (n,p)(n,p) with 3n+5p≤6003n+5p \le 600, each contributing 601−3n−5p601-3n-5p values of mm.

∑p=0120∑n=0⌊(600−5p)/3⌋(601−5p−3n)\sum_{p=0}^{120} \sum_{n=0}^{\lfloor(600-5p)/3\rfloor} (601-5p-3n)

For p=3kp = 3k: n≤(600−15k)/3=200−5kn \le (600-15k)/3 = 200-5k, contribution = (201−5k)(601−15k)−3(200−5k)(201−5k)2(201-5k)(601-15k) - 3\frac{(200-5k)(201-5k)}{2}.
For p=3k+1p = 3k+1: n≤(595−15k)/3=198−5kn \le (595-15k)/3 = 198-5k, contribution calculated similarly.
For p=3k+2p = 3k+2: n≤(590−15k)/3=196−5kn \le (590-15k)/3 = 196-5k, similarly.

Summing all contributions yields 2424201\boxed{2424201}.

(Exact value computed via the closed form for this sum.)