- #1
suzi9spal
- 2
- 0
Hello everyone!
I'm a 1st grade student in a slovenian high school. Recently, I've became very interested in numbers and math itsself.
I was just playing around with a few numbers, when I came across a few that are unique. I was wondering which numbers can loop back
to themselfes after this procedure;
n is a digit, m is a digit, o is an integer, p is another integer
For instance, 16 is one of these numbers;
1^2 + 6^2 = 1+36 = 37 ==> 3^2 + 7^2 = 9+49 = 58 ==> 5^2 + 8^2 = 25+64 = 89 ==>
8^2 + 9^2 = 64+81 = 145 ==> 1^2 + 4^2 + 5^2 = 1+16+25 = 42 ==>
4^2 + 2^2 = 16+4 = 20 ==> 2^2 + 0^2 = 4+0 = 4 ==> 4^2 = 16
I then created a program to find every single number that has this property. It turns out, there are only a limited few:
I thought this was interesting, so I posted it here.
Did anyone find something like this before?
I'm a 1st grade student in a slovenian high school. Recently, I've became very interested in numbers and math itsself.
I was just playing around with a few numbers, when I came across a few that are unique. I was wondering which numbers can loop back
to themselfes after this procedure;
n is a digit, m is a digit, o is an integer, p is another integer
Code:
o = mn
p = m^2 + n^2
o = p
...repeat...
For instance, 16 is one of these numbers;
1^2 + 6^2 = 1+36 = 37 ==> 3^2 + 7^2 = 9+49 = 58 ==> 5^2 + 8^2 = 25+64 = 89 ==>
8^2 + 9^2 = 64+81 = 145 ==> 1^2 + 4^2 + 5^2 = 1+16+25 = 42 ==>
4^2 + 2^2 = 16+4 = 20 ==> 2^2 + 0^2 = 4+0 = 4 ==> 4^2 = 16
I then created a program to find every single number that has this property. It turns out, there are only a limited few:
- 1
- 4
- 16
- 20
- 37
- 42
- 58
- 89
- 145
I thought this was interesting, so I posted it here.
Did anyone find something like this before?