The Surprisingly Sad Number #shorts

preview_player
Показать описание
Some numbers are happy. Some numbers are sad. How can you tell the difference?!

It's actually really easy. Square the number, then square the resulting digits and add them together. Do it again and again... if you get to 1, that number is happy. And if you can't get to 1, the number is stuck in an eternal abyss of sadness and misery.

#shorts
Рекомендации по теме
Комментарии
Автор

"Two is sad. Okay, bye." - Kevin 2022

juegariel
Автор

Another reason that binary is great. In base 2, *every* positive integer is a happy number!

hughobyrne
Автор

Are there only these two options? End at 1 or form a repeating loop?
Or are there numbers that have never ending sequence that goes on forever?

zcmini
Автор

OH GREAT! Now I need a list of all the happy numbers and a list of all the sad numbers... THANK YOU KEVIN!

aasc
Автор

Sometimes I think these mathematicians come up with this stuff just to give them something to do:
"Let's find out what numbers from 1 to 1000 are 'happy' or 'sad' based on these convoluted means"

RoxasMatheson
Автор

I'm glad that happy and sad numbers are getting some attention. One day I was doing some recreational math doodling which turned into a short paper on happy/sad numbers in arbitrary bases and powers before I knew they had a name.

davidpement
Автор

Math is really complicated. All those emotions.

Istaki
Автор

1² is 1, meaning it is sad AND happy at the same time, because it ends at it's own squared number, and it ends at 1

ilovemugs
Автор

2 might be sad, but 1 is the loneliest number that you'll ever do.

Qermaq
Автор

Did he do 13 wrong? He didn't square it so he proved that root 13 is happy

jackdillon
Автор

My code to produce answers is prob unoptimised since I made it in a few minutes but here it is:

current = 0
iterations = 0
iterated = [ ]
number = 0

for num in range(1, 1001):
number = num
current = number
iterated.clear()
iterations = 0
while True:
numbers = list(map(int, str(current)))
current = 0
for num in numbers:
current += num * num
iterations += 1
if current == 1:
print(f"{number} is happy after {iterations} iterations")
break
elif current in iterated:
print(f"{number} is sad after {iterations} iterations")
break
iterated.append(current)

randomhardcoreplayer
Автор

cheers, I needed this for my computer science work

ClassyBaxy
Автор

Gotta check if friend numbers 220 and 284 are happy.

GoodSmile
Автор

I am an atheist, but if I were the kind of person that could believe in God, this would be the kind of evidence that'd do it for me.

CharliMorganMusic
Автор

I never thought numbers can feel emotions

acolorred
Автор

Is he sure 13 is happy? When 7 was used for the first explanation, he squared 7, which gives you 49 and then continued the process until he got 1….but he didn’t do that for 13. 13 squared is 169. I’m not understanding why he didn’t used that same method with 13 and he did with 7.

YouTubeReady
Автор

"Two is sad ok bye" is my new favorite phrase

patildo
Автор

It comes down to unity vs separation. Entropie vs natural order
Do not take orders but make them and follow them if its aligning with your nature

ChiDante
Автор

Sometimes i work out happy numbers when bored

jameshunter
Автор

A lot of "two is happier than one because one is the loneliest number" comments here. But is being unhappy really better than being lonely?

ProductBasement