Break 1,2,...,n into pairs with sums being powers of 3
Source: SMMC 2024 A2
October 12, 2024
number theory
Problem Statement
A positive integer is tripariable if it is possible to partition the set into disjoint pairs such that the sum of two elements in each pair is a power of . For example is tripariable because and 1+2=3^1, 3+6 = 3^2 \text{and} 4+5=3^2 are all powers of 3. How many positive integers less than or equal to 2024 are tripariable?