• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Longest Collatz sequence

Which starting number, under 10,000, produces the longest chain? NOTE: Once the chain starts the terms are allowed to go above 10,000. What do you think? worthy? https://code.sololearn.com/cvJ37F0fa2Io/?ref=app

python
25th Sep 2019, 1:44 PM
mr_Ef
mr_Ef - avatar
1 Antwort
- 1
Under 2,500,000 it's 2,298,025 with 559 iterations. https://code.sololearn.com/cTrFw7PNJuaB/?ref=app
25th Sep 2019, 2:14 PM
Diego
Diego - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Hey I've done the C# and SQL beginner and intermediate, but still feel like there could be more... Is there advanced somewhere?
2 Votes
Beginner question
0 Votes
Issue with Sololearn Module Quiz Despite Correct Answers
1 Votes
I need help to solve this
0 Votes
Remove
0 Votes
Project
0 Votes
Engineer Cloud
0 Votes
Hey what the research process order for them that I am telling you please order them and tell me answer
0 Votes
Lua?
1 Votes
by getting subscription will it help to me be a pro in python is it appropriate app? please guide me
0 Votes