Okay...I suck at math and here this goes, approximate. 10 squared is 100. So the 4 consecutive numbers have to be around 10ish. If you include too many numbers past 10 its greater than 366. Guess and check. 8 squared = 64, 9 squared= 81, 10 squared = 100, 11 squared = 121. Add these up = 366. Then take the average of the last 3.
No need for equation IMO.😎