# Oh_Tassos

#
**Oh_Tassos**
OP
t1_ja8z25i wrote

Reply to comment by **accord281** in **[OC] A graphical visualisation of the answer to a problem from the Greek Mathematics Olympiad (*sort of)** by **Oh_Tassos**

Your 5 year old will learn not to dig straight down, as with that yellow line, the hard way then

#
**Oh_Tassos**
OP
t1_ja8f5ua wrote

Reply to comment by **bledik** in **[OC] A graphical visualisation of the answer to a problem from the Greek Mathematics Olympiad (*sort of)** by **Oh_Tassos**

Check out the comments :)

I did my best to explain it there

#
**Oh_Tassos**
OP
t1_ja84vts wrote

Reply to comment by **Joseluki** in **Oh_Tassos**

Luckily for you, it's all explained in the comments, there's no way to fit all of the explanation in the visual itself

#
**Oh_Tassos**
OP
t1_ja7z72s wrote

Reply to comment by **nankainamizuhana** in **Oh_Tassos**

It's the former, the difference between 1,530,609,129 and 1,499,470,729 which is equal to 31,138,400. That's way larger than any other numbers until that point. You can see this anomaly more clearly in the graph I linked near the end of my initial comment.

#
**Oh_Tassos**
OP
t1_ja7ogku wrote

Reply to comment by **MathThatChecksOut** in **Oh_Tassos**

Ah yes, you're right. I got carried away explaining the context that I forgot to mention what we're actually seeing.

Basically you have this line that's counting non-negative integers, starting from 0, and every time it encounters a number from this problem (let's say 225) it makes a 90*n degree turn (in the case of 225, where n = 2, it'd be a 180 degree turn).

This doesn't hold any inherent meaning, it just creates a pretty visual. You are right that I entirely forgot to explain that part though.

Edit: the start is at the purple zone in the bottom right corner

#
**Oh_Tassos**
OP
t1_ja7fv2a wrote

Reply to comment by **angerfist9** in **Oh_Tassos**

I'm sorry but this is the full size, the 1200x1600

Due to the fact I made the visualisation using Python's turtle, I had to sacrifice some detail :(

#
**Oh_Tassos**
OP
t1_ja7fntq wrote

Reply to **Oh_Tassos**

Hello! What I've created for you today is, as the title describes, a way to visualise the answer to a problem from the Greek Mathematics Olympiad, named "Archimedes" after the ancient mathematician, which took place on February 18.

Well... sort of. The truth is that we were given some corrections about this problem near the final hour of the 3-hour examination, which vastly limited the actual correct answers (to just 2, from infinite)

Here's my best attempt at a translation of the problem, you can find the original exam (along with the solutions and list of students who passed the exam) over on the Hellenic Mathematical Society's website here.

*For the various values of the positive integer n, identify all the positive integers N which are perfect squares and in their decimal representation the digit 2 appears n times and the digit 5 once.*

The correction we were given was that these positive integers N only contain the digits 2 and 5, and not any others. The real solutions are 25 and 225, and you can prove by mathematical induction that there is no solution for n ≥ 3.

This visualisation does not take the correction into account. To make it, I used a program I made in C++ (to identify the numbers N), a csv sheet, and a program I made in Python (to actually draw the visualisation).

I will note about the Python program that some parts of the code, those regarding the rescaling of the window when it went off-screen and the colour gradient, were actually written by a fellow r/dataisbeautiful member after an older post of mine about prime numbers. I do not remember their name to credit them correctly, but props to them for the help.

I would also like to share a few graphs I made regarding the difference between two successive numbers N in this "sequence", for I think they look interesting at a sufficient zoom level. Here

That's all, thank you for your time!

Edit: I forgot to mention that this visualisation includes the first 10592 positive integers N, which is how far the C++ program got before it crashed (I assume it was a memory issue)

Oh_TassosOP t1_jaaaw4l wroteReply to comment by

Adventurous_Tie_2740in[OC] A graphical visualisation of the answer to a problem from the Greek Mathematics Olympiad (*sort of)byOh_TassosI do see why you'd say that. In this case it isn't random, but there isn't a distinct pattern either (maybe a very loose one, idk)