ทำให้รายการของหมายเลขฟีโบนักชีเป็นหนึ่งในตัวแปร f Makes a list of the Fibonacci numbers sans the first one, in variable f.
ส่วนใหญ่นี้ (8 ไบต์) เป็นเพียงการสร้างตัวเลขฟีโบนักชี Most of this (8 bytes) is just generating the Fibonacci numbers.
1 จะกลายเป็น 1 เพราะมันคือผลรวมของ 1 ซึ่งเป็นตัวเลขฟีโบนักชี 1 will become 1, because it is the sum of 1, which is a Fibonacci number,
8 จะกลายเป็น 10,000 เพราะเป็นหมายเลขฟีโบนักชี 8 will become 10000, because it is a Fibonacci number.
4 จะกลายเป็น 101 เพราะเป็นผลรวมของ [3,1] ซึ่งทั้งคู่เป็นตัวเลขฟีโบนักชี 4 will become 101, because it is the sum of [3,1], both of which are Fibonacci numbers.
5 จะกลายเป็น 1,000 เพราะมันคือผลรวมของ 5 ซึ่งเป็นตัวเลขฟีโบนักชีและเราไม่ต้องการตัวเลขอื่นใด 5 will become 1000, because it is the sum of 5, which is a Fibonacci number, and we do not need any of the other numbers.
2 จะกลายเป็น 10 เพราะมันคือผลรวมของ 2 ซึ่งเป็นตัวเลขฟีโบนักชีและมันไม่ต้องการ 1 เพราะเราได้ผลรวมที่ต้องการไปแล้ว 2 will become 10, because it is the sum of 2, which is a Fibonacci number, and it does not need 1, because we already achieved the desired sum.
3 จะกลายเป็น 100 เพราะมันคือผลรวมของ 3 ซึ่งเป็นตัวเลขฟีโบนักชีและมันไม่จำเป็นต้อง 2 หรือ 1 เพราะเราได้ผลรวมที่ต้องการแล้ว 3 will become 100, because it is the sum of 3, which is a Fibonacci number and it does not need 2 or 1 because we already achieved the desired sum.
ลองแปลงตัวเลขฐานฟีโบนักชีสุ่มเป็น 10101001010 เป็นทศนิยม: อันดับแรกเราเขียนตัวเลขฟีโบนักชีที่เกี่ยวข้องกัน จากนั้นเราคำนวณผลรวมของตัวเลขที่ต่ำกว่า 1 Let's convert a random Base Fibonacci number, 10101001010 to decimal: First we write the corresponding Fibonacci numbers. Then we compute the sum of the numbers under 1's.