Let 'N' is the smallest number which divided by 13 and 16 leaves respective remainders of 2 and 5.Required number = (LCM of 13 and 16) - (common difference of divisors and remainders) = (208) - (11) = 197.
Let the four numbers be x, x + 2, x + 4 and x + 6.=> x + x + 2 + x + 4 + x + 6 = 36=> 4x + 12 = 36 => x = 6The numbers are 6, 8, 10 and 12.Sum of their squares = 62 + 82 + 102 + 122 = 36 + 64 + 100 + 144 = 344.