OFFSET
0,2
LINKS
Tomás Guardia, Douglas Jiménez, and Alexander McCurdy, Fiboquadratic numbers and Rithmomachia, Recreational Mathematics Magazine, Vol. 11, No. 18 (2024), pp. 17-29.
Index entries for linear recurrences with constant coefficients, signature (1,0,1,1).
FORMULA
a(n) = (4*F(n/2) + F((n/2)-1))^2 if n is even and (4*F((n-1)/2) + F(((n-1)/2)-1))*(4*F(((n-1)/2)+1) + F((n-1)/2)) if n is odd where F(n) = Fibonacci(n).
G.f.: (1 + 3*x + 12*x^2 + 3*x^3)/((1 + x^2)*(1 - x - x^2)). - Stefano Spezia, Apr 09 2026
MATHEMATICA
LinearRecurrence[{1, 0, 1, 1}, {1, 4, 16, 20}, 40] (* Amiram Eldar, Apr 07 2026 *)
a[n_]:=If[EvenQ[n], (4*Fibonacci[n/2] + Fibonacci[(n/2)-1])^2, (4*Fibonacci[(n-1)/2] + Fibonacci[((n-1)/2)-1])*(4*Fibonacci[((n-1)/2)+1] + Fibonacci[(n-1)/2])]; Array[a, 39, 0] (* Stefano Spezia, Apr 09 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alexander McCurdy, Mar 26 2026
STATUS
approved
