# Tag: Fibonacci number

• ## How good a pseudo-random number generator is the Fibonacci series?

BINSIC is moving on and now this code… …will indeed generate a Fibonacci series (like all readers of the peerless Structure and Interpretation of Computer Programs I know I am using a lousy algorithm to generate the series but I hope you understand it is demonstration, rather than production, code). This can work up to […]

• ## Meta programming: giving Integers a “fibonacci” property in Groovy

So, you just decide that each Integer should have an automatic property of knowing it’s Fibonacci number, well now your wish is granted: Integer.metaClass.getFibonacci {      fib = delegate      def fibno = 1      while (fib) {          fibno += fibno      fib–      }      return fibno }      Integer x = 25 […]

• ## Something more on Fibonacci numbers

My earlier blog about the Fibonacci series gets a lot of hits, so I thought I would write something more, as clearly there is interest. Once again this is from “Structure and Interpretation of Computer Programs” (available for free here electronically): Let and . Then . So . (1) (2) Then (3) Simplifying (2) (4) […]

• ## Something interesting about Fibonacci numbers

Maybe everyone else knows this already – but I did not until I was reading Structure and Interpretation of Computer Programs and I picked it up… Well, the Fibonacci series are defined as: This generates the sequence 0, 1, 1, 2, 3, 5 etc. (Apparently Fibonacci, real name Leonardo Pisano Bigollo, used the sequence to […]