OFFSET
1,2
COMMENTS
For a triangle with sides a(n-1) and a(n-2) and a 120-degree angle between them, a(n) is the floor of the value of the third side.
a(n) = A020711(n-4) for 4 <= n <= 41. - Georg Fischer, Nov 02 2018
FORMULA
Conjectures from Colin Barker, Nov 03 2018: (Start)
G.f.: x*(1 + x - 2*x^2 + x^3 - 2*x^4 + x^5 - x^6) / ((1 - x)*(1 - x - x^3)).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - a(n-4) for n>7.
(End)
MATHEMATICA
a[1]=1; a[2]=3; a[n_]:=a[n]=Floor[Sqrt[a[n-1]^2+a[n-2]^2+a[n-1]*a[n-2]]] Table[a[n], {n, 45}]
RecurrenceTable[{a[1]==1, a[2]==3, a[n]==Floor[Sqrt[a[n-1]^2+a[n-2]^2+ a[n-1]*a[n-2]]]}, a, {n, 50}] (* Harvey P. Dale, Oct 01 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 04 2007
STATUS
approved