MathDB
last digit of sums of alternate sums of every subset of {1, 2, ...,10}

Source: 1999 Greece Junior p4

March 17, 2020
number theoryLast digitSubsets

Problem Statement

Defi ne alternate sum of a set of real numbers A={a1,a2,...,ak}A =\{a_1,a_2,...,a_k\} with a1<a2<...<aka_1 < a_2 <...< a_k, the number S(A)=akak1+ak2...+(1)k1a1S(A) = a_k - a_{k-1} + a_{k-2} - ... + (-1)^{k-1}a_1 (for example if A={1,2,5,7}A = \{1,2,5, 7\} then S(A)=75+21S(A) = 7 - 5 + 2 - 1) Consider the alternate sums, of every subsets of A={1,2,3,4,5,6,7,8,9,10}A = \{1, 2, 3, 4, 5, 6, 7, 8,9, 10\} and sum them. What is the last digit of the sum obtained?