Let 3a+3b+3c=m2. Since m is odd we have m2≡1(mod8). For each positive integer k we have 3k≡1 or 3k≡3(mod8). Therefore, 3a≡3b≡3c≡1(mod8) and we get that a, b and c are odd numbers. Let a≤b≤c. Then 3a(3b−a+3c−a+1)=m2. Now since a is odd, we get that 3b−a+3c−a+1≡0(mod3). Thus, a=b=c and we get all solutions: (a,b,c)=(2k−1,2k−1,2k−1), where k is a positive integer.