|
|||
TriplesLet m and n be two positive integers (5 ≤ m ≤ 100, 2 ≤ n ≤ 100). Consider the following sets of triples: Tm, j = {(x, y, z) ∈ ℕ3 ⏐ x ≤ y ≤ z ≤ m and xj + yj = zj}, j = 2, …, n, where ℕ is the set of nonnegative integers (ℕ = {0, 1, 2, …}). The problem asks you to compute the sum Sm,n:
where card(Tm, j) is the number of elements of the set Tm, j. Input SpecificationThe input contains a single test case. The first line of the input contains the value of m, and the second line contains the value of n. Output SpecificationOutput a single line with the value of the sum Sm,n. Sample Input
Output for Sample Input
Original Problem |
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |