Problem

Source: 2016 Romanian NMO grade VII P3

Tags: number theory, prime factorization



Find all the positive integers $p$ with the property that the sum of the first $p$ positive integers is a four-digit positive integer whose decomposition into prime factors is of the form $2^m3^n(m + n)$, where $m, n \in N^*$.