Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Fibonacci-digit encoding for a number
ResourceFunction["FibonacciEncode"][n] gives the Fibonacci-digit encoding for the number n. |
Fibonacci encoding for 42:
In[1]:= |
Out[1]= |
The Fibonacci encoding of a large integer:
In[2]:= |
Out[2]= |
Get the Fibonacci encoding for a random integer:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
Decode the encoding to retrieve the original integer:
In[5]:= |
Out[5]= |
Visualize the Fibonacci encoding for the first 30 integers:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License