List of utility methods to do Fibonacci Sequence Get
boolean | isFibonacci(long f) is Fibonacci return f == 0 || f == 1 || getFibonacciFast(getFibonacciSeq(f)) == f;
|
LongSupplier | makeFibonacciSupplier() make Fibonacci Supplier return new LongSupplier() { private long f1 = 1; private long f2 = 0; @Override public long getAsLong() { f2 += f1; f1 = f2 - f1; return f2; ... |
long[] | toFibonacciSumSequences(long i) to Fibonacci Sum Sequences return toFibonacciSum(true, new long[64], 0, i, 0); |