Essentially echoing @Buffy's answer:
First, it's a great thing that you have found something cool, and are happy about it. That really is the immediate personal reward for "research". Sure, maybe "benefiting others", or "advancing human understanding", but those are distant and not-immediately-gratifying mechanisms.
Still, there are "professional" mathematicians and computer scientists (etc.), and collectively they/we have been thinking about things for a long time. So, first, it is all-too-possible that you've rediscovered something that's been known for some decades. I've done that myself "uncountably-many" times. There's no dishonor there... quite the contrary, it shows that your sensibilities about what to look at are aimed in a good direction.
Apart from the actual scientific content, there are pretty stringent stylistic conventions in various fields' publications, even on preprint servers. I cannot pretend to communicate these to you in an answer here. You need a more senior person to help you navigate the conventions. And, sadly, to be clear, if you transgress those conventions, people won't take you seriously, and may not even be willing to read what you've written.
Good luck, and have fun! :)