OFFSET
1,1
COMMENTS
Note there are two columns labeled 1.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Ron Knott, Fibonacci Bases: The Fibonacci^2 Base System
EXAMPLE
a(2) = 3 since 2 is 02, 20 and 11 using both columns labeled 1;
a(10) = 5 because 10 = 9 + 1 with 2 Fib-sq reps 1010, 1001; 10 = 2*4 + 2 with 3 Fib-sq reps 220, 211 and 202; so there are in total 5 Fib-sq representations for 10.
PROG
(PARI) first(n) = {my(fib2list = List(), fib2 = 1, t = 1, res = vector(n)); while(fib2 <= n, listput(fib2list, fib2); t++; fib2 = fibonacci(t)^2); for(i=1, 3^#fib2list-1, b = digits(i, 3); b = concat(vector(#fib2list-#b), b); s = sum(i=1, #b, b[i]*fib2list[i]); if(s<=n, res[s]++)); res} \\ David A. Corneth, Jul 24 2017
CROSSREFS
KEYWORD
AUTHOR
Ron Knott, Nov 07 2008
STATUS
approved