CEMC Banner

Problem of the Month
Problem 3: Three-sign sums

December 2024

This month’s problem is an extension of Question B3 from the 2024 Canadian Intermediate Mathematics Contest, which was run by the CEMC in November 2024. The question that appeared on the contest can be found at the end of this problem. As a warm up, try the problem yourself and pay attention to the differences between the contest problem and this Problem of the Month.

Given an increasing list of integers L={a1,a2,,ak}, the 3-sign sum of the list L, denoted μ(L), is the sum of the integers in the list, in order, except that every third integer is subtracted instead of added. For example, if L={3,4,5,8,10,11,13}, then μ(L)=3+45+8+1011+13=22.

Let n be a positive integer, and consider the list {1,2,3,,n}. We define the integer fn to be the sum of all 3-sign sums of all increasing sublists of {1,2,3,,n}. For example, f3=μ({1})+μ({2})+μ({3})+μ({1,2})+μ({1,3})+μ({2,3})+μ({1,2,3}). The problems below use binomial coefficients and the binomial theorem. If you are unfamiliar with, or need a refresher for, these concepts, please see this Problem of the Month lesson.

    1. Compute f3, f4, and f5.

    2. Verify that f5=2f4+5((40)+(41)(42)+(43)+(44)).

  1. For all integers n2, prove that fn+1=2fn+(n+1)(b0(n0)+b1(n1)+b2(n2)++bn(nn)) where bt={1if t+1 is not a multiple of 31if t+1 is a multiple of 3.

For the remainder of the problems, our goal is to work out how to compute the expression b0(n0)+b1(n1)+b2(n2)++bn(nn). With that in mind, let α be a number that satisfies α2+α=1.

It turns out that there is no real number α with this property (see if you can prove this!), but we can still work with α as a number. We simply treat α like a variable, with the added flexibility that we can replace α2+α with 1.

It’s very likely that you already have experience doing something like this. For example, when we write 2, it’s not important that 21.41. The important thing is that the number satisfies (2)2=2. So, when working with 2, we simply treat it like a variable with the added bonus that we can replace (2)2 with 2. Similarly, when we write a fraction like 53, while it’s true that this number is equal to 1.6, the important thing is that when you multiply 53 by 3, you get 5.

  1. Evaluate the following expressions (they should all be integers!).

    1. α3

    2. α8+α4+α9

    3. (1+α)(1+α)2

  2. Let n1 be an integer. Let gn(x)=(1+x)n.

    1. Find numbers A, B, and C in terms of α such that b0(n0)+b1(n1)+b2(n2)++bn(nn)=Agn(1)+Bgn(α)+Cgn(α2). [Note: The binomial theorem will be essential here.]

    2. Using the values you found in part (a), Let dn=Agn(1)+Bgn(α)+Cgn(α2). Evaluate dn (it is always an integer!). Keep in mind that the value of dn may depend on n.

  3. Evaluate f6,f7,f8,f9,f10,f11, and f12.


Here is Question B3 from the 2024 Canadian Intermediate Mathematics Contest.

Given an increasing list of consecutive integers, the 3-sign sum of the list is the sum of the integers in the list, in order, except that every third integer is subtracted instead of added. For example, the 3-sign sum of the list 3, 4, 5, 6, 7, 8, 9 is 3+45+6+78+9=16.

  1. Determine the 3-sign sum of 8, 9, 10, 11, 12, 13, 14, 15.

For a positive integer n, a slice of the list 1, 2, 3, , n1, n is an increasing list of at least 1 and at most n consecutive integers, each of which is between 1 and n inclusive. For example, 1, 2 and 2, 3, 4 are both slices of the list 1, 2, 3, 4, 5. As another example, the list 1, 2, 3 has a total of six slices. They are given in the left column of the table below with their 3-sign sums in the right column.

Slice 3-sign sum
1, 2, 3 1+23=0
1, 2 1+2=3
2, 3 2+3=5
1 1
2 2
3 3

For a positive integer n, the Ghimire number of n, denoted Gn, is the sum of the 3-sign sums of all slices of 1, 2, 3, , n1, n. For example, using the information from the table above, G3=0+3+5+1+2+3=14.

  1. For each integer n1, show that G3n2G3n1+G3n23 is a perfect square.

  2. Determine the remainder when G2025G2024 is divided by 27.