October 19, 2017 at 10:35 pm
Comments posted to this topic are about the item Python Lists
October 20, 2017 at 12:52 am
1,2,3 isn't the first three numbers in the Fibonacci Sequence. Neither is 1,1,2 really, but it's closer than 1,2,3!!
October 20, 2017 at 1:17 am
Extend function is not known to my RStudio / RGui. An error to that effect is returned.
October 20, 2017 at 2:26 am
I saw 1,1,2 and guessed that as I don't know Python.
October 20, 2017 at 3:25 am
Interesting question, thanks Steve
Haven't used Python in quite a few years....
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
October 20, 2017 at 4:43 am
andrew.clapham - Friday, October 20, 2017 12:52 AM1,2,3 isn't the first three numbers in the Fibonacci Sequence. Neither is 1,1,2 really, but it's closer than 1,2,3!!
Depends on whether you want to start with F_0 or F_1...
October 20, 2017 at 9:06 am
"By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two."
https://en.wikipedia.org/wiki/Fibonacci_number
If it's on wikipedia, it has to be right!
Be still, and know that I am God - Psalm 46:10
October 20, 2017 at 12:44 pm
david.gugg - Friday, October 20, 2017 9:06 AM"By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two."
https://en.wikipedia.org/wiki/Fibonacci_number
If it's on wikipedia, it has to be right!
I guess it depends on who gets to define what the Fibonacci sequence is.
OEIS (https://oeis.org/search?q=Fibonacci&language=english&go=Search) has it start with (0,1[,1]), but the original text has it start with (1,2 [,3]):
"You can indeed see in the margin how we operated, namely that we added the first number to the second, namely the 1 to the 2..." (English translation quote from https://www.math.utah.edu/~beebe/software/java/fibonacci/liber-abaci.html )
October 20, 2017 at 3:00 pm
morlindk - Friday, October 20, 2017 1:17 AMExtend function is not known to my RStudio / RGui. An error to that effect is returned.
This isn't an R question. It's a Python question.
October 20, 2017 at 3:01 pm
1,2,3 was a typo. It should have been 1, 1, 2 for all answers to make things consistent. Points awarded back.
October 22, 2017 at 12:54 am
Complete guess, never used Python so learned something.
...
July 27, 2018 at 3:59 pm
Love these Python questions. Thanks Steve.
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy