How can I get the number sequence as attached? I have the column 'Type' using which I'm trying to derive column 'Number'.

I'm not sure if I can get this using Multirow or Tile, yet to try on these. Initial thoughts are heading towards writing a complicated formula but thought to check with the community if there is an easier solution?