• 24-11-2014, 00:34:52
    #1
    Arkadaşlar merhabalar,

    Ben bilgisayar mühendisliği öğrencisiyim fakat bir sorum olacak, sorudan hiç bir şey anlamadım. Yardımlarınızı bekliyorum.

    Soru : The following iterative sequence is defined for the set of positive integers:
    n → n/2 (n is even)
    n → 3n + 1 (n is odd)
    Using the rule above and starting with 23, we generate the following
    sequence with 15 numbers:
    23->70->35->106->53->160->80->40->20->10->5->16->8->4->2->1
    Write a program that takes a number (limit) and gives the number has the
    longest chain under the given limit.

    Teşekkürler Şimdiden.
  • 24-11-2014, 01:06:23
    #2
  • 24-11-2014, 01:36:43
    #3
    ertan2002 adlı üyeden alıntı: mesajı görüntüle
    Hocam yardımın için çok teşekkür ederim.