Welcome![Sign In][Sign Up]
Location:
Downloads Documents File Format
Title: create-function Download
 Description: The so-called 3x+1 guess is this: either take a natural number, if it is even, we' ll divide it by two, and if it is odd, we put it by 3 plus 1. In such a transformation, we get a new natural number. If you repeatedly use this transformation, we get a bunch of natural numbers, guess is this: After repeating the above operation, the final result is 1. For example, let' s take five, first we get 3* 5+1 = 16, then 16/2 = 8, and the latter is 4,2 and 1 by 1 we get four, so we stuck in 4 → 2 → 1 This cycle of. As another example, the start number is taken 7, we obtain the following sequence: 7 → 22 → 11 → 34 → 17 → 52 → 26 → 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1, please try to use SQL gives the solution to this problem can be provided in the form of a function, it receives a number, returns a sequence of reach.
 Downloaders recently: [More information of uploader 尹涛]
 To Search:
File list (Check if you may need any files):
 

create function.doc
    

CodeBus www.codebus.net